Mercurial > debian > masqmail-debian
annotate rules @ 34:56c0c6807b0e 0.2.21-8
as I said, the newest standards version is 3.8.4
author | meillo@marmaro.de |
---|---|
date | Mon, 08 Feb 2010 16:41:27 +0100 |
parents | eae48d9839e4 |
children | e7f8c0a161b6 |
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' \ | |
28 | 25 --datadir='$${prefix}/share' \ |
0 | 26 --with-logdir=/var/log/masqmail \ |
27 --with-spooldir=/var/spool/masqmail \ | |
28 --with-user=mail --with-group=mail \ | |
29 --with-confdir=/etc/masqmail \ | |
30 --with-liblockfile \ | |
31 --enable-auth \ | |
32 --enable-ident \ | |
33 --enable-maildir | |
34 $(MAKE) | |
35 | |
36 touch build-stamp | |
37 | |
38 clean: | |
39 dh_testdir | |
40 dh_testroot | |
41 rm -f build-stamp | |
42 | |
43 # 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
|
44 [ ! -f Makefile ] || $(MAKE) clean |
a4ee78843d35
removed lintian warning with check for existing Makefile
meillo@marmaro.de
parents:
0
diff
changeset
|
45 [ ! -f Makefile ] || $(MAKE) distclean |
0 | 46 rm -f tests/test.conf |
47 rm -f tests/local.sh | |
48 rm -f tests/smtpout.sh | |
49 # see /usr/share/doc/autotools-dev/README.Debian.gz | |
50 -test -r /usr/share/misc/config.sub && \ | |
51 cp -f /usr/share/misc/config.sub config.sub | |
52 -test -r /usr/share/misc/config.guess && \ | |
53 cp -f /usr/share/misc/config.guess config.guess | |
54 rm -f config.log | |
55 | |
56 dh_clean | |
57 | |
58 install: build | |
59 dh_testdir | |
60 dh_testroot | |
23 | 61 dh_prep |
0 | 62 dh_installdirs |
63 | |
64 # Add here commands to install the package into debian/masqmail. | |
65 $(MAKE) DESTDIR=`pwd`/debian/masqmail install | |
66 rmdir debian/masqmail/var/spool/masqmail/input \ | |
67 debian/masqmail/var/spool/masqmail/lock \ | |
68 debian/masqmail/var/spool/masqmail/popuidl \ | |
69 debian/masqmail/var/spool/masqmail debian/masqmail/var/spool \ | |
70 debian/masqmail/var/log/masqmail debian/masqmail/var/log | |
71 | |
72 rm -f debian/masqmail/usr/bin/expandtest debian/masqmail/usr/bin/readtest | |
73 install -m 755 debian/newaliases debian/masqmail/usr/bin/. | |
74 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-up.d/1masqmail | |
75 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-up.d/1masqmail | |
76 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-down.d/99masqmail | |
77 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-down.d/99masqmail | |
78 | |
79 install -m 644 debian/masqmail.logrotate debian/masqmail/etc/logrotate.d/masqmail | |
80 | |
81 | |
82 # Build architecture-independent files here. | |
83 binary-indep: build install | |
84 # We have nothing to do by default. | |
85 | |
86 # Build architecture-dependent files here. | |
87 binary-arch: build install | |
88 cp debian/masqmail.lintian debian/masqmail/usr/share/lintian/overrides/masqmail | |
89 # dh_testversion | |
90 dh_testdir | |
91 dh_testroot | |
1
a4ee78843d35
removed lintian warning with check for existing Makefile
meillo@marmaro.de
parents:
0
diff
changeset
|
92 dh_installdebconf |
0 | 93 dh_installdocs |
94 rm -f debian/masqmail/usr/share/doc/masqmail/INSTALL | |
95 ##cp -r docs debian/masqmail/$(DOC)/masqmail/html | |
96 dh_installexamples examples/* tests | |
97 # dh_installmenu | |
98 # dh_installemacsen | |
99 dh_installinit | |
100 # dh_installcron | |
101 dh_installman debian/mailq.8 debian/mailrm.8 debian/newaliases.8 debian/sendmail.8 | |
102 # dh_undocumented | |
103 dh_installchangelogs ChangeLog | |
104 dh_link | |
105 dh_strip | |
106 dh_compress | |
107 dh_fixperms -X/usr/sbin/masqmail | |
108 dh_installdeb | |
109 dh_shlibdeps | |
110 dh_gencontrol | |
111 # dh_makeshlibs | |
112 dh_md5sums | |
113 dh_builddeb | |
114 | |
1
a4ee78843d35
removed lintian warning with check for existing Makefile
meillo@marmaro.de
parents:
0
diff
changeset
|
115 source diff: |
0 | 116 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false |
117 | |
118 binary: binary-indep binary-arch | |
119 .PHONY: build clean binary-indep binary-arch binary install |