1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/usr/bin/make -f
# -*- makefile -*-
# select all hardening flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export BASE=debian/squidguard
export BASEDOC=debian/squidguard-doc
%:
dh $@ --no-parallel --with autoreconf
override_dh_auto_configure:
dh_auto_configure -- \
$(shell dpkg-buildflags --export=configure) \
--with-db=/usr --with-nolog=yes \
--with-ldap=yes --with-ldap-lib=/usr/lib \
--with-sg-config=/etc/squidguard/squidGuard.conf \
--with-sg-logdir=/var/log/squidguard \
--with-sg-dbhome=/var/lib/squidguard/db
override_dh_autoreconf:
dh_autoreconf ./autogen.sh
override_dh_install:
dh_install
# set execute flag for some scripts
if [ -d $(BASE)/usr/lib/squidguard ]; \
then \
chmod a+x $(BASE)/usr/lib/squidguard/*; \
fi
# remove obsolete (old) documentation files
if [ -d $(BASEDOC)/usr/share/doc/squidguard-doc ]; \
then \
rm -f $(BASEDOC)/usr/share/doc/squidguard-doc/html/configuration.html; \
rm -f $(BASEDOC)/usr/share/doc/squidguard-doc/html/faq.html; \
rm -f $(BASEDOC)/usr/share/doc/squidguard-doc/html/installation.html; \
fi
override_dh_clean:
dh_clean
debconf-updatepo
|