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
|
#!/usr/bin/make -f
# dh_make-originated rules file
# ©2004 Adrian von Bidder
# Distribute and/or modify at will.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# installation base directory
BASE=$(CURDIR)/debian/postgrey
build: build-stamp
build-stamp:
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
# recommended by po-debconf(7)
debconf-updatepo
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs etc/postgrey
# for lack of an upstream Makefile
install -D postgrey $(BASE)/usr/sbin/postgrey
install -D contrib/postgreyreport $(BASE)/usr/bin/postgreyreport
install -m 0644 -D postgrey_whitelist_clients \
$(BASE)/usr/share/postgrey/whitelist_clients
install -m 0644 -D postgrey_whitelist_recipients \
$(BASE)/usr/share/postgrey/whitelist_recipients
install -m 0644 -D debian/postgrey_whitelist_clients.md5sum \
$(BASE)/usr/share/postgrey/whitelist_clients.md5sum
install -m 0644 -D debian/postgrey_whitelist_recipients.md5sum \
$(BASE)/usr/share/postgrey/whitelist_recipients.md5sum
mkdir -p $(BASE)/usr/share/man/man{1,8}
pod2man --section=8 postgrey > $(BASE)/usr/share/man/man8/postgrey.8
pod2man --section=1 contrib/postgreyreport \
> $(BASE)/usr/share/man/man1/postgreyreport.1
# Build architecture-dependent files here.
binary-arch: build install
# arch:all package!
# Build architecture-dependent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs Changes
dh_installlogcheck
dh_installdocs contrib/postgrey_clients_dump
dh_installdebconf
dh_installinit -- defaults 19
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|