--- /dev/null
+auto-ccld.sh
+make-load
+find-systype
+systype
+load
+make-compile
+compile
+dot-forward.o
+control.o
+fork.h
+qmail.o
+auto-str.o
+make-makelib
+makelib
+substdio.o
+substdi.o
+substdo.o
+subfderr.o
+substdio_copy.o
+substdio.a
+error.o
+error_str.o
+error.a
+str_len.o
+str_diffn.o
+byte_chr.o
+byte_copy.o
+byte_cr.o
+str.a
+auto-str
+auto_qmail.c
+auto_qmail.o
+token822.o
+envread.o
+env.a
+getln.o
+getln2.o
+getln.a
+subgetopt.o
+sgetopt.o
+getopt.a
+strerr_sys.o
+strerr_die.o
+strerr.a
+stralloc_eady.o
+stralloc_pend.o
+stralloc_copy.o
+stralloc_opys.o
+stralloc_opyb.o
+stralloc_cat.o
+stralloc_cats.o
+stralloc_catb.o
+stralloc.a
+alloc.o
+alloc_re.o
+alloc.a
+case_diffb.o
+case.a
+hassgact.h
+sig_catch.o
+sig_pipe.o
+sig.a
+seek_set.o
+seek.a
+open_read.o
+open_trunc.o
+open.a
+haswaitp.h
+wait_pid.o
+wait.a
+fd_copy.o
+fd_move.o
+fd.a
+fmt_ulong.o
+scan_ulong.o
+fs.a
+dot-forward
+prog
+dot-forward.0
+man
+it
+install.o
+hier.o
+install
+setup
+instcheck.o
+instcheck
+check
+build
--- /dev/null
+*.substvars
+files
--- /dev/null
+dot-forward (0.71-1) experimental; urgency=low
+
+ * Debianization!
+
+ -- Mark Wooding <mdw@distorted.org.uk> Thu, 6 Oct 2005 12:41:04 +0100
--- /dev/null
+Source: dot-forward
+Section: mail
+Priority: extra
+Maintainer: Mark Wooding <mdw@distorted.org.uk>
+Standards-Version: 3.1.1
+
+Package: dot-forward
+Architecture: any
+Depends: ${shlibs:Depends}, qmail
+Description: .forward support for qmail
+ Nuff said.
--- /dev/null
+Copyright 1998
+D. J. Bernstein, djb@pobox.com
+
+You may distribute unmodified copies of the dot-forward package.
--- /dev/null
+#! /usr/bin/make -f
+
+export DH_COMPAT = 4
+
+mdw-setup:
+ upstream=`git-describe djb | sed 's:^djb/::'`; \
+ dir=dot-forward_$$upstream.orig; \
+ git-tar-tree djb $$dir | gzip -9c >../$$dir.tar.gz
+
+build:
+ rm -rf build
+ make
+ touch build
+
+clean:
+ dh_clean
+ xargs rm -f <TARGETS
+ rm -f build
+
+install: build
+ dh_clean
+ make install
+ mkdir -p debian/dot-forward/usr
+ ./install `pwd`/debian/dot-forward/usr
+ mkdir -p debian/dot-forward/usr/share
+ mkdir -p debian/dot-forward/usr/share/doc/dot-forward
+ mv debian/dot-forward/usr/man debian/dot-forward/usr/share
+ rm -rf debian/dot-forward/usr/share/man/cat*
+ rm -rf debian/dot-forward/usr/doc
+ cp BLURB CHANGES INSTALL THANKS TODO \
+ debian/dot-forward/usr/share/doc/dot-forward
+
+binary-indep:
+
+binary-arch: install
+ dh_testdir -a
+ dh_testroot -a
+ dh_compress -a
+ dh_installdocs -a
+ dh_strip -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-indep binary-arch
+
+source: clean mdw-setup
+ dir=`pwd | sed 's:^.*/::'`; \
+ cd ..; \
+ dpkg-source -b -i'(?:^|/)\.git(?:$$|/)' $$dir
+
+.PHONY: binary binary-arch binary-indep clean install source mdw-setup
#ifndef ERROR_H
#define ERROR_H
-extern int errno;
+#include <errno.h>
extern int error_intr;
extern int error_nomem;
#include "auto_qmail.h"
-void hier()
+void hier(char *home)
{
- h(auto_qmail,-1,-1,0755);
+ if (!home)
+ home = auto_qmail;
+ h(home,-1,-1,0755);
- d(auto_qmail,"bin",-1,-1,0755);
- d(auto_qmail,"man",-1,-1,0755);
- d(auto_qmail,"man/man1",-1,-1,0755);
- d(auto_qmail,"man/cat1",-1,-1,0755);
+ d(home,"bin",-1,-1,0755);
+ d(home,"man",-1,-1,0755);
+ d(home,"man/man1",-1,-1,0755);
+ d(home,"man/cat1",-1,-1,0755);
- c(auto_qmail,"bin","dot-forward",-1,-1,0755);
+ c(home,"bin","dot-forward",-1,-1,0755);
- c(auto_qmail,"man/man1","dot-forward.1",-1,-1,0644);
- c(auto_qmail,"man/cat1","dot-forward.0",-1,-1,0644);
+ c(home,"man/man1","dot-forward.1",-1,-1,0644);
+ c(home,"man/cat1","dot-forward.0",-1,-1,0644);
}
#include "readwrite.h"
#include "exit.h"
-extern void hier();
+extern void hier(char *);
#define FATAL "install: fatal: "
strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": ");
}
-void main()
+void main(int argc, char *argv[])
{
+ char *home = 0;
fdsourcedir = open_read(".");
+ if (argc > 1)
+ home = argv[1];
if (fdsourcedir == -1)
strerr_die2sys(111,FATAL,"unable to open current directory: ");
umask(077);
- hier();
+ hier(home);
_exit(0);
}
+#include <stdlib.h>
#include "substdio.h"
#include "readwrite.h"
#include "wait.h"
#include "qmail.h"
#include "auto_qmail.h"
-static char *binqqargs[2] = { "bin/qmail-queue", 0 } ;
+static char *binqqargs[2] = { 0, 0 } ;
+
+static void setup_qqargs()
+{
+ if(!binqqargs[0])
+ binqqargs[0] = getenv("QMAILQUEUE");
+ if(!binqqargs[0])
+ binqqargs[0] = "/usr/sbin/qmail-queue";
+}
int qmail_open(qq)
struct qmail *qq;
int pim[2];
int pie[2];
+ setup_qqargs();
if (pipe(pim) == -1) return -1;
if (pipe(pie) == -1) { close(pim[0]); close(pim[1]); return -1; }