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