From 7a9e083dd1ed3023ea1f6487760fa62676e987b8 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 9 Aug 2005 13:45:00 +0100 Subject: [PATCH] debian: New, stripped-down mini-qmail package. This contains only what's needed for a serverless, queueless leaf node. --- debian/changelog | 12 +++++++----- debian/control | 16 ++++++++++++++++ debian/preinst | 1 - debian/rules | 54 ++++++++++++++++++++++++++++++++++++++++-------------- 4 files changed, 63 insertions(+), 20 deletions(-) diff --git a/debian/changelog b/debian/changelog index 91b7e0d..66fb5fd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +qmail (1.03-5) unstable; urgency=low + + * make it build again. + * add mini-qmail package. + + -- Mark Wooding Mon, 2 May 2005 14:44:12 +0100 + qmail (1.03-4) non-free; urgency=low * twiddle build system for missed Debians. @@ -53,8 +60,3 @@ qmail (1.00-1) experimental; urgency=low * Initial release. -- Christian Hudon Wed, 26 Mar 1997 00:24:38 -0500 - -Local variables: -mode: debian-changelog -add-log-mailing-address: "phil@hands.com" -End: diff --git a/debian/control b/debian/control index 96d3013..4ea5783 100644 --- a/debian/control +++ b/debian/control @@ -49,6 +49,22 @@ Description: Secure, reliable, efficient, simple mail transport system speed on modern MTA features. qmail also includes a drop-in ``sendmail'' wrapper so that it will be used transparently by your current UAs. +Package: mini-qmail +Architecture: any +Section: mail +Depends: ${shlibs:Depends} +Provides: mail-transport-agent +Conflicts: mail-transport-agent +Description: Secure, reliable, efficient, simple mail transport system + qmail is a secure, reliable, efficient, simple message transfer agent. It + is meant as a replacement for the entire sendmail-binmail system on typical + Internet-connected UNIX hosts. + . + This is the mini-qmail installation which can't deliver locally. It + relies on a QMQP server on another host providing it with a reliable + remote mail queue. As a result, it's really easy to configure and + doesn't require any hassle. + Package: qmail-src Architecture: all Section: mail diff --git a/debian/preinst b/debian/preinst index 92b0d71..e9e2848 100644 --- a/debian/preinst +++ b/debian/preinst @@ -2,7 +2,6 @@ require 5.002; use strict 'subs'; -use strict 'barewords'; use English; sub check_uid($$$$$$) { diff --git a/debian/rules b/debian/rules index 95cb429..6316dc9 100755 --- a/debian/rules +++ b/debian/rules @@ -54,35 +54,61 @@ binary-arch: checkroot build install -o root -g root -m 755 ipmeprint debian/tmp/usr/sbin/qmailconfig-ipmeprint install -o root -g root -m 755 dnsptr debian/tmp/usr/sbin/qmailconfig-dnsptr # (This one is a bit of a kludge...) -# Appears to be defunct in 1.03 -# sed -e 's|./hostname|hostname|g' \ -# -e 's|\./dnsptr|/usr/sbin/qmailconfig-dnsptr|g' \ -# -e 's|\./dnsip|/usr/sbin/qmailconfig-dnsip|g' \ -# -e 's|\./dnsfq|/usr/sbin/qmailconfig-dnsfq|g' \ -# -e 's|\./ipmeprint|/usr/sbin/qmailconfig-ipmeprint|g' \ -# qmail-config >debian/tmp/usr/sbin/qmailconfig -# chmod 755 debian/tmp/usr/sbin/qmailconfig + sed -e 's|./hostname|hostname|g' \ + -e 's|\./dnsptr|/usr/sbin/qmailconfig-dnsptr|g' \ + -e 's|\./dnsip|/usr/sbin/qmailconfig-dnsip|g' \ + -e 's|\./dnsfq|/usr/sbin/qmailconfig-dnsfq|g' \ + -e 's|\./ipmeprint|/usr/sbin/qmailconfig-ipmeprint|g' \ + config >debian/tmp/usr/sbin/qmailconfig + chmod 755 debian/tmp/usr/sbin/qmailconfig # Install /etc/init.d/qmail install -o root -g root -m 755 debian/qmail debian/tmp/etc/init.d/qmail # Copy /usr/share/doc/qmail files. install -o root -g root -m 644 debian/changelog debian/tmp/usr/share/doc/qmail/changelog.Debian rm -rf debian/tmp/var/qmail/doc # do the stuff for qmail-src - cp ../qmail_1.03.orig.tar.gz ../qmail_1.03-4.diff.gz \ - ../qmail_1.03-4.dsc debian/qmail-src/usr/src/qmail-src + fullver=`dpkg-parsechangelog | sed -n 's/^Version: \(.*\)$$/\1/p'` && \ + ver=`echo $$fullver | sed 's/-.*//'` && \ + cp ../qmail_$$ver.orig.tar.gz ../qmail_$$fullver.diff.gz \ + ../qmail_$$fullver.dsc debian/qmail-src/usr/src/qmail-src install -m 755 debian/build-qmail debian/qmail-src/usr/bin install debian/copyright debian/qmail-src/usr/share/doc/qmail-src install debian/qmail-src.README debian/qmail-src/usr/share/doc/qmail-src/README - debstd -m CHANGES BLURB* FAQ INTERNALS README \ - SECURITY INSTALL.* PIC.* REMOVE.* SYSDEPS THANKS THOUGHTS \ - TODO SENDMAIL TEST.* UPGRADE # Correct permissions of binaries and manpages... chmod go+rx debian/tmp/usr/*bin/* chown -R root.root debian/tmp/usr/share/man - +# Do stuff for qmail-leaf + rm -rf debian/mini-qmail + cp -a debian/tmp debian/mini-qmail + rm -rf debian/mini-qmail/etc/init.d + for i in \ + bouncesaying except qreceipt qbiff tcp-env \ + condredirect preline log dot-qmail qmail-valid-addresses; do \ + rm -f debian/mini-qmail/usr/share/man?/$$i.*; \ + rm -f debian/mini-qmail/usr/*bin/$$i/*; \ + done + for i in \ + getpw remote rspawn clean send start splogger queue newu \ + pw2u qread qstat tcpok pop3d popup qmqpd qmtpd smtpd command \ + local lspawn newmrh users; do \ + rm -f debian/mini-qmail/usr/share/man?/qmail-$$i.*; \ + rm -f debian/mini-qmail/usr/*bin/qmail-$$i; \ + done + rm -rf debian/mini-qmail/var/spool + for i in alias boot queue users; do \ + rm -rf debian/mini-qmail/var/qmail/$$i; \ + done + ln -s qmail-qmqpc debian/mini-qmail/usr/sbin/qmail-queue +# Fix everything up + debstd -m CHANGES BLURB* FAQ INTERNALS README \ + SECURITY INSTALL.* PIC.* REMOVE.* SYSDEPS THANKS THOUGHTS \ + TODO SENDMAIL TEST.* UPGRADE + cp -r debian/tmp/usr/share/doc/qmail \ + debian/mini-qmail/usr/share/doc/mini-qmail dpkg-gencontrol -pqmail # And finally, build the Debian package! dpkg --build debian/tmp .. + dpkg --build debian/mini-qmail .. define checkdir test -f qmail-send.c -a -f debian/rules -- 2.11.0