| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 4 |
|
| 5 |
FILES_MODIFIED_BY_BUILD = \ |
| 6 |
INSTALL \ |
| 7 |
Makefile.in \ |
| 8 |
aclocal.m4 \ |
| 9 |
build-aux/compile \ |
| 10 |
build-aux/config.rpath \ |
| 11 |
build-aux/depcomp \ |
| 12 |
build-aux/install-sh \ |
| 13 |
build-aux/mdate-sh \ |
| 14 |
build-aux/missing \ |
| 15 |
build-aux/test-driver \ |
| 16 |
configure \ |
| 17 |
doc/Makefile.in \ |
| 18 |
doc/msmtp.info \ |
| 19 |
doc/stamp-vti \ |
| 20 |
doc/version.texi \ |
| 21 |
po/Makefile.in.in \ |
| 22 |
po/Rules-quot \ |
| 23 |
po/boldquot.sed \ |
| 24 |
po/[email protected] \ |
| 25 |
po/[email protected] \ |
| 26 |
po/quot.sed \ |
| 27 |
scripts/Makefile.in \ |
| 28 |
src/Makefile.in \ |
| 29 |
tests/Makefile.in \ |
| 30 |
m4/build-to-host.m4 \ |
| 31 |
m4/gettext.m4 \ |
| 32 |
m4/host-cpu-c-abi.m4 \ |
| 33 |
m4/iconv.m4 \ |
| 34 |
m4/intlmacosx.m4 \ |
| 35 |
m4/lib-ld.m4 \ |
| 36 |
m4/lib-link.m4 \ |
| 37 |
m4/lib-prefix.m4 \ |
| 38 |
m4/nls.m4 \ |
| 39 |
m4/po.m4 \ |
| 40 |
m4/progtest.m4 |
| 41 |
|
| 42 |
override_dh_autoreconf: |
| 43 |
# Backup files modified by autoreconf |
| 44 |
for file in $(FILES_MODIFIED_BY_BUILD); do \ |
| 45 |
if [ -e $$file ] && [ ! -e $$file.keep ] ; then \ |
| 46 |
cp $$file $$file.keep ; \ |
| 47 |
fi \ |
| 48 |
done |
| 49 |
dh_autoreconf |
| 50 |
|
| 51 |
override_dh_auto_configure: |
| 52 |
dh_auto_configure -- --with-libsecret --with-libgsasl --with-libidn --with-ssl=gnutls |
| 53 |
|
| 54 |
override_dh_auto_build: |
| 55 |
pod2man --center "" --date "" --release "" --section=1 \ |
| 56 |
debian/newaliases.pod > debian/newaliases.1 |
| 57 |
dh_auto_build |
| 58 |
|
| 59 |
override_dh_auto_install: |
| 60 |
dh_auto_install |
| 61 |
dh_apparmor --profile-name=usr.bin.msmtp -p msmtp |
| 62 |
|
| 63 |
override_dh_installinit: |
| 64 |
dh_installinit --update-rcd-params=defaults-disabled --name msmtpd |
| 65 |
|
| 66 |
override_dh_installsystemd: |
| 67 |
dh_installsystemd --no-enable --name msmtpd |
| 68 |
|
| 69 |
override_dh_clean: |
| 70 |
rm -f debian/newaliases.1 |
| 71 |
dh_clean |
| 72 |
# Restore files modified by build |
| 73 |
for file in $(FILES_MODIFIED_BY_BUILD); do \ |
| 74 |
if [ -e $$file.keep ] ; then \ |
| 75 |
rm -f $$file; \ |
| 76 |
mv $$file.keep $$file; \ |
| 77 |
fi \ |
| 78 |
done |
| 79 |
# find -iname '*.gmo' -delete |
| 80 |
# rm -f doc/msmtp.info doc/stamp-vti doc/version.texi po/msmtp.pot |
| 81 |
|
| 82 |
%: |
| 83 |
dh $@ |