masqmail

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/debian/rules	Fri Sep 26 17:05:23 2008 +0200
     1.3 @@ -0,0 +1,118 @@
     1.4 +#!/usr/bin/make -f
     1.5 +
     1.6 +export DH_COMPAT=3
     1.7 +
     1.8 +# Uncomment this to turn on verbose mode.
     1.9 +#export DH_VERBOSE=1
    1.10 +DOC = usr/doc
    1.11 +MAN = usr/man
    1.12 +DAT = usr/lib
    1.13 +
    1.14 +export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    1.15 +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
    1.16 +# FOR AUTOCONF 2.52 AND NEWER ONLY
    1.17 +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
    1.18 +  confflags += --build $(DEB_HOST_GNU_TYPE)
    1.19 +else
    1.20 +  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
    1.21 +endif
    1.22 +
    1.23 +build: build-stamp
    1.24 +build-stamp:
    1.25 +	dh_testdir
    1.26 +
    1.27 +	# Add here commands to compile the package.
    1.28 +	./configure $(confflags) \
    1.29 +		--prefix=/usr --mandir='$${prefix}/share/man' \
    1.30 +		--with-logdir=/var/log/masqmail \
    1.31 +		--with-spooldir=/var/spool/masqmail \
    1.32 +		--with-user=mail --with-group=mail \
    1.33 +		--with-confdir=/etc/masqmail \
    1.34 +		--with-liblockfile \
    1.35 +		--enable-auth \
    1.36 +		--enable-ident \
    1.37 +		--enable-maildir
    1.38 +	$(MAKE)
    1.39 +
    1.40 +	touch build-stamp
    1.41 +
    1.42 +clean:
    1.43 +	dh_testdir
    1.44 +	dh_testroot
    1.45 +	rm -f build-stamp
    1.46 +
    1.47 +	# Add here commands to clean up after the build process.
    1.48 +	-$(MAKE) clean
    1.49 +	-$(MAKE) distclean
    1.50 +	rm -f tests/{test.conf,local.sh,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