From aca2367f318c8ea7922ed440bc9bc38038467423 Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 21 Jul 1998 11:39:54 +0000 Subject: Addition of cucipop, version 1.31, to the NetBSD packages collection. Cucipop, the Cubic Circle POP3 server, is a very small and fast server for POP3 mail clients--far faster than UW's ipop3d. It does not support POP2, but it does include support for the TOP extension to POP3, Content-Length: headers, and APOP. It can be run from inetd or standalone. Please note that this package is shareware. This package is based on Todd Vierling's submission in PR pkg/4977, as well as Jim Wise's submission in PR pkg/4910, which were put on hold until the licence logic had been added to bsd.pkg.mk, but I've also updated this to version 1.31, and fixed a few things in the compilation process. --- mail/cucipop/Makefile | 19 ++++++++++++ mail/cucipop/files/md5 | 1 + mail/cucipop/patches/patch-aa | 22 ++++++++++++++ mail/cucipop/patches/patch-ab | 13 ++++++++ mail/cucipop/patches/patch-ac | 69 +++++++++++++++++++++++++++++++++++++++++++ mail/cucipop/patches/patch-ad | 39 ++++++++++++++++++++++++ mail/cucipop/patches/patch-ae | 11 +++++++ mail/cucipop/pkg/COMMENT | 1 + mail/cucipop/pkg/DESCR | 8 +++++ mail/cucipop/pkg/MESSAGE | 1 + mail/cucipop/pkg/PLIST | 7 +++++ 11 files changed, 191 insertions(+) create mode 100644 mail/cucipop/Makefile create mode 100644 mail/cucipop/files/md5 create mode 100644 mail/cucipop/patches/patch-aa create mode 100644 mail/cucipop/patches/patch-ab create mode 100644 mail/cucipop/patches/patch-ac create mode 100644 mail/cucipop/patches/patch-ad create mode 100644 mail/cucipop/patches/patch-ae create mode 100644 mail/cucipop/pkg/COMMENT create mode 100644 mail/cucipop/pkg/DESCR create mode 100644 mail/cucipop/pkg/MESSAGE create mode 100644 mail/cucipop/pkg/PLIST (limited to 'mail') diff --git a/mail/cucipop/Makefile b/mail/cucipop/Makefile new file mode 100644 index 00000000000..9c40eb7abd1 --- /dev/null +++ b/mail/cucipop/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 1998/07/21 11:39:54 agc Exp $ +# + +DISTNAME= cucipop-1.31 +CATEGORIES= mail +MASTER_SITES= ftp://ftp.informatik.rwth-aachen.de/pub/packages/cucipop/ + +MAINTAINER= packages@netbsd.org + +LICENSE= shareware + +post-patch: + @(cd ${WRKSRC}; \ + for f in config.h cucipop.8 makevpopdb.8; do \ + ${SED} -e 's|@prefix@|${PREFIX}|g' $$f > $$f.fixed && \ + ${MV} $$f.fixed $$f; \ + done) + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/cucipop/files/md5 b/mail/cucipop/files/md5 new file mode 100644 index 00000000000..735020bd97e --- /dev/null +++ b/mail/cucipop/files/md5 @@ -0,0 +1 @@ +MD5 (cucipop-1.31.tar.gz) = e4dc7c3c6e3a4a83dde5cbbe21fee5f8 diff --git a/mail/cucipop/patches/patch-aa b/mail/cucipop/patches/patch-aa new file mode 100644 index 00000000000..43c115899ee --- /dev/null +++ b/mail/cucipop/patches/patch-aa @@ -0,0 +1,22 @@ +--- authenticate.c.orig Wed May 13 17:57:39 1998 ++++ authenticate.c Tue Jul 21 11:04:20 1998 +@@ -22,7 +22,10 @@ + #else + #include "config.h" + ++#include ++#if !(defined(BSD) && BSD >= 199306) + #define _XOPEN_SOURCE ++#endif + + #include + #include +@@ -44,7 +47,7 @@ + #define VIRTUALUSER "vpop" + + #ifndef MAILSPOOLDIR +-#define MAILSPOOLDIR "/var/spool/mail/" /* watch the trailing / */ ++#define MAILSPOOLDIR "/var/mail/" /* watch the trailing / */ + #endif + #ifndef MAILSPOOLHASH + #define MAILSPOOLHASH 0 /* 2 would deliver to /var/spool/mail/b/a/bar */ diff --git a/mail/cucipop/patches/patch-ab b/mail/cucipop/patches/patch-ab new file mode 100644 index 00000000000..ea76d8c264c --- /dev/null +++ b/mail/cucipop/patches/patch-ab @@ -0,0 +1,13 @@ +--- xcreat.c 1998/07/21 09:33:41 1.1 ++++ xcreat.c 1998/07/21 09:34:32 +@@ -22,7 +22,10 @@ + /*#define NOuname /* uncomment if uname is not available */ + /*#define NOstrpbrk /* uncomment if strpbrk is not available */ + /*#define strchr(s,c) index(s,c) /* uncomment if strchr is not available */ ++#include ++#if !(defined(BSD) && BSD >= 199306) + #define const /* can be undefined for ANSI compilers */ ++#endif + + #include /* open() close() link() unlink() + getpid() */ diff --git a/mail/cucipop/patches/patch-ac b/mail/cucipop/patches/patch-ac new file mode 100644 index 00000000000..54cc78630bf --- /dev/null +++ b/mail/cucipop/patches/patch-ac @@ -0,0 +1,69 @@ +--- cucipop.8.orig Mon May 11 17:35:19 1998 ++++ cucipop.8 Tue Jul 21 11:17:48 1998 +@@ -48,12 +48,12 @@ + .SH NAME + cucipop \- Cubic Circle POP3 daemon + .SH SYNOPSIS +-.B /usr/sbin/cucipop ++.B cucipop + .RB [ \-qaYdPUSDAT ] + .RB [ "\-E \fIage\fP" ] + .RB [ "\-p \fIport\fP" ] + .br +-.B /usr/sbin/cucipop ++.B cucipop + .B \-v + .ad + .SH DESCRIPTION +@@ -145,16 +145,16 @@ + .BR inetd.conf (5) + would be suitable: + .Sx 1 +-pop-3 stream tcp nowait root /usr/sbin/cucipop cucipop -Y ++pop-3 stream tcp nowait root /usr/pkg/sbin/cucipop cucipop -Y + .Ex + If your site gets many hits from popclients, it would be preferable + to start cucipop standalone as in: + .Sx 1 +-/usr/sbin/cucipop -Y ++/usr/pkg/sbin/cucipop -Y + .Ex + Your typical BOFH setting would be: + .Sx 1 +-/usr/sbin/cucipop -YaSE 6w ++/usr/pkg/sbin/cucipop -YaSE 6w + .Ex + .SH FILES + .TP 2.3i +@@ -166,25 +166,25 @@ + .BR makevpopdb (8) + man page on how this file is created + .TP +-.B /var/lib/cucipop/state.db ++.B @prefix@/share/cucipop/state.db + AI state information and bulletin history + .TP +-.B "/var/lib/cucipop/bulletins/\fInn\fP" ++.B "@prefix@/share/cucipop/bulletins/\fInn\fP" + .B 00 + through + .B 63 + optional bulletin files in regular mailbox format + .TP +-.B /var/spool/mail/$LOGNAME ++.B /var/mail/$LOGNAME + system mailbox + .TP +-.B /var/spool/mail/virtual.dom.ain/$LOGNAME ++.B /var/mail/virtual.dom.ain/$LOGNAME + virtual host system mailbox + .TP +-.B /var/spool/mail/$LOGNAME.lock ++.B /var/mail/$LOGNAME.lock + lockfile for the system mailbox + .TP +-.B /var/spool/mail/virtual.dom.ain/$LOGNAME.lock ++.B /var/mail/virtual.dom.ain/$LOGNAME.lock + lockfile for the virtual host system mailbox + .TP + .B _????`hostname` diff --git a/mail/cucipop/patches/patch-ad b/mail/cucipop/patches/patch-ad new file mode 100644 index 00000000000..5e3c1cdd343 --- /dev/null +++ b/mail/cucipop/patches/patch-ad @@ -0,0 +1,39 @@ +*** Makefile.orig Tue May 12 22:09:14 1998 +--- Makefile Tue Jul 21 11:16:26 1998 +*************** +*** 2,4 **** + +! BASENAME= /usr + +--- 2,4 ---- + +! BASENAME= ${PREFIX} + +*************** +*** 12,18 **** + +! CFLAGS = -O -DUSE_DB #$(GCC_WARNINGS) +! LDFLAGS = -lcrypt -ldb2 + + # If you change this, edit config.h as well +! CUCIPOPLIB=/var/lib/cucipop + CUCIPOPBULLETINS=$(CUCIPOPLIB)/bulletins +--- 12,18 ---- + +! CFLAGS = -O #-DUSE_DB $(GCC_WARNINGS) +! LDFLAGS = -lcrypt + + # If you change this, edit config.h as well +! CUCIPOPLIB=${PREFIX}/share/cucipop + CUCIPOPBULLETINS=$(CUCIPOPLIB)/bulletins +*************** +*** 24,27 **** + +! INSTALL=install -o root -m +! BINPERM=02755 -s -g mail + REGPERM=0644 +--- 24,27 ---- + +! INSTALL=install -c -o root -m +! BINPERM=02755 -s -g wheel + REGPERM=0644 diff --git a/mail/cucipop/patches/patch-ae b/mail/cucipop/patches/patch-ae new file mode 100644 index 00000000000..0b26643719d --- /dev/null +++ b/mail/cucipop/patches/patch-ae @@ -0,0 +1,11 @@ +--- makevpopdb.8 1998/07/21 10:21:31 1.1 ++++ makevpopdb.8 1998/07/21 10:21:04 +@@ -48,7 +48,7 @@ + .SH NAME + makevpopdb \- Creates the vpop database for cucipop + .SH SYNOPSIS +-.B /usr/sbin/makevpopdb ++.B @prefix@/sbin/makevpopdb + .I dbasefile + .ad + .SH DESCRIPTION diff --git a/mail/cucipop/pkg/COMMENT b/mail/cucipop/pkg/COMMENT new file mode 100644 index 00000000000..4adab9ec234 --- /dev/null +++ b/mail/cucipop/pkg/COMMENT @@ -0,0 +1 @@ +The Cubic Circle POP3 mail server diff --git a/mail/cucipop/pkg/DESCR b/mail/cucipop/pkg/DESCR new file mode 100644 index 00000000000..750de897692 --- /dev/null +++ b/mail/cucipop/pkg/DESCR @@ -0,0 +1,8 @@ +Cucipop, the Cubic Circle POP3 server, is a very small and fast server for +POP3 mail clients--far faster than UW's ipop3d. It does not support POP2, +but it does include support for the TOP extension to POP3, Content-Length: +headers, and APOP. It can be run from inetd or standalone. + +In most environments, this should be invoked from inetd.conf as: + +pop3 stream tcp nowait root /usr/pkg/sbin/cucipop cucipop -AY diff --git a/mail/cucipop/pkg/MESSAGE b/mail/cucipop/pkg/MESSAGE new file mode 100644 index 00000000000..d3dfea7711f --- /dev/null +++ b/mail/cucipop/pkg/MESSAGE @@ -0,0 +1 @@ +Please note that this package includes shareware software. diff --git a/mail/cucipop/pkg/PLIST b/mail/cucipop/pkg/PLIST new file mode 100644 index 00000000000..fb55b4060dc --- /dev/null +++ b/mail/cucipop/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1 1998/07/21 11:39:56 agc Exp $ +sbin/cucipop +sbin/makevpopdb +man/man8/cucipop.8.gz +man/man8/makevpopdb.8.gz +@dirrm share/cucipop/bulletins +@dirrm share/cucipop -- cgit v1.2.3