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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
SRC_TMP=$(CURDIR)/SRC_TMP
debtmp := $(CURDIR)/debian/tmp
pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
VERSION := $(shell dpkg-parsechangelog | grep Version | cut -d\ -f2 | cut -d- -f1)
UVERSION := $(shell dpkg-parsechangelog | grep Version | cut -d\ -f2 | cut -d- -f1 | sed 's/\./_/g')
BUILD_DATE := $(shell dpkg-parsechangelog | grep Date: | cut -d' ' -f2-7)
export TZ=UTC
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with python2
override_dh_auto_clean:
dh_auto_clean
rm -rf solvers
override_dh_auto_build:
mkdir solvers
dh_auto_build
override_dh_install-indep:
dh_install
rm -rf debian/$(pkg)/usr/share/cain/help/* debian/$(pkg)/usr/share/cain/gui/help.htm*
find help -type d | xargs chmod 755
find help -type f | xargs chmod 644
find help | xargs touch --no-dereference --date='$(BUILD_DATE)'
cd help && (find . -type f -not \( -name "*.htb" -or -name "*.htd" \) -print0 | \
LC_ALL=C sort -z | \
xargs -0 zip ../debian/$(pkg)/usr/share/cain/help/cain.htb -X -r -q)
touch --no-dereference --date='$(BUILD_DATE)' debian/$(pkg)/usr/share/cain/help/cain.htb
if [ -d debian/$(pkg)/usr/share/cain/ ] ; then \
find debian/$(pkg)/usr/share/cain/ -type f -executable -exec chmod 644 {} + ; \
fi
override_dh_auto_test:
echo "no tests implemented"
get-orig-source:
uscan --verbose --force-download --repack --compression xz
# find $(SRC_TMP) -type f -exec chmod 644 {} +
# find $(SRC_TMP) -type d -exec chmod 755 {} +
|