File: rules

package info (click to toggle)
postfwd 1.35-10
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,572 kB
  • sloc: perl: 5,574; sh: 293; makefile: 40
file content (57 lines) | stat: -rwxr-xr-x 1,438 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# written by Jan Wagner <waja@cyconet.org>
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-arch build-indep
build-arch:
build-indep:

clean:
	# removing generated manpage (not initial shipped)
	rm -rf man/man8/hapolicy.1
	dh_testdir
	dh_testroot
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep

	# install binaries
	install -D -m 644 sbin/postfwd debian/postfwd/usr/sbin/postfwd1
	install -D -m 644 sbin/postfwd2 debian/postfwd/usr/sbin/postfwd2
	install -D -m 644 tools/hapolicy/hapolicy debian/hapolicy/usr/sbin/hapolicy
	# install man page
	mkdir -p debian/tmp/
	cp man/man8/postfwd.8 debian/tmp/postfwd1.8
	html2text doc/quick.html > debian/tmp/quick.txt
	html2text doc/versions.html > debian/tmp/versions.txt
	pod2man debian/hapolicy/usr/sbin/hapolicy man/man8/hapolicy.1

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs doc/postfwd.CHANGELOG
	dh_installdocs -ppostfwd -Xhapolicy
	dh_installdocs -phapolicy tools/hapolicy/hapolicy[0-9a-zA-Z.]*
	dh_installexamples
	dh_installinit -- defaults 19 21
	dh_installsystemd --no-enable
	dh_installman
	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install