File: rules

package info (click to toggle)
qpsmtpd 0.84-9
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,376 kB
  • sloc: perl: 8,012; sh: 382; makefile: 61
file content (91 lines) | stat: -rwxr-xr-x 2,717 bytes parent folder | download
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/make -f
# $Id$

PERL=perl

clean:
	dh_testdir
	dh_testroot
	[ ! -f "Makefile" ] || $(MAKE) realclean
	dh_clean
	rm -f build-stamp

configure:
	dh_testdir
	$(PERL) Makefile.PL INSTALLDIRS=vendor

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure
	dh_testdir
	$(MAKE)
	touch build-stamp

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/debian/qpsmtpd
	# Comment out this line to omit the usual deletion of the qpsmtpd
	# tcpserver-based toplevel script.  The standard install uses
	# qpsmtpd-forkserver to avoid a non-free dependency on tcpserver.
	rm -f $(CURDIR)/debian/qpsmtpd/usr/bin/qpsmtpd
	# Comment out this line to omit the usual deletion of qpsmtpd-async,
	# which is included in the main qpsmtpd distribution but has not
	# stabilized enough for mainstream use and introduces compatibility
	# problems with some plugins.
	rm -f $(CURDIR)/debian/qpsmtpd/usr/bin/qpsmtpd-async
	# /var/spool/qpsmtpd will be chown'ed by postinst
	install -m 700 -d $(CURDIR)/debian/qpsmtpd/var/spool/qpsmtpd
	install -m 755 -d $(CURDIR)/debian/qpsmtpd/var/log/qpsmtpd
	install -m 755 -d $(CURDIR)/debian/qpsmtpd/var/lib/qpsmtpd
	# greylist db dir will be chown'ed by postinst
	install -m 700 -d $(CURDIR)/debian/qpsmtpd/var/lib/qpsmtpd/greylisting
	install -m 755 -d $(CURDIR)/debian/qpsmtpd/etc/qpsmtpd
	# install the configuration
	install -m 755 -d $(CURDIR)/debian/qpsmtpd/etc/qpsmtpd
	cp -a $(CURDIR)/debian/etc/* $(CURDIR)/debian/qpsmtpd/etc/qpsmtpd/
	# install the plugins
	install -m 755 -d $(CURDIR)/debian/qpsmtpd/usr/share/qpsmtpd/plugins
	cp -a $(CURDIR)/plugins/* $(CURDIR)/debian/qpsmtpd/usr/share/qpsmtpd/plugins/
	# install lintian overrides
	install -m 755 -d $(CURDIR)/debian/qpsmtpd/usr/share/lintian/overrides
	install -m 644 debian/qpsmtpd.lintian $(CURDIR)/debian/qpsmtpd/usr/share/lintian/overrides/qpsmtpd
	# remove pf2qp.pl, used to generate Constants.pm in upstream SVN
	rm -f $(CURDIR)/debian/qpsmtpd/usr/share/perl5/Qpsmtpd/Postfix/pf2qp.pl

binary-arch: build install
# nothing arch-dependent



binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installman \
		 $(CURDIR)/debian/qpsmtpd-forkserver.8 \
		 $(CURDIR)/debian/qpsmtpd-prefork.8 
	dh_installdebconf
	dh_installlogrotate
	dh_installchangelogs Changes
	dh_installinit
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	# until qpsmtpd-async is supported
	rm -f $(CURDIR)/debian/qpsmtpd/usr/share/man/man1/qpsmtpd-async.1p.gz
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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


# vi:set noexpandtab: