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