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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Warning on all
export DEB_CFLAGS_MAINT_APPEND := -Wall
# More hardening
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--prefix=/usr \
--includedir=/usr/include \
--sysconfdir=/etc/c-icap \
--localstatedir=/var \
--with-pcre \
--with-openssl \
--with-zlib \
--with-bzlib \
--with-brotli
execute_after_dh_fixperms:
chmod 0644 debian/c-icap/etc/c-icap/*
execute_before_dh_install:
/usr/bin/chrpath -d debian/tmp/usr/bin/c-icap
/usr/bin/chrpath -d debian/tmp/usr/bin/c-icap-client
/usr/bin/chrpath -d debian/tmp/usr/bin/c-icap-mkbdb
execute_after_dh_install:
rm $(CURDIR)/debian/c-icap/usr/lib/*/c_icap/*.la
override_dh_installsystemd:
dh_installsystemd -pc-icap --no-enable --no-start c-icap.service
|