annotate rules @ 0:5ef519035828

debian directory of masqmail-0.2.21-4
author meillo@marmaro.de
date Fri, 26 Sep 2008 21:25:48 +0200 (2008-09-26)
parents
children a4ee78843d35
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
1 #!/usr/bin/make -f
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
2
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
3 # Uncomment this to turn on verbose mode.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
4 #export DH_VERBOSE=1
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
5 DOC = usr/doc
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
6 MAN = usr/man
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
7 DAT = usr/lib
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
8
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
9 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
10 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
11 # FOR AUTOCONF 2.52 AND NEWER ONLY
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
12 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
13 confflags += --build $(DEB_HOST_GNU_TYPE)
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
14 else
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
15 confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
16 endif
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
17
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
18 build: build-stamp
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
19 build-stamp:
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
20 dh_testdir
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
21
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
22 # Add here commands to compile the package.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
23 ./configure $(confflags) \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
24 --prefix=/usr --mandir='$${prefix}/share/man' \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
25 --with-logdir=/var/log/masqmail \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
26 --with-spooldir=/var/spool/masqmail \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
27 --with-user=mail --with-group=mail \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
28 --with-confdir=/etc/masqmail \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
29 --with-liblockfile \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
30 --enable-auth \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
31 --enable-ident \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
32 --enable-maildir
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
33 $(MAKE)
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
34
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
35 touch build-stamp
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
36
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
37 clean:
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
38 dh_testdir
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
39 dh_testroot
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
40 rm -f build-stamp
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
41
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
42 # Add here commands to clean up after the build process.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
43 -$(MAKE) clean
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
44 -$(MAKE) distclean
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
45 rm -f tests/test.conf
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
46 rm -f tests/local.sh
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
47 rm -f tests/smtpout.sh
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
48 # see /usr/share/doc/autotools-dev/README.Debian.gz
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
49 -test -r /usr/share/misc/config.sub && \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
50 cp -f /usr/share/misc/config.sub config.sub
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
51 -test -r /usr/share/misc/config.guess && \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
52 cp -f /usr/share/misc/config.guess config.guess
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
53 rm -f config.log
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
54
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
55 dh_clean
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
56
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
57 install: build
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
58 dh_testdir
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
59 dh_testroot
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
60 dh_clean -k
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
61 dh_installdirs
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
62
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
63 # Add here commands to install the package into debian/masqmail.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
64 $(MAKE) DESTDIR=`pwd`/debian/masqmail install
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
65 rmdir debian/masqmail/var/spool/masqmail/input \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
66 debian/masqmail/var/spool/masqmail/lock \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
67 debian/masqmail/var/spool/masqmail/popuidl \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
68 debian/masqmail/var/spool/masqmail debian/masqmail/var/spool \
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
69 debian/masqmail/var/log/masqmail debian/masqmail/var/log
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
70
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
71 rm -f debian/masqmail/usr/bin/expandtest debian/masqmail/usr/bin/readtest
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
72 install -m 755 debian/newaliases debian/masqmail/usr/bin/.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
73 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-up.d/1masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
74 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-up.d/1masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
75 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-down.d/99masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
76 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-down.d/99masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
77
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
78 install -m 644 debian/masqmail.logrotate debian/masqmail/etc/logrotate.d/masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
79
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
80
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
81 # Build architecture-independent files here.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
82 binary-indep: build install
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
83 # We have nothing to do by default.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
84
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
85 # Build architecture-dependent files here.
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
86 binary-arch: build install
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
87 cp debian/masqmail.lintian debian/masqmail/usr/share/lintian/overrides/masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
88 # dh_testversion
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
89 dh_testdir
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
90 dh_testroot
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
91 dh_installdebconf
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
92 dh_installdocs
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
93 rm -f debian/masqmail/usr/share/doc/masqmail/INSTALL
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
94 ##cp -r docs debian/masqmail/$(DOC)/masqmail/html
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
95 dh_installexamples examples/* tests
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
96 # dh_installmenu
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
97 # dh_installemacsen
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
98 dh_installinit
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
99 # dh_installcron
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
100 dh_installman debian/mailq.8 debian/mailrm.8 debian/newaliases.8 debian/sendmail.8
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
101 # dh_undocumented
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
102 dh_installchangelogs ChangeLog
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
103 dh_link
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
104 dh_strip
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
105 dh_compress
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
106 dh_fixperms -X/usr/sbin/masqmail
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
107 dh_installdeb
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
108 dh_shlibdeps
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
109 dh_gencontrol
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
110 # dh_makeshlibs
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
111 dh_md5sums
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
112 dh_builddeb
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
113
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
114 source diff:
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
115 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
116
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
117 binary: binary-indep binary-arch
5ef519035828 debian directory of masqmail-0.2.21-4
meillo@marmaro.de
parents:
diff changeset
118 .PHONY: build clean binary-indep binary-arch binary install