summaryrefslogtreecommitdiff
path: root/mail/popa3d
diff options
context:
space:
mode:
authorwiz <wiz>2000-04-02 01:32:28 +0000
committerwiz <wiz>2000-04-02 01:32:28 +0000
commitd872b9126f07379332659a7cac2eeba3f5fbf2f0 (patch)
tree67dcf914e60a3637202663f8b4f80a7e88361359 /mail/popa3d
parent6e6cbe9c6689a8d69f98e028d373a2800234d48a (diff)
downloadpkgsrc-d872b9126f07379332659a7cac2eeba3f5fbf2f0.tar.gz
Initial import of popa3d, a small, performant, reliable, and secure
pop3 daemon.
Diffstat (limited to 'mail/popa3d')
-rw-r--r--mail/popa3d/Makefile40
-rw-r--r--mail/popa3d/files/md53
-rw-r--r--mail/popa3d/files/patch-sum4
-rw-r--r--mail/popa3d/patches/patch-aa23
-rw-r--r--mail/popa3d/patches/patch-ab21
-rw-r--r--mail/popa3d/pkg/COMMENT1
-rw-r--r--mail/popa3d/pkg/DEINSTALL19
-rw-r--r--mail/popa3d/pkg/DESCR15
-rw-r--r--mail/popa3d/pkg/INSTALL36
-rw-r--r--mail/popa3d/pkg/MESSAGE10
-rw-r--r--mail/popa3d/pkg/PLIST5
11 files changed, 177 insertions, 0 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile
new file mode 100644
index 00000000000..c84f20e6ef9
--- /dev/null
+++ b/mail/popa3d/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+#
+
+DISTNAME= popa3d-0.4
+CATEGORIES= mail
+MASTER_SITES= http://www.openwall.com/popa3d/ \
+ ftp://ftp.openwall.com/popa3d/ \
+ ftp://ftp.false.com/pub/security/popa3d/
+
+MAINTAINER= wiz@netbsd.org
+HOMEPAGE= http://www.openwall.com/popa3d/
+
+.if exists(/usr/sbin/user)
+USER_CMD= /usr/sbin/user
+GROUP_CMD= /usr/sbin/group
+.else
+DEPENDS+= user>=20000313:../../sysutils/user
+USER_CMD= ${LOCALBASE}/sbin/user
+GROUP_CMD= ${LOCALBASE}/sbin/group
+.endif
+
+do-install:
+ @if [ `${GROUP_CMD} info -e popa3d` ]; then \
+ ${ECHO} Group \'popa3d\' already exists.; \
+ else \
+ ${GROUP_CMD} add popa3d; \
+ fi
+ @if [ `${USER_CMD} info -e popa3d` ]; then \
+ ${ECHO} User \'popa3d\' already exists.; \
+ else \
+ ${USER_CMD} add -g popa3d -d /nonexistent -s /sbin/nologin \
+ popa3d; \
+ fi
+ ${INSTALL_PROGRAM} -o popa3d -g popa3d -m 700 ${WRKSRC}/popa3d \
+ ${PREFIX}/libexec
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/popa3d
+ cd ${WRKSRC} && ${INSTALL_DATA} COPYING DESIGN INSTALL \
+ ${PREFIX}/share/doc/popa3d
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/popa3d/files/md5 b/mail/popa3d/files/md5
new file mode 100644
index 00000000000..683498aaf94
--- /dev/null
+++ b/mail/popa3d/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+
+MD5 (popa3d-0.4.tar.gz) = 4ce2ed209abeaeaae7724d8d24bb7dbf
diff --git a/mail/popa3d/files/patch-sum b/mail/popa3d/files/patch-sum
new file mode 100644
index 00000000000..98f014dece7
--- /dev/null
+++ b/mail/popa3d/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+
+MD5 (patch-aa) = 1675804fbeac0b178f16fd930e870dbe
+MD5 (patch-ab) = 38d105a7f5e44b71782a47736a4514e1
diff --git a/mail/popa3d/patches/patch-aa b/mail/popa3d/patches/patch-aa
new file mode 100644
index 00000000000..15dc42d380b
--- /dev/null
+++ b/mail/popa3d/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+
+--- params.h.orig Tue Feb 1 07:16:24 2000
++++ params.h Sun Apr 2 00:29:09 2000
+@@ -62,7 +62,9 @@
+ * Do we have shadow passwords? (Not for *BSD.)
+ * Note: password aging is not supported.
+ */
++/* we do, but not this way
+ #define AUTH_SHADOW 1
++*/
+
+ /*
+ * A salt used to waste some CPU time on dummy crypt(3) calls and make
+@@ -81,7 +83,7 @@
+ * Your mail spool directory. Note: only local (non-NFS) mode 775 mail
+ * spools are currently supported.
+ */
+-#define MAIL_SPOOL_PATH "/var/spool/mail"
++#define MAIL_SPOOL_PATH "/var/mail"
+
+ /*
+ * How do we talk to syslogd? These should be fine for most systems.
diff --git a/mail/popa3d/patches/patch-ab b/mail/popa3d/patches/patch-ab
new file mode 100644
index 00000000000..90b9578ee1f
--- /dev/null
+++ b/mail/popa3d/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+
+--- Makefile.orig Tue Feb 1 04:56:46 2000
++++ Makefile Sun Apr 2 00:29:25 2000
+@@ -1,9 +1,11 @@
+-CC = gcc
+-LD = gcc
+-RM = rm -f
+-CFLAGS = -c -Wall -O2 -fomit-frame-pointer
+-LDFLAGS = -s
++CC ?= gcc
++LD = ${CC}
++RM ?= rm -f
++CFLAGS += -c -Wall -O2 -fomit-frame-pointer
++LDFLAGS += -s -lcrypt
+ #LDFLAGS = -s -lcrypt
++
++all: popa3d
+
+ PROJ = popa3d
+ OBJS = md5/md5.o \
diff --git a/mail/popa3d/pkg/COMMENT b/mail/popa3d/pkg/COMMENT
new file mode 100644
index 00000000000..ea99c65dfa8
--- /dev/null
+++ b/mail/popa3d/pkg/COMMENT
@@ -0,0 +1 @@
+secure, reliable, performant, and small pop3 server
diff --git a/mail/popa3d/pkg/DEINSTALL b/mail/popa3d/pkg/DEINSTALL
new file mode 100644
index 00000000000..9662aa4f1c9
--- /dev/null
+++ b/mail/popa3d/pkg/DEINSTALL
@@ -0,0 +1,19 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+if ! user del popa3d
+then
+ echo Removing user \'popa3d\' failed, please remove him manually.
+fi
+if ! group del popa3d
+then
+ echo Removing group \'popa3d\' failed, please remove it manually.
+fi
+
+echo
+echo Remember to remove popa3d from /etc/inetd.conf and restart inetd.
+echo
diff --git a/mail/popa3d/pkg/DESCR b/mail/popa3d/pkg/DESCR
new file mode 100644
index 00000000000..a7afca74e1c
--- /dev/null
+++ b/mail/popa3d/pkg/DESCR
@@ -0,0 +1,15 @@
+From the DESIGN-document:
+
+Well, the goals themselves are obvious; they're probably the same for most
+other POP3 servers as well. It's their priority that differs. For popa3d,
+the goals are:
+
+1. Security (to the extent that is possible with POP3 at all, of course).
+2. Reliability (again, as limited by the mailbox format and the protocol).
+3. RFC compliance (slightly relaxed to work with real-world POP3 clients).
+4. Performance (limited by the more important goals, above).
+
+This package is installed to be run from inetd, which is sufficient
+for normal usage. However, it is possible to build a stand-alone
+version, should you need better performance. (This is currently not
+supported by the package system.)
diff --git a/mail/popa3d/pkg/INSTALL b/mail/popa3d/pkg/INSTALL
new file mode 100644
index 00000000000..a3c727190cd
--- /dev/null
+++ b/mail/popa3d/pkg/INSTALL
@@ -0,0 +1,36 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+#
+
+if [ "$2" != "PRE-INSTALL" ]; then
+ chown popa3d:popa3d ${PKG_PREFIX}/libexec/popa3d
+ exit 0
+fi
+
+if [ -f /usr/sbin/user ]
+then
+ USER_CMD=/usr/sbin/user
+ GROUP_CMD=/usr/sbin/group
+else
+ if [ -f ${PKG_PREFIX}/sbin/user ]
+ then
+ USER_CMD=${PKG_PREFIX}/sbin/user
+ GROUP_CMD=${PKG_PREFIX}/sbin/group
+ else
+ echo
+ echo Please install the sysutils/user first!
+ echo
+ exit 0
+ fi
+fi
+
+if ${GROUP_CMD} info -e popa3d ; then \
+ ${ECHO} Group \'popa3d\' already exists.; \
+else \
+ ${GROUP_CMD} add popa3d; \
+fi
+if ${USER_CMD} info -e popa3d ; then \
+ ${ECHO} User \'popa3d\' already exists.; \
+else \
+ ${USER_CMD} add -g popa3d -d /nonexistent -s /sbin/nologin \
+ popa3d; \
+fi
diff --git a/mail/popa3d/pkg/MESSAGE b/mail/popa3d/pkg/MESSAGE
new file mode 100644
index 00000000000..d5e6b55488b
--- /dev/null
+++ b/mail/popa3d/pkg/MESSAGE
@@ -0,0 +1,10 @@
+=================================================================
+
+In order to enable POP service, you should add the following line
+to your /etc/inetd.conf:
+
+ pop3 stream tcp nowait root ${PKG_PREFIX}/libexec/popa3d popa3d
+
+and send a HUP signal to inetd.
+
+=================================================================
diff --git a/mail/popa3d/pkg/PLIST b/mail/popa3d/pkg/PLIST
new file mode 100644
index 00000000000..0eea578ebfa
--- /dev/null
+++ b/mail/popa3d/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/04/02 01:32:28 wiz Exp $
+libexec/popa3d
+share/doc/popa3d/COPYING
+share/doc/popa3d/DESIGN
+share/doc/popa3d/INSTALL