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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#!/usr/bin/make -f
SHELL+= -e
DPKG_EXPORT_BUILDTOOLS = 1
-include /usr/share/dpkg/buildtools.mk
DPKG_EXPORT_BUILDFLAGS = 1
DEB_BUILD_MAINT_OPTIONS=hardening=+pie,+bindnow
-include /usr/share/dpkg/default.mk
D := $(CURDIR)/debian/binkd
configure: config.status
config.status: mkfls/unix/configure.in
dh_testdir
cp mkfls/unix/install-sh mkfls/unix/configure.in mkfls/unix/Makefile.* .
dh_autoreconf
dh_auto_configure -- --with-debug --with-https --with-ntlm --with-bwlim --with-perl
build: binkd
binkd: config.status
dh_testdir
$(MAKE)
clean:
dh_testdir
[ ! -e Makefile ] || $(MAKE) cleanall
dh_autoreconf_clean
dh_clean
binary-arch: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_installdocs todo.lst README.md release-notes.txt
dh_installexamples
dh_installchangelogs HISTORY
dh_installman *.8
cp binkd.cfg binkd.inc $D/etc/binkd/
dh_systemd_enable
dh_installinit --restart-after-upgrade
dh_systemd_start --restart-after-upgrade
dh_installlogrotate
install binkd $D/usr/sbin/
install --mode 755 debian/binkdlogstat $D/usr/sbin/
dh_strip
dh_compress
dh_fixperms
chown -R 64000:adm $D/var/log/binkd/
chmod 750 $D/var/log/binkd/
chown -R 64000:64000 $D/var/spool/ftn/ $D/etc/binkd/binkd.inc
chmod 600 $D/etc/binkd/binkd.inc
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-indep:
binary: binary-arch
build-arch: build
build-indep: build
get-orig-source:
cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
uscan --rename --force-download --watchfile debian/watch --destdir $(CURDIR)
.PHONY: binary binary-arch binary-indep build-arch build-indep clean get-orig-source
|