debian/masqmail-debian
diff rules @ 0:5ef519035828
debian directory of masqmail-0.2.21-4
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 21:25:48 +0200 |
parents | |
children | a4ee78843d35 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rules Fri Sep 26 21:25:48 2008 +0200 1.3 @@ -0,0 +1,118 @@ 1.4 +#!/usr/bin/make -f 1.5 + 1.6 +# Uncomment this to turn on verbose mode. 1.7 +#export DH_VERBOSE=1 1.8 +DOC = usr/doc 1.9 +MAN = usr/man 1.10 +DAT = usr/lib 1.11 + 1.12 +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 1.13 +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 1.14 +# FOR AUTOCONF 2.52 AND NEWER ONLY 1.15 +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) 1.16 + confflags += --build $(DEB_HOST_GNU_TYPE) 1.17 +else 1.18 + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) 1.19 +endif 1.20 + 1.21 +build: build-stamp 1.22 +build-stamp: 1.23 + dh_testdir 1.24 + 1.25 + # Add here commands to compile the package. 1.26 + ./configure $(confflags) \ 1.27 + --prefix=/usr --mandir='$${prefix}/share/man' \ 1.28 + --with-logdir=/var/log/masqmail \ 1.29 + --with-spooldir=/var/spool/masqmail \ 1.30 + --with-user=mail --with-group=mail \ 1.31 + --with-confdir=/etc/masqmail \ 1.32 + --with-liblockfile \ 1.33 + --enable-auth \ 1.34 + --enable-ident \ 1.35 + --enable-maildir 1.36 + $(MAKE) 1.37 + 1.38 + touch build-stamp 1.39 + 1.40 +clean: 1.41 + dh_testdir 1.42 + dh_testroot 1.43 + rm -f build-stamp 1.44 + 1.45 + # Add here commands to clean up after the build process. 1.46 + -$(MAKE) clean 1.47 + -$(MAKE) distclean 1.48 + rm -f tests/test.conf 1.49 + rm -f tests/local.sh 1.50 + rm -f tests/smtpout.sh 1.51 + # see /usr/share/doc/autotools-dev/README.Debian.gz 1.52 + -test -r /usr/share/misc/config.sub && \ 1.53 + cp -f /usr/share/misc/config.sub config.sub 1.54 + -test -r /usr/share/misc/config.guess && \ 1.55 + cp -f /usr/share/misc/config.guess config.guess 1.56 + rm -f config.log 1.57 + 1.58 + dh_clean 1.59 + 1.60 +install: build 1.61 + dh_testdir 1.62 + dh_testroot 1.63 + dh_clean -k 1.64 + dh_installdirs 1.65 + 1.66 + # Add here commands to install the package into debian/masqmail. 1.67 + $(MAKE) DESTDIR=`pwd`/debian/masqmail install 1.68 + rmdir debian/masqmail/var/spool/masqmail/input \ 1.69 + debian/masqmail/var/spool/masqmail/lock \ 1.70 + debian/masqmail/var/spool/masqmail/popuidl \ 1.71 + debian/masqmail/var/spool/masqmail debian/masqmail/var/spool \ 1.72 + debian/masqmail/var/log/masqmail debian/masqmail/var/log 1.73 + 1.74 + rm -f debian/masqmail/usr/bin/expandtest debian/masqmail/usr/bin/readtest 1.75 + install -m 755 debian/newaliases debian/masqmail/usr/bin/. 1.76 + install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-up.d/1masqmail 1.77 + install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-up.d/1masqmail 1.78 + install -m 755 debian/masqmail.ip-up debian/masqmail/etc/ppp/ip-down.d/99masqmail 1.79 + install -m 755 debian/masqmail.ip-up debian/masqmail/etc/network/if-down.d/99masqmail 1.80 + 1.81 + install -m 644 debian/masqmail.logrotate debian/masqmail/etc/logrotate.d/masqmail 1.82 + 1.83 + 1.84 +# Build architecture-independent files here. 1.85 +binary-indep: build install 1.86 +# We have nothing to do by default. 1.87 + 1.88 +# Build architecture-dependent files here. 1.89 +binary-arch: build install 1.90 + cp debian/masqmail.lintian debian/masqmail/usr/share/lintian/overrides/masqmail 1.91 +# dh_testversion 1.92 + dh_testdir 1.93 + dh_testroot 1.94 + dh_installdebconf 1.95 + dh_installdocs 1.96 + rm -f debian/masqmail/usr/share/doc/masqmail/INSTALL 1.97 + ##cp -r docs debian/masqmail/$(DOC)/masqmail/html 1.98 + dh_installexamples examples/* tests 1.99 +# dh_installmenu 1.100 +# dh_installemacsen 1.101 + dh_installinit 1.102 +# dh_installcron 1.103 + dh_installman debian/mailq.8 debian/mailrm.8 debian/newaliases.8 debian/sendmail.8 1.104 +# dh_undocumented 1.105 + dh_installchangelogs ChangeLog 1.106 + dh_link 1.107 + dh_strip 1.108 + dh_compress 1.109 + dh_fixperms -X/usr/sbin/masqmail 1.110 + dh_installdeb 1.111 + dh_shlibdeps 1.112 + dh_gencontrol 1.113 +# dh_makeshlibs 1.114 + dh_md5sums 1.115 + dh_builddeb 1.116 + 1.117 +source diff: 1.118 + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false 1.119 + 1.120 +binary: binary-indep binary-arch 1.121 +.PHONY: build clean binary-indep binary-arch binary install