]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.debian
LP#1846369: add libhtml-defang-perl to Debian Buster installation
[Evergreen.git] / Open-ILS / src / extras / install / Makefile.debian
1 # actions required by all debian-based OSs
2
3 APT_TOOL=apt-get -yq
4 RELEASE_CODENAME=$(shell lsb_release -cs)
5
6 install_debs:
7         $(APT_TOOL) install $(DEBS)
8
9 # On Ubuntu and possibly Debian, the libdbi0 package prevents the 
10 # compiled-from-source version from being used and breaks the install.
11 # This package might get installed depending on the install-time choices
12 # for the distro. Test for its existence; if it's there, throw an error
13 # message and exit.
14 test_for_libdbi_pkg:
15                 @if [ "$$(apt-cache policy libdbi0 | grep Installed | grep none | wc -l)" -eq 0 ]; then \
16                                 echo "*** Detected locally installed libdbi0 package; you must remove this"; \
17                                 echo "*** with a command like 'aptitude remove libdbi0' before proceeding"; \
18                                 echo "*** to successfully install Evergreen."; \
19                                 echo; \
20                                 echo "*** Note: this may break other applications on your system."; \
21                                 exit 0; \
22                 fi;
23
24 debian_sys_config: 
25         # link the apache modules in
26         for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
27         # keep the bad apache modules away
28         for m in $(DEB_APACHE_DISMODS); do a2dismod -f $$m; done;
29         # keep the bad apache configs away
30         for m in $(DEB_APACHE_DISCONF); do a2disconf $$m; done;
31         # refresh the dynamic library cache
32         ldconfig
33
34 # Adding this for installing versions from PostgreSQL community apt source
35 debian_postgresql_repo:
36         if test -z "$$(grep -R apt.postgresql.org /etc/apt/)" ; then \
37                 echo "deb http://apt.postgresql.org/pub/repos/apt/ $(RELEASE_CODENAME)-pgdg main" \
38                      > /etc/apt/sources.list.d/pgdg.list; \
39                 wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ; \
40                 $(APT_TOOL) update ; \
41         fi
42
43 clean:
44         echo "cleaning"
45
46 # vim:noet:sw=4:ts=4: