--- dot-forward-0.71.orig/debian/bin +++ dot-forward-0.71/debian/bin @@ -0,0 +1 @@ +dot-forward --- dot-forward-0.71.orig/debian/changelog +++ dot-forward-0.71/debian/changelog @@ -0,0 +1,132 @@ +dot-forward (1:0.71-2.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS ("cannot read [...] usr/sbin/*"); we don't install anything to + sbin, so use Make's $(wildcard ..) over the shell's "*". (Closes: #855275) + + -- Chris Lamb Fri, 17 Feb 2017 14:07:22 +1300 + +dot-forward (1:0.71-2.1) unstable; urgency=medium + + * Non-maintainer upload with permission. + * Make the build reproducible by passing "-n" switch to gzip. + (Closes: #776760) + + -- Chris Lamb Mon, 19 Sep 2016 09:52:56 +0100 + +dot-forward (1:0.71-2) unstable; urgency=low + + * debian/rules: install dot-forward.1 manpage as dot-forward.1qmail to + resolve conflict with the courier-mta package (closes: #620396). + * debian/control: Standards-Version: 3.9.3.1. + + -- Gerrit Pape Wed, 11 Apr 2012 23:31:32 +0000 + +dot-forward (1:0.71-1) unstable; urgency=low + + * debian/rules: remove target configure:; use glibc by default instead + of dietlibc; new target patch: apply diff from debian/diff/; install + into /var/lib/qmail/ instead of /var/qmail/; target binary-arch: run + dpkg-shlibdeps; target clean: remove debian/substvars; target build: + set conf-qmail, restore orig in target clean:. + * debian/diff/0001-error.h-include-errno.h-instead-of-extern-int.diff: + new: error.h: '#include ' instead of 'extern int errno;'. + * debian/implicit: update to revision a09db2e. + * debian/control: no longer Build-Depends: dietlibc-dev; no longer + Depends: qmail, but Recommends:; Depends: ${shlibs:Depends}; + Build-Depends: groff-base; Standards-Version: 3.7.3.0. + * debian/dot-forward.docs: remove INSTALL. + * debian/control: update short and long descriptions. + * debian/dot-forward.README.Debian: redo. + * debian/copyright: upstream sources and debian diff is in the public + domain. + * debian/gcc/: remove; obsolete. + * debian/changelog: add epoch 1 to supersede unofficial package. + * upload to Debian/main (closes: #484763). + + -- Gerrit Pape Mon, 09 Jun 2008 20:52:11 +0000 + +dot-forward (0.71-zarge2) sarge; urgency=low + + * build against sarge's dietlibc-dev (0.28-3). + + -- Gerrit Pape Thu, 26 May 2005 18:55:38 +0000 + +dot-forward (0.71-zarge1) sarge; urgency=low + + * debian/rules: minor cleanup. + * debian/implicit: update to revision 1.10. + + -- Gerrit Pape Sun, 15 Aug 2004 16:18:52 +0000 + +dot-forward (0.71-zarge0.3) sarge; urgency=low + + * debian/control: no longer Build-Depends: dephelper; remove + Standards-Version. + * debian/rules: stop using debhelper, use implicit rules. + * debian/implicit: new; implicit Makefile rules. + * debian/README.Debian, debian/docs: rename to dot-forward.*. + * debian/dirs, debian/links.in: remove; obsolete. + * debian/copyright: minor. + + -- Gerrit Pape Mon, 12 Apr 2004 13:53:28 +0000 + +dot-forward (0.71-zarge0.2) sarge; urgency=low + + * use diet libc. + * debian/rules: new target configure: set up diet program as c compiler + wrapper; conditionally overwrite PATH to have diet program used as c + compiler wrapper; minor cleanup. + * debian/gcc/gcc*: new; diet program as c compiler wrapper. + * debian/control: Build-Depends: dietlibc-dev; no longer Depends: + ${shlibs:Depends}. + + -- Gerrit Pape Wed, 12 Nov 2003 12:47:14 +0000 + +dot-forward (0.71-woody1) woody; urgency=low + + * bump version for release. + + -- Gerrit Pape Tue, 9 Jul 2002 11:05:17 +0200 + +dot-forward (0.71-woody0.2) woody; urgency=low + + * debian/rules: use numeric uids and gids to avoid build-dependency + on qmail-uids-gids. + + -- Gerrit Pape Thu, 28 Mar 2002 10:30:59 +0100 + +dot-forward (0.71-woody0.1) woody; urgency=low + + * woody package; new Standards-Version: 3.5.2. + + -- Gerrit Pape Tue, 23 Oct 2001 15:32:46 +0200 + +dot-forward (0.71-1) stable; urgency=low + + * 1st debian version, no other changes. + + -- Gerrit Pape Thu, 1 Feb 2001 09:54:42 +0100 + +dot-forward (0.71-0.3) unstable; urgency=low + + * cleanup. + + -- Gerrit Pape Mon, 18 Dec 2000 15:26:39 +0100 + +dot-forward (0.71-0.2) unstable; urgency=low + + * Documentation. + * binaries moved to /usr/{bin,sbin} and linked back to /var/qmail/bin/. + + -- Gerrit Pape Tue, 2 May 2000 09:20:33 +0200 + +dot-forward (0.71-0.1) unstable; urgency=low + + * Initial Release. + + -- Gerrit Pape Tue, 18 Apr 2000 18:09:29 +0200 + +Local variables: +mode: debian-changelog +End: --- dot-forward-0.71.orig/debian/control +++ dot-forward-0.71/debian/control @@ -0,0 +1,20 @@ +Source: dot-forward +Section: mail +Priority: extra +Maintainer: Gerrit Pape +Build-Depends: groff-base +Standards-Version: 3.9.3.1 + +Package: dot-forward +Architecture: any +Depends: ${shlibs:Depends} +Recommends: qmail (>> 1.06) +Description: reads sendmail's .forward files under qmail + It runs in the qmail startup script to support all your existing .forward + files automatically. Individual users can switch to the .qmail mechanism + at their leisure. + . + dot-forward supports forwarding, program deliveries, and comments. It + does not support file deliveries or :include: (However, it recognizes + file delivery attempts, and defers delivery to give you a chance to set up + a .qmail file). --- dot-forward-0.71.orig/debian/copyright +++ dot-forward-0.71/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Gerrit Pape on +Tue, 18 Apr 2000 18:09:29 +0200. + +It was downloaded from http://cr.yp.to/software/dot-forward-0.71.tar.gz + +Upstream Author: D. J. Bernstein + +Copyright: + +D. J. Bernstein placed the dot-forward package into the public domain. +From http://cr.yp.to/distributors.html + What are the distribution terms for dot-forward? + 2008.06.01: I hereby place the dot-forward package (in particular, + dot-forward-0.71.tar.gz, with MD5 checksum 1fefd9760e4706491fb31c7511d69bed) + into the public domain. The package is no longer copyrighted. + +The Debian diff is in the public domain. --- dot-forward-0.71.orig/debian/diff/0001-error.h-include-errno.h-instead-of-extern-int.diff +++ dot-forward-0.71/debian/diff/0001-error.h-include-errno.h-instead-of-extern-int.diff @@ -0,0 +1,25 @@ +From ba259a8d95ede266cca9634e4c25db17b55bd022 Mon Sep 17 00:00:00 2001 +From: Gerrit Pape +Date: Mon, 9 Jun 2008 19:44:15 +0000 +Subject: [PATCH] error.h: '#include ' instead of 'extern int errno;' + +--- + error.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/error.h b/error.h +index 01bd3dc..5d98c6b 100644 +--- a/error.h ++++ b/error.h +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include + + extern int error_intr; + extern int error_nomem; +-- +1.5.5.3 + --- dot-forward-0.71.orig/debian/dot-forward.README.Debian +++ dot-forward-0.71/debian/dot-forward.README.Debian @@ -0,0 +1,18 @@ +dot-forward for Debian +---------------------- + +The binaries are installed into /usr/bin/ and linked back to +/var/lib/qmail/bin/. The man-pages are installed system-wide. + +To enable .forward handling through the dot-forward program for all +users, add '|dot-forward .forward' to the top of the control file +/var/lib/qmail/control/defaultdelivery, and restart the qmail-send +service, e.g.: + + # cd /var/lib/qmail/control/ + # echo '|dot-forward .forward' >defaultdelivery'{new}' + # cat defaultdelivery >>defaultdelivery'{new}' + # mv -f defaultdelivery'{new}' defaultdelivery + # svc -t /etc/service/qmail-send + + -- Gerrit Pape , Mon, 09 Jun 2008 20:04:13 +0000 --- dot-forward-0.71.orig/debian/dot-forward.docs +++ dot-forward-0.71/debian/dot-forward.docs @@ -0,0 +1,5 @@ +README +TODO +BLURB +THANKS +VERSION --- dot-forward-0.71.orig/debian/implicit +++ dot-forward-0.71/debian/implicit @@ -0,0 +1,93 @@ +# $Id: a09db2e42c8b6a2d820754d741558e5894944746 $ + +.PHONY: deb-checkdir deb-checkuid + +deb-checkdir: + @test -e debian/control || sh -cx '! : wrong directory' +deb-checkuid: + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb: %.deb-docs %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \ + $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \ + $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.udeb: %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \ + $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.deb-checkdir: install + @test -d debian/$* || sh -cx '! : directory debian/$* missing' + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb-docs-base: install + : implicit + @rm -f debian/$*/usr/share/doc/$*/* || : + @install -d -m0755 debian/$*/usr/share/doc/$* + : debian/$*/usr/share/doc/$*/ + @sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/' + @sh -cx 'install -m0644 debian/changelog \ + debian/$*/usr/share/doc/$*/changelog.Debian' + @test ! -r changelog || \ + sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' + @test -r debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ + debian/$*/usr/share/doc/$*/changelog' + @test -s debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog' + @gzip -9n debian/$*/usr/share/doc/$*/changelog* +%.deb-docs-docs: %.deb-docs-base + @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ + if test -d $$i; then \ + sh -cx "install -d -m0755 debian/$*/usr/share/doc/$*/$${i##*/}" && \ + for j in $$i/*; do \ + sh -cx "install -m0644 $$j \ + debian/$*/usr/share/doc/$*/$${i##*/}/" || exit 1; \ + done || exit 1; \ + continue; \ + fi; \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ + done + @test ! -r debian/$*.README.Debian || \ + sh -cx 'install -m0644 debian/$*.README.Debian \ + debian/$*/usr/share/doc/$*/README.Debian' + @if test -r debian/$*.NEWS.Debian; then \ + sh -cx 'install -m0644 debian/$*.NEWS.Debian \ + debian/$*/usr/share/doc/$*/NEWS.Debian && \ + gzip -9n debian/$*/usr/share/doc/$*/NEWS.Debian'; \ + fi +%.deb-docs-examples: %.deb-docs-docs + @rm -rf debian/$*/usr/share/doc/$*/examples + : debian/$*/usr/share/doc/$*/examples/ + @test ! -r debian/$*.examples || \ + install -d -m0755 debian/$*/usr/share/doc/$*/examples + @for i in `cat debian/$*.examples 2>/dev/null || :`; do \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \ + || exit 1; \ + done +%.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples + : debian/$*/usr/share/doc/$*/ ok + +%.deb-DEBIAN-base: install + @rm -rf debian/$*/DEBIAN + : debian/$*/DEBIAN/ + @install -d -m0755 debian/$*/DEBIAN + @for i in conffiles shlibs templates; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-scripts: %.deb-DEBIAN-base + @for i in preinst prerm postinst postrm config; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-md5sums: %.deb-DEBIAN-base %.deb-docs + : debian/$*/DEBIAN/md5sums + @rm -f debian/$*/DEBIAN/md5sums + @cd debian/$* && find * -path 'DEBIAN' -prune -o \ + -type f -exec md5sum {} >>DEBIAN/md5sums \; +%.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ + %.deb-DEBIAN-md5sums + : debian/$*/DEBIAN/ ok --- dot-forward-0.71.orig/debian/rules +++ dot-forward-0.71/debian/rules @@ -0,0 +1,72 @@ +#!/usr/bin/make -f + +STRIP =strip +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + STRIP =: nostrip +endif + +DIR=$(shell pwd)/debian/dot-forward + +patch: deb-checkdir patch-stamp +patch-stamp: + for i in `ls -1 debian/diff/*.diff || :`; do \ + patch -p1 <$$i || exit 1; \ + done + touch patch-stamp + +build: deb-checkdir build-stamp +build-stamp: patch-stamp + test -r conf-qmail'{orig}' || cp conf-qmail conf-qmail'{orig}' + echo /var/lib/qmail >conf-qmail + $(MAKE) + touch build-stamp + +clean: deb-checkdir deb-checkuid + rm -f `cat TARGETS` + test ! -r conf-qmail'{orig}' || mv -f conf-qmail'{orig}' conf-qmail + test ! -e patch-stamp || \ + for i in `ls -1r debian/diff/*.diff || :`; do patch -p1 -R <$$i; done + rm -f build-stamp patch-stamp + rm -rf '$(DIR)' + rm -f debian/files debian/substvars changelog + +install: deb-checkdir deb-checkuid build-stamp + rm -rf '$(DIR)' + install -d -m0755 '$(DIR)'/var/lib/qmail/bin + chown 0:64010 '$(DIR)'/var/lib/qmail '$(DIR)'/var/lib/qmail/bin + test -r conf-qmail'{orig}' || cp conf-qmail conf-qmail'{orig}' + echo '$(DIR)'/var/lib/qmail >conf-qmail + rm -f auto_qmail.[co] install.o instcheck.o + $(MAKE) install instcheck + ./install + ./instcheck + $(STRIP) -R .comment -R .note '$(DIR)'/var/lib/qmail/bin/* + install -d -m0755 '$(DIR)'/usr/bin + # move and link binaries + for i in bin sbin; do \ + for j in `cat debian/$$i`; do \ + mv -f '$(DIR)'/var/lib/qmail/bin/$$j '$(DIR)'/usr/$$i/$$j && \ + ln -s /usr/$$i/$$j '$(DIR)'/var/lib/qmail/bin/$$j || exit 1; \ + done; \ + done; + # docs are in /usr/share/doc/dot-forward (implicit) + rm -rf '$(DIR)'/var/lib/qmail/doc + # man pages system-wide + rm -rf '$(DIR)'/var/lib/qmail/man + install -d -m0755 '$(DIR)'/usr/share/man/man1 + install -m0644 dot-forward.1 \ + '$(DIR)'/usr/share/man/man1/dot-forward.1qmail + gzip -9n '$(DIR)'/usr/share/man/man1/*.1qmail + # changelog + rm -f changelog && ln -s CHANGES changelog + +binary: binary-indep binary-arch +binary-arch: install dot-forward.deb + dpkg-shlibdeps $(wildcard $(DIR)/usr/bin/*) $(wildcard $(DIR)/usr/sbin/*) + dpkg-gencontrol -isp -pdot-forward -P'$(DIR)' + dpkg -b '$(DIR)' .. +binary-indep: + +.PHONY: patch build clean install binary-indep binary-arch binary + +include debian/implicit