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
|
#!/usr/bin/make -f
CFLAGS+=-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-z,defs
LDFLAGS+=-Wl,--as-needed
%:
dh $@ --parallel
override_dh_auto_configure:
[ -f config/config.guess.orig ] || mv -f config/config.guess config/config.guess.orig
[ -f config/config.sub.orig ] || mv -f config/config.sub config/config.sub.orig
ln -sf /usr/share/misc/config.guess config/config.guess
ln -sf /usr/share/misc/config.sub config/config.sub
dh_auto_configure -- --with-etcdir=/etc/awffull
override_dh_auto_clean:
dh_testroot
rm -f build-stamp
rm -f src/awffull_lang.h
rm -f debian/awffull_history_regen.1
[ ! -f config/config.guess.orig ] || mv -f config/config.guess.orig config/config.guess
[ ! -f config/config.sub.orig ] || mv -f config/config.sub.orig config/config.sub
dh_auto_clean
override_dh_auto_install:
$(MAKE) install DESTDIR=$(CURDIR)/debian/awffull
cp contrib/awffull_history_regen.pl $(CURDIR)/debian/awffull/usr/sbin/awffull_history_regen
cp sample.conf $(CURDIR)/debian/awffull/usr/share/awffull/sample.conf
override_dh_installman:
help2man $(CURDIR)/debian/awffull/usr/sbin/awffull_history_regen \
-n awffull_history_regen -s 1 \
-o $(CURDIR)/debian/awffull_history_regen.1 \
--version-string="$(shell dpkg-parsechangelog -SVersion | perl -pe chomp)"
dh_installman debian/awffull_history_regen.1
.PHONY: override_dh_strip
override_dh_strip:
dh_strip
get-orig-source:
uscan --noconf --verbose --force-download --rename --download-current-version --destdir=..
|