debian/masqmail-debian
view rules @ 49:ef60dd577c1b
updated changelog
author | meillo@marmaro.de |
---|---|
date | Thu, 24 Jun 2010 15:50:18 +0200 |
parents | eae48d9839e4 |
children | 98e8aa5bd236 |
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 # see /usr/share/doc/autotools-dev/README.Debian.gz
47 -test -r /usr/share/misc/config.sub && \
48 cp -f /usr/share/misc/config.sub config.sub
49 -test -r /usr/share/misc/config.guess && \
50 cp -f /usr/share/misc/config.guess config.guess
51 rm -f config.log
53 dh_clean
55 install: build
56 dh_testdir
57 dh_testroot
58 dh_prep
59 dh_installdirs
61 # Add here commands to install the package into debian/masqmail.
62 $(MAKE) DESTDIR=`pwd`/debian/masqmail install
63 rmdir debian/masqmail/var/spool/masqmail/input \
64 debian/masqmail/var/spool/masqmail/lock \
65 debian/masqmail/var/spool/masqmail/popuidl \
66 debian/masqmail/var/spool/masqmail debian/masqmail/var/spool \
67 debian/masqmail/var/log/masqmail debian/masqmail/var/log
69 rm -f debian/masqmail/usr/bin/expandtest debian/masqmail/usr/bin/readtest
70 install -m 755 debian/newaliases debian/masqmail/usr/bin/.
71 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-up.d/1masqmail
72 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-up.d/1masqmail
73 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-down.d/99masqmail
74 install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-down.d/99masqmail
76 install -m 644 debian/masqmail.logrotate debian/masqmail/etc/logrotate.d/masqmail
79 # Build architecture-independent files here.
80 binary-indep: build install
81 # We have nothing to do by default.
83 # Build architecture-dependent files here.
84 binary-arch: build install
85 cp debian/masqmail.lintian debian/masqmail/usr/share/lintian/overrides/masqmail
86 # dh_testversion
87 dh_testdir
88 dh_testroot
89 dh_installdebconf
90 dh_installdocs
91 rm -f debian/masqmail/usr/share/doc/masqmail/INSTALL
92 ##cp -r docs debian/masqmail/$(DOC)/masqmail/html
93 dh_installexamples examples/*
94 # dh_installmenu
95 # dh_installemacsen
96 dh_installinit
97 # dh_installcron
98 dh_installman debian/mailq.8 debian/mailrm.8 debian/newaliases.8 debian/sendmail.8 debian/rmail.1
99 # dh_undocumented
100 dh_installchangelogs ChangeLog
101 dh_link
102 dh_strip
103 dh_compress
104 dh_fixperms -X/usr/sbin/masqmail
105 dh_installdeb
106 dh_shlibdeps
107 dh_gencontrol
108 # dh_makeshlibs
109 dh_md5sums
110 dh_builddeb
112 source diff:
113 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
115 binary: binary-indep binary-arch
116 .PHONY: build clean binary-indep binary-arch binary install