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 43 44 45 46 47 48 49 50
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
# More hardening
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--prefix=/usr \
--includedir=/usr/include/c_icap \
--sysconfdir=/etc/c-icap \
--localstatedir=/var \
--libexecdir=/usr/lib/c_icap \
--with-zlib=yes \
--with-bzlib=yes \
--with-clamav=yes \
--with-bdb=yes
override_dh_auto_install:
mkdir -p debian/tmp/etc/c-icap
dh_auto_install
# install clamav pattern update script
mkdir -p debian/libc-icap-mod-virus-scan/etc/clamav/onupdateexecute.d/
cp debian/libc-icap-mod-virus-scan.pattern-update \
debian/libc-icap-mod-virus-scan/etc/clamav/onupdateexecute.d/libc-icap-mod-virus-scan
chmod 0755 debian/libc-icap-mod-virus-scan/etc/clamav/onupdateexecute.d/libc-icap-mod-virus-scan
override_dh_install:
mv debian/tmp/etc/c-icap/srv_content_filtering.conf.default \
debian/tmp/etc/c-icap/srv_content_filtering.conf
rm debian/tmp/etc/c-icap/*.default
rm debian/tmp/usr/lib/*/c_icap/*.la
dh_install --fail-missing
override_dh_fixperms-arch:
dh_fixperms
# config permissions
chmod 0644 debian/libc-icap-mod-virus-scan/etc/c-icap/*
chmod 0644 debian/libc-icap-mod-urlcheck/etc/c-icap/*
# template permissions
chmod 0644 debian/libc-icap-mod-urlcheck/usr/share/c_icap/templates/srv_url_check/*/*
chmod 0644 debian/libc-icap-mod-virus-scan/usr/share/c_icap/templates/virus_scan/*/*
|