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
|
#! /usr/bin/make -f
# Ensure that builds are self-hosting, which means I have to use the .pm
# files in this package, not any that may be on the system.
export PERL5LIB=.
%:
dh $@ --with python2,python3
override_dh_auto_install:
$(MAKE) prefix=`pwd`/debian/debconf-utils install-utils
$(MAKE) prefix=`pwd`/debian/debconf-i18n install-i18n
$(MAKE) prefix=`pwd`/debian/debconf install-rest
# Run dh_link earlier so that it has an opportunity to link documentation
# directories.
override_dh_installdocs:
dh_link
dh_installdocs
override_dh_installdebconf:
# Don't modify postrm, I purge differently than normal packages
# using me
dh_installdebconf -n
override_dh_install:
dh_install
cp debian/apt.conf debian/debconf/etc/apt/apt.conf.d/70debconf
cp bash_completion \
debian/debconf/usr/share/bash-completion/completions/debconf
ln -s debconf \
debian/debconf/usr/share/bash-completion/completions/debconf-show
override_dh_installchangelogs:
# Changelog reduction hack for debconf. Only include top 100 entries.
perl -ne '$$c++ if /^debconf /; last if $$c > 100 ; print $$_' \
< debian/changelog > debian/debconf.changelog
dh_installchangelogs
override_dh_compress:
dh_compress -X demo.templates -X tutorial.templates
|