chiark / gitweb /
debian: New, stripped-down mini-qmail package.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 9 Aug 2005 12:45:00 +0000 (13:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 14 Feb 2006 03:02:47 +0000 (03:02 +0000)
This contains only what's needed for a serverless, queueless leaf node.

debian/changelog
debian/control
debian/preinst
debian/rules

index 91b7e0db1d1e8dba8a569e35f7d626532ec63567..66fb5fd618c758085d5d1abce41413c16e8ff7b5 100644 (file)
@@ -1,3 +1,10 @@
+qmail (1.03-5) unstable; urgency=low
+
+  * make it build again.
+  * add mini-qmail package.
+
+ -- Mark Wooding <mdw@nsict.org>  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 <chrish@debian.org>  Wed, 26 Mar 1997 00:24:38 -0500
-
-Local variables:
-mode: debian-changelog
-add-log-mailing-address: "phil@hands.com"
-End:
index 96d3013d37daaf7c5561bab33b6aac3dd80d8e00..4ea5783eea22400d5395446ad772c34d4084f9a7 100644 (file)
@@ -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
index 92b0d7194e9e3354fcf82096862a4e3a00130d10..e9e2848097675d272d6fc153a409cb50d7854ca5 100644 (file)
@@ -2,7 +2,6 @@
 
 require 5.002;
 use strict 'subs';
-use strict 'barewords';
 use English;
 
 sub check_uid($$$$$$) {
index 95cb42954826fea084b934ba3fe0ed4a49dd8a12..6316dc98c932661a14970735043e5f675f3e5846 100755 (executable)
@@ -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