1 # actions required by all debian-based OSs
4 RELEASE_CODENAME=$(shell lsb_release -cs)
7 $(APT_TOOL) install $(DEBS)
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
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."; \
20 echo "*** Note: this may break other applications on your system."; \
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
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 ; \