summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/cucipop/Makefile19
-rw-r--r--mail/cucipop/files/md51
-rw-r--r--mail/cucipop/patches/patch-aa22
-rw-r--r--mail/cucipop/patches/patch-ab13
-rw-r--r--mail/cucipop/patches/patch-ac69
-rw-r--r--mail/cucipop/patches/patch-ad39
-rw-r--r--mail/cucipop/patches/patch-ae11
-rw-r--r--mail/cucipop/pkg/COMMENT1
-rw-r--r--mail/cucipop/pkg/DESCR8
-rw-r--r--mail/cucipop/pkg/MESSAGE1
-rw-r--r--mail/cucipop/pkg/PLIST7
11 files changed, 191 insertions, 0 deletions
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 <sys/param.h>
++#if !(defined(BSD) && BSD >= 199306)
+ #define _XOPEN_SOURCE
++#endif
+
+ #include <sys/types.h>
+ #include <unistd.h>
+@@ -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 <sys/param.h>
++#if !(defined(BSD) && BSD >= 199306)
+ #define const /* can be undefined for ANSI compilers */
++#endif
+
+ #include <unistd.h> /* 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