From bbf86fb9617bafe70dff2d65ff6c6c7fcedf5dde Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 14 Jul 2023 13:47:08 +0100 Subject: [PATCH] initial commit of file from CVS for dot-forward on Fri 14 Jul 13:47:08 BST 2023 --- .gitattributes | 1 + .gitignore | 3 + Makefile | 21 +++++++ README.md | 10 +++- contriborbase | 1 + dot-forward-0.71.patch.2001020500 | 86 ++++++++++++++++++++++++++++ dot-forward-0.71.tar.gz | 3 + dot-forward.spec | 93 +++++++++++++++++++++++++++++++ 8 files changed, 217 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 dot-forward-0.71.patch.2001020500 create mode 100644 dot-forward-0.71.tar.gz create mode 100644 dot-forward.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..423aac5 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: dot-forward +# $Id: Makefile,v 1.1 2016/02/04 18:20:05 vip-ire Exp $ +NAME := dot-forward +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 56c8ee7..d7ace70 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # dot-forward -3rd Party (Maintained by Koozali) git repo for dot-forward smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for dot-forward smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +Dot-forward is a Unix software package that is used to forward emails sent to a certain address to a different address. It allows administrators to set up rules and filters to forward emails from a particular address, such as an alias, to a different email address without having to manually set up a forwarding rule for each message. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/dot-forward-0.71.patch.2001020500 b/dot-forward-0.71.patch.2001020500 new file mode 100644 index 0000000..26a4220 --- /dev/null +++ b/dot-forward-0.71.patch.2001020500 @@ -0,0 +1,86 @@ +diff -ruN dot-forward-0.71-01/Makefile dot-forward-0.71-02/Makefile +--- dot-forward-0.71-01/Makefile Tue May 19 06:15:50 1998 ++++ dot-forward-0.71-02/Makefile Mon Feb 5 18:47:49 2001 +@@ -39,6 +39,14 @@ + compile auto_qmail.c + ./compile auto_qmail.c + ++root_auto_qmail.c: \ ++auto-str conf-qmail ++ ./auto-str root_auto_qmail `pwd`/root`head -1 conf-qmail` > root_auto_qmail.c ++ ++root_auto_qmail.o: \ ++compile root_auto_qmail.c ++ ./compile root_auto_qmail.c ++ + byte_chr.o: \ + compile byte_chr.c byte.h + ./compile byte_chr.c +@@ -177,13 +185,13 @@ + rm -f trywaitp.o trywaitp + + hier.o: \ +-compile hier.c auto_qmail.h ++compile hier.c root_auto_qmail.h + ./compile hier.c + + install: \ +-load install.o hier.o auto_qmail.o strerr.a substdio.a error.a open.a \ ++load install.o hier.o root_auto_qmail.o strerr.a substdio.a error.a open.a \ + str.a +- ./load install hier.o auto_qmail.o strerr.a substdio.a \ ++ ./load install hier.o root_auto_qmail.o strerr.a substdio.a \ + error.a open.a str.a + + install.o: \ +@@ -192,9 +200,9 @@ + ./compile install.c + + instcheck: \ +-load instcheck.o hier.o auto_qmail.o strerr.a substdio.a error.a \ ++load instcheck.o hier.o root_auto_qmail.o strerr.a substdio.a error.a \ + str.a +- ./load instcheck hier.o auto_qmail.o strerr.a substdio.a \ ++ ./load instcheck hier.o root_auto_qmail.o strerr.a substdio.a \ + error.a str.a + + instcheck.o: \ +diff -ruN dot-forward-0.71-01/hier.c dot-forward-0.71-02/hier.c +--- dot-forward-0.71-01/hier.c Tue May 19 06:15:50 1998 ++++ dot-forward-0.71-02/hier.c Mon Feb 5 18:44:49 2001 +@@ -1,16 +1,16 @@ +-#include "auto_qmail.h" ++#include "root_auto_qmail.h" + + void hier() + { +- h(auto_qmail,-1,-1,0755); ++ h(root_auto_qmail,-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(root_auto_qmail,"bin",-1,-1,0755); ++ d(root_auto_qmail,"man",-1,-1,0755); ++ d(root_auto_qmail,"man/man1",-1,-1,0755); ++ d(root_auto_qmail,"man/cat1",-1,-1,0755); + +- c(auto_qmail,"bin","dot-forward",-1,-1,0755); ++ c(root_auto_qmail,"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(root_auto_qmail,"man/man1","dot-forward.1",-1,-1,0644); ++ c(root_auto_qmail,"man/cat1","dot-forward.0",-1,-1,0644); + } +diff -ruN dot-forward-0.71-01/root_auto_qmail.h dot-forward-0.71-02/root_auto_qmail.h +--- dot-forward-0.71-01/root_auto_qmail.h Wed Dec 31 19:00:00 1969 ++++ dot-forward-0.71-02/root_auto_qmail.h Mon Feb 5 18:44:34 2001 +@@ -0,0 +1,6 @@ ++#ifndef ROOT_AUTO_QMAIL_H ++#define ROOT_AUTO_QMAIL_H ++ ++extern char root_auto_qmail[]; ++ ++#endif diff --git a/dot-forward-0.71.tar.gz b/dot-forward-0.71.tar.gz new file mode 100644 index 0000000..61b8aea --- /dev/null +++ b/dot-forward-0.71.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18086b59edf113aaeb02a770afb5429c3200e8637d06ce15094247416fc6e258 +size 26352 diff --git a/dot-forward.spec b/dot-forward.spec new file mode 100644 index 0000000..926a11e --- /dev/null +++ b/dot-forward.spec @@ -0,0 +1,93 @@ +# $Id: dot-forward.spec,v 1.1 2016/02/04 18:20:05 vip-ire Exp $ + +# +# RPM spec file for Dan Bernstein's dot-forward package +# +# $Id: dot-forward.spec,v 1.1 2016/02/04 18:20:05 vip-ire Exp $ +# +Summary: dot-forward reads sendmail's .forward files under qmail +%define name dot-forward +Name: %{name} +%define version 0.71 +%define release 4 +Version: %{version} +Release: %{release}%{?dist} +License: Daniel J. Bernstein +Group: Networking/Daemons +Source: http://cr.yp.to/software/%{name}-%{version}.tar.gz +URL: http://cr.yp.to/%{name}.html +Patch0: %{name}-%{version}.patch.2001020500 +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +Requires: qmail +Provides: dot-forward +AutoReqProv: no +BuildRequires: groff + +%description +dot-forward reads sendmail's .forward files under qmail. You can run +it 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.) + +%changelog +* Fri Jul 14 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Tue Oct 11 2005 Charlie Brady 0.71-03 +- Rebuild under CentOS 4. Includes errno.h compiler configuration + fix. + +* Thu Feb 8 2001 Adrian Chung +- Rolling release number for GPG signing. + +* Mon Feb 5 2001 Peter Samuel +- [0.71-02] +- Now installs in its own root area prior to creating binary RPM. + +* Mon Mar 29 1999 Joseph Morrison +- [0.71-1] +- initial release + +%prep +%setup + +# This patch allows files to be installed in a relative directory prior +# to creating the binary RPM. It does not change the files or their +# final installed locations. + +%patch0 -p1 + +# Create the relative installation directory. + +mkdir -p ./root/var/qmail + +%build +echo gcc --include /usr/include/errno.h > conf-cc +make + +%install +make setup +make check +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%attr(755,root,root) /var/qmail/bin/dot-forward +%attr(644,root,root) /var/qmail/man/man1/dot-forward.1 +%attr(644,root,root) /var/qmail/man/cat1/dot-forward.0