debian/masqmail-debian
view rules @ 14:92e4f8524471
updated translation: pt
by Miguel Figueiredo
(Closes Debian bug #504794
author | meillo@marmaro.de |
---|---|
date | Sun, 09 Nov 2008 19:53:29 +0100 |
parents | 5ef519035828 |
children | 30402b14eeb8 |
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 --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)
35 touch build-stamp
37 clean:
38 dh_testdir
39 dh_testroot
40 rm -f build-stamp
42 # Add here commands to clean up after the build process.
43 [ ! -f Makefile ] || $(MAKE) clean
44 [ ! -f Makefile ] || $(MAKE) distclean
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
55 dh_clean
57 install: build
58 dh_testdir
59 dh_testroot
60 dh_clean -k
61 dh_installdirs
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
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
78 install -m 644 debian/masqmail.logrotate debian/masqmail/etc/logrotate.d/masqmail
81 # Build architecture-independent files here.
82 binary-indep: build install
83 # We have nothing to do by default.
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
91 dh_installdebconf
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
114 source diff:
115 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
117 binary: binary-indep binary-arch
118 .PHONY: build clean binary-indep binary-arch binary install