]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/install/Makefile.debian
495cdb2b34a9f51ba97328b8f72a2f41a79795f1
[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
5 install_debs:
6         $(APT_TOOL) install $(DEBS)
7
8 # On Ubuntu and possibly Debian, the libdbi0 package prevents the 
9 # compiled-from-source version from being used and breaks the install.
10 # This package might get installed depending on the install-time choices
11 # for the distro. Test for its existence; if it's there, throw an error
12 # message and exit.
13 test_for_libdbi_pkg:
14                 @if [ "$$(apt-cache policy libdbi0 | grep Installed | grep none | wc -l)" -eq 0 ]; then \
15                                 echo "*** Detected locally installed libdbi0 package; you must remove this"; \
16                                 echo "*** with a command like 'aptitude remove libdbi0' before proceeding"; \
17                                 echo "*** to successfully install Evergreen."; \
18                                 echo; \
19                                 echo "*** Note: this may break other applications on your system."; \
20                                 exit 0; \
21                 fi;
22
23 debian_sys_config: 
24         # link the apache modules in
25         for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
26         # keep the bad apache modules away
27         for m in $(DEB_APACHE_DISMODS); do a2dismod -f $$m; done;
28         # keep the bad apache configs away
29         for m in $(DEB_APACHE_DISCONF); do a2disconf $$m; done;
30         # refresh the dynamic library cache
31         ldconfig
32
33 clean:
34         echo "cleaning"
35
36 # vim:noet:sw=4:ts=4: