debian/masqmail-debian

view rules @ 28:eae48d9839e4

pulled in NMU
author meillo@marmaro.de
date Mon, 08 Feb 2010 13:08:44 +0100
parents 30402b14eeb8
children e7f8c0a161b6
line source
1 #!/usr/bin/make -f
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
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
18 build: build-stamp
19 build-stamp:
20 dh_testdir
22 # Add here commands to compile the package.
23 ./configure $(confflags) \
24 --prefix=/usr --mandir='$${prefix}/share/man' \
25 --datadir='$${prefix}/share' \
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)
36 touch build-stamp
38 clean:
39 dh_testdir
40 dh_testroot
41 rm -f build-stamp
43 # Add here commands to clean up after the build process.
44 [ ! -f Makefile ] || $(MAKE) clean
45 [ ! -f Makefile ] || $(MAKE) distclean
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
56 dh_clean
58 install: build
59 dh_testdir
60 dh_testroot
61 dh_prep
62 dh_installdirs
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
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
79 install -m 644 debian/masqmail.logrotate debian/masqmail/etc/logrotate.d/masqmail
82 # Build architecture-independent files here.
83 binary-indep: build install
84 # We have nothing to do by default.
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
92 dh_installdebconf
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
115 source diff:
116 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
118 binary: binary-indep binary-arch
119 .PHONY: build clean binary-indep binary-arch binary install