--- fastforward-0.51.orig/debian/bin +++ fastforward-0.51/debian/bin @@ -0,0 +1,6 @@ +fastforward +newinclude +printforward +printmaillist +setmaillist +setforward --- fastforward-0.51.orig/debian/changelog +++ fastforward-0.51/debian/changelog @@ -0,0 +1,165 @@ +fastforward (1:0.51-3.2) unstable; urgency=medium + + * Non-maintainer upload. + * Make the build reproducible. (Closes: #776972) + + -- Chris Lamb Sun, 20 Aug 2017 10:23:03 -0700 + +fastforward (1:0.51-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add patch from Harry Sintonen to fix segfaults on 64bit. + (Closes: #859327) + + -- Adrian Bunk Wed, 26 Jul 2017 18:15:43 +0300 + +fastforward (1:0.51-3) unstable; urgency=low + + * debian/rules: install the fastforward's newaliases program as + /usr/sbin/qmail-newaliases to avoid conflict. + * debian/sbin: remove; obsolete. + * debian/fastforward.README.Debian: talk about newaliases being + installed as /usr/sbin/qmail-newaliases, and the qmail-run package. + * debian/rules: install newaliases.1 man page as + /usr/share/man/man1/qmail-newaliases.1. + * debian/rules: no longer install ~alias/.qmail-default (again). + * debian/fastforward.postinst, debian/fastforward.postrm: create + ~alias/.qmail-default if it doesn't exist; remove on purge. + + -- Gerrit Pape Tue, 09 Mar 2010 00:40:49 +0000 + +fastforward (1:0.51-2) unstable; urgency=low + + * debian/rules: install ~alias/.qmail-default again. + * debian/fastforward.examples: remove; obsolete. + * debian/fastforward.preinst, debian/fastforward.postrm: no longer + add/remove diversion of Debian qmail's /usr/sbin/newaliases + program. + * debian/control: Standards-Version: 3.8.0.1. + + -- Gerrit Pape Wed, 27 Aug 2008 20:38:42 +0000 + +fastforward (1:0.51-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-cdb_seek.c-include-errno.h-instead-of.diff: + new: error.h, cdb_seek.c: '#include ' instead of 'extern + int errno;'. + * debian/implicit: update to revision a09db2e. + * debian/gcc/: remove; obsolete. + * debian/fastforward.docs: remove INSTALL. + * debian/rules: no longer install ~alias/.qmail-default. + * debian/fastforward.conffiles: remove; obsolete. + * debian/fastforward.examples: new; add debian/qmail-default. + * debian/control: no longer Build-Depends: dietlibc; no longer + Depends: qmail, but Recommends:; Depends: ${shlibs:Depends}; + Build-Depends: groff-base; Standards-Version: 3.7.3.0; update short + and long descriptions. + * debian/copyright: upstream sources and debian diff is in the public + domain. + * debian/fastforward.README.Debian: redo. + * debian/changelog: add epoch 1 to supersede unofficial package. + * upload to Debian/main (closes: #484765). + * debian/fastforward.preinst, debian/fastforward.postrm: add/remove + diversion of Debian qmail's /usr/sbin/newaliases program. + + -- Gerrit Pape Mon, 09 Jun 2008 20:59:30 +0000 + +fastforward (0.51-zarge2) sarge; urgency=low + + * build against sarge's dietlibc-dev (0.28-3). + + -- Gerrit Pape Thu, 26 May 2005 18:57:16 +0000 + +fastforward (0.51-zarge1) sarge; urgency=low + + * debian/rules: minor cleanup. + * debian/implicit: update to revision 1.10. + + -- Gerrit Pape Sun, 15 Aug 2004 16:21:29 +0000 + +fastforward (0.51-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/conffiles, debian/docs: rename to + fastforward.*. + * debian/dirs, debian/links.in: remove; obsolete. + * debian/copyright: minor. + + -- Gerrit Pape Mon, 12 Apr 2004 13:55:01 +0000 + +fastforward (0.51-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:34:52 +0000 + +fastforward (0.51-woody1) woody; urgency=low + + * bump version for release. + + -- Gerrit Pape Tue, 9 Jul 2002 11:05:18 +0200 + +fastforward (0.51-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:23:24 +0100 + +fastforward (0.51-woody0.1) woody; urgency=low + + * woody package; new Standards-Version: 3.5.2. + * postinst script removed. + + -- Gerrit Pape Tue, 23 Oct 2001 15:35:21 +0200 + +fastforward (0.51-1) stable; urgency=low + + * /var/qmail/alias/.qmail-default marked as conffile. + * 1st debian version. + + -- Gerrit Pape Thu, 1 Feb 2001 09:59:42 +0100 + +fastforward (0.51-0.4) unstable; urgency=low + + * cleanup. + + -- Gerrit Pape Mon, 18 Dec 2000 15:31:13 +0100 + +fastforward (0.51-0.3) unstable; urgency=low + + * Documentation. + * binaries moved to /usr/{bin,sbin} and linked back to /var/qmail/bin/. + * this package does not provide /etc/aliases + + -- Gerrit Pape Tue, 2 May 2000 09:17:19 +0200 + +fastforward (0.51-0.2) unstable; urgency=low + + * added ~alias/.qmail-default and /etc/aliases. + + -- Gerrit Pape Tue, 18 Apr 2000 18:44:57 +0200 + +fastforward (0.51-0.1) unstable; urgency=low + + * Initial Release. + + -- Gerrit Pape Tue, 18 Apr 2000 17:46:46 +0200 + +Local variables: +mode: debian-changelog +End: --- fastforward-0.51.orig/debian/control +++ fastforward-0.51/debian/control @@ -0,0 +1,31 @@ +Source: fastforward +Section: mail +Priority: extra +Maintainer: Gerrit Pape +Build-Depends: groff-base +Standards-Version: 3.8.0.1 + +Package: fastforward +Architecture: any +Depends: ${shlibs:Depends} +Recommends: qmail (>> 1.06) +Description: handles qmail forwarding according to a cdb database + It can create forwarding databases from a sendmail-style /etc/aliases or + from user-oriented virtual-domain tables. + . + fastforward supports external mailing lists, stored in a binary format for + fast access. It has a tool to convert sendmail-style include files into + binary lists. + . + fastforward is more reliable than sendmail. sendmail can't deal with long + aliases, or deeply nested aliases, or deeply nested include files; + fastforward has no limits other than memory. sendmail can produce corrupted + alias files if the system crashes; fastforward is crashproof. + . + fastforward's database-building tools are much faster than sendmail's + newaliases. Even better, fastforward deliveries don't pause while the + database is being rebuilt. + . + fastforward does not support insecure sendmail-style program deliveries from + include files; you can use qmail's secure built-in mechanisms instead. + fastforward does support program deliveries from /etc/aliases. --- fastforward-0.51.orig/debian/copyright +++ fastforward-0.51/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Gerrit Pape on +Tue, 18 Apr 2000 17:46:46 +0200. + +It was downloaded from http://cr.yp.to/software/fastforward-0.51.tar.gz + +Upstream Author: D. J. Bernstein + +Copyright: + +D. J. Bernstein placed the fastforward package into the public domain. +From http://cr.yp.to/distributors.html + What are the distribution terms for fastforward? + 2008.06.01: I hereby place the fastforward package (in particular, + fastforward-0.51.tar.gz, with MD5 checksum 6dc619180ba9726380dc1047e45a1d8d) + into the public domain. The package is no longer copyrighted. + +The Debian diff is in the public domain. --- fastforward-0.51.orig/debian/diff/0001-error.h-cdb_seek.c-include-errno.h-instead-of.diff +++ fastforward-0.51/debian/diff/0001-error.h-cdb_seek.c-include-errno.h-instead-of.diff @@ -0,0 +1,37 @@ +From a58333104782ed1832840961cbdd2805be5e027e Mon Sep 17 00:00:00 2001 +From: Gerrit Pape +Date: Mon, 9 Jun 2008 20:11:13 +0000 +Subject: [PATCH] error.h, cdb_seek.c: '#include ' instead of 'extern int errno;' + +--- + cdb_seek.c | 1 - + error.h | 2 +- + 2 files changed, 1 insertions(+), 2 deletions(-) + +diff --git a/cdb_seek.c b/cdb_seek.c +index 87ab614..f31b87d 100644 +--- a/cdb_seek.c ++++ b/cdb_seek.c +@@ -1,6 +1,5 @@ + #include + #include +-extern int errno; + #include "cdb.h" + + #ifndef SEEK_SET +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 + --- fastforward-0.51.orig/debian/diff/0002-64bit-ptr-fix.diff +++ fastforward-0.51/debian/diff/0002-64bit-ptr-fix.diff @@ -0,0 +1,20 @@ +diff -r -u fastforward-0.51/cdbmake_add.c fastforward-0.51-fixed/cdbmake_add.c +--- fastforward-0.51/cdbmake_add.c 1998-05-19 19:25:42.000000000 +0300 ++++ fastforward-0.51-fixed/cdbmake_add.c 2017-06-20 15:03:15.916043326 +0300 +@@ -1,4 +1,5 @@ + #include "cdbmake.h" ++#include "alloc.h" + + void cdbmake_init(cdbm) + struct cdbmake *cdbm; +diff -r -u fastforward-0.51/strset.c fastforward-0.51-fixed/strset.c +--- fastforward-0.51/strset.c 1998-05-19 19:25:42.000000000 +0300 ++++ fastforward-0.51-fixed/strset.c 2017-06-20 15:01:59.604447413 +0300 +@@ -1,6 +1,7 @@ + #include "strset.h" + #include "str.h" + #include "byte.h" ++#include "alloc.h" + + uint32 strset_hash(s) + char *s; --- fastforward-0.51.orig/debian/fastforward.README.Debian +++ fastforward-0.51/debian/fastforward.README.Debian @@ -0,0 +1,17 @@ +fastforward for Debian +---------------------- + +The binaries are installed into /usr/{bin,sbin} and linked back to +/var/lib/qmail/bin/. The man-pages are installed system-wide. + +The newaliases program is installed as /usr/sbin/qmail-newaliases to +avoid conflicts, and linked back as /var/lib/qmail/bin/newliases. + +The qmail-run package, which sets up qmail as mail transfer agent, +includes a symlink /usr/sbin/newaliases -> qmail-newaliases. + +To configure Debian qmail to use /etc/aliases, refer to +/usr/share/doc/fastforward/ALIASES. /etc/aliases support is +automatically enabled when installing the qmail-run package. + + -- Gerrit Pape , Mon, 08 Mar 2010 22:29:11 +0000 --- fastforward-0.51.orig/debian/fastforward.docs +++ fastforward-0.51/debian/fastforward.docs @@ -0,0 +1,6 @@ +README +TODO +ALIASES +BLURB +THANKS +VERSION --- fastforward-0.51.orig/debian/fastforward.postinst +++ fastforward-0.51/debian/fastforward.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +test -e /var/lib/qmail/alias/.qmail-default || + echo '| fastforward -d /etc/aliases.cdb' > \ + /var/lib/qmail/alias/.qmail-default --- fastforward-0.51.orig/debian/fastforward.postrm +++ fastforward-0.51/debian/fastforward.postrm @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +test "$1" = purge || exit 0 +rm -f /var/lib/qmail/alias/.qmail-default --- fastforward-0.51.orig/debian/implicit +++ fastforward-0.51/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 --- fastforward-0.51.orig/debian/qmail-default +++ fastforward-0.51/debian/qmail-default @@ -0,0 +1 @@ +| fastforward -d /etc/aliases.cdb --- fastforward-0.51.orig/debian/rules +++ fastforward-0.51/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f + +STRIP =strip +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + STRIP =: nostrip +endif + +DIR=$(shell pwd)/debian/fastforward + +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 + install -d -m0755 '$(DIR)'/var/lib/qmail/alias + 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 + install -d -m0755 '$(DIR)'/usr/sbin + # move and link binaries + for j in `cat debian/bin`; do \ + mv -f '$(DIR)'/var/lib/qmail/bin/$$j '$(DIR)'/usr/bin/$$j && \ + ln -s /usr/bin/$$j '$(DIR)'/var/lib/qmail/bin/$$j || exit 1; \ + done; + mv -f '$(DIR)'/var/lib/qmail/bin/newaliases \ + '$(DIR)'/usr/sbin/qmail-newaliases + ln -s /usr/sbin/qmail-newaliases '$(DIR)'/var/lib/qmail/bin/newaliases + # docs are in /usr/share/doc/fastforward (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 + for i in *.1; do \ + install -m0644 $$i '$(DIR)'/usr/share/man/man1/ || exit 1; \ + done + mv -f '$(DIR)'/usr/share/man/man1/newaliases.1 \ + '$(DIR)'/usr/share/man/man1/qmail-newaliases.1 + gzip -9n '$(DIR)'/usr/share/man/man1/*.1 + # changelog + rm -f changelog && ln -s CHANGES changelog + +binary: binary-indep binary-arch +binary-arch: install fastforward.deb + dpkg-shlibdeps '$(DIR)'/usr/bin/* '$(DIR)'/usr/sbin/* + dpkg-gencontrol -isp -pfastforward -P'$(DIR)' + dpkg -b '$(DIR)' .. +binary-indep: + +.PHONY: patch build clean install binary-indep binary-arch binary + +include debian/implicit