summaryrefslogtreecommitdiff
path: root/mail/popa3d
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-02-19 13:21:54 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-02-19 13:21:54 +0000
commitdc2053998b27f3d38244ac8dc5fa7c57b1cfc132 (patch)
treec413f5801a898937231b46ac6624c9796e465a5a /mail/popa3d
parentAdd RESTRICTED. (diff)
popa3d is a POP3 server with the following goals:
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). PR: 16652 Submitted by: Sergey Samoyloff <techline@hotmail.ru>
Notes
Notes: svn path=/head/; revision=26003
Diffstat (limited to 'mail/popa3d')
-rw-r--r--mail/popa3d/Makefile47
-rw-r--r--mail/popa3d/distinfo1
-rw-r--r--mail/popa3d/files/patch-aa28
-rw-r--r--mail/popa3d/files/patch-ab24
-rw-r--r--mail/popa3d/pkg-comment1
-rw-r--r--mail/popa3d/pkg-deinstall20
-rw-r--r--mail/popa3d/pkg-descr14
-rw-r--r--mail/popa3d/pkg-install39
-rw-r--r--mail/popa3d/pkg-plist5
9 files changed, 179 insertions, 0 deletions
diff --git a/mail/popa3d/Makefile b/mail/popa3d/Makefile
new file mode 100644
index 000000000000..d23b6633e8d6
--- /dev/null
+++ b/mail/popa3d/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: popa3d
+# Version required: 0.4
+# Date created: Sun Feb 6 12:31:29 MSK 2000
+# Whom: Sergey Samoyloff <gonza@techline.ru>
+#
+# $FreeBSD$
+#
+
+DISTNAME= popa3d-0.4
+CATEGORIES= mail
+MASTER_SITES= ftp://ftp.false.com/pub/security/popa3d/
+
+MAINTAINER= gonza@techline.ru
+
+post-install:
+
+ @ ${ECHO} "==========================================================================="
+ @ ${ECHO} "1. Edit your /etc/inetd.conf to use popa3d. The line should look like this:"
+ @ ${ECHO} ""
+ @ ${ECHO} "pop3 stream tcp nowait root /usr/local/libexec/popa3d popa3d"
+ @ ${ECHO} ""
+ @ ${ECHO} "Note: when started via an inetd clone, the logging of connections is left"
+ @ ${ECHO} "up to that inetd clone or TCP wrappers."
+ @ ${ECHO} ""
+ @ ${ECHO} "2. Restart inetd by sending it a SIGHUP:"
+ @ ${ECHO} ""
+ @ ${ECHO} "# killall -HUP inetd"
+ @ ${ECHO} "==========================================================================="
+
+do-install:
+ ${INSTALL} ${COPY} -o root -g wheel -m 500 \
+ ${WRKSRC}/popa3d ${PREFIX}/libexec/popa3d
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/popa3d
+ ${INSTALL_MAN} ${WRKSRC}/INSTALL \
+ ${PREFIX}/share/doc/popa3d
+ ${INSTALL_MAN} ${WRKSRC}/DESIGN \
+ ${PREFIX}/share/doc/popa3d
+ ${INSTALL_MAN} ${WRKSRC}/COPYING \
+ ${PREFIX}/share/doc/popa3d
+.endif
+
+pre-install:
+ ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
+
+.include <bsd.port.mk>
diff --git a/mail/popa3d/distinfo b/mail/popa3d/distinfo
new file mode 100644
index 000000000000..e530600c94fc
--- /dev/null
+++ b/mail/popa3d/distinfo
@@ -0,0 +1 @@
+MD5 (popa3d-0.4.tar.gz) = 4ce2ed209abeaeaae7724d8d24bb7dbf
diff --git a/mail/popa3d/files/patch-aa b/mail/popa3d/files/patch-aa
new file mode 100644
index 000000000000..eac93b14a7f4
--- /dev/null
+++ b/mail/popa3d/files/patch-aa
@@ -0,0 +1,28 @@
+--- params.h.orig Tue Feb 1 09:16:24 2000
++++ params.h Sun Feb 6 15:24:46 2000
+@@ -62,7 +62,7 @@
+ * Do we have shadow passwords? (Not for *BSD.)
+ * Note: password aging is not supported.
+ */
+-#define AUTH_SHADOW 1
++#define AUTH_SHADOW 0
+
+ /*
+ * A salt used to waste some CPU time on dummy crypt(3) calls and make
+@@ -81,14 +81,14 @@
+ * 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.
+ */
+ #define SYSLOG_IDENT "popa3d"
+ #define SYSLOG_OPTIONS LOG_PID
+-#define SYSLOG_FACILITY LOG_DAEMON
++#define SYSLOG_FACILITY LOG_MAIL
+ #define SYSLOG_PRIORITY LOG_NOTICE
+
+ /*
diff --git a/mail/popa3d/files/patch-ab b/mail/popa3d/files/patch-ab
new file mode 100644
index 000000000000..fa30f9236e90
--- /dev/null
+++ b/mail/popa3d/files/patch-ab
@@ -0,0 +1,24 @@
+--- Makefile.orig Tue Feb 1 06:56:46 2000
++++ Makefile Sun Feb 6 13:31:49 2000
+@@ -1,9 +1,9 @@
+-CC = gcc
++CC?= gcc
+ LD = gcc
+ RM = rm -f
+ CFLAGS = -c -Wall -O2 -fomit-frame-pointer
+-LDFLAGS = -s
+-#LDFLAGS = -s -lcrypt
++#LDFLAGS = -s
++LDFLAGS = -s -lcrypt
+
+ PROJ = popa3d
+ OBJS = md5/md5.o \
+@@ -12,7 +12,7 @@
+ protocol.o database.o mailbox.o \
+ misc.o
+
+-popa3d: $(OBJS)
++all: $(OBJS)
+ $(LD) $(LDFLAGS) $(OBJS) -o popa3d
+
+ md5/md5.o: md5/md5.c md5/md5.h
diff --git a/mail/popa3d/pkg-comment b/mail/popa3d/pkg-comment
new file mode 100644
index 000000000000..61db83c20175
--- /dev/null
+++ b/mail/popa3d/pkg-comment
@@ -0,0 +1 @@
+Tiny, Secure, Performance POP3 daemon.
diff --git a/mail/popa3d/pkg-deinstall b/mail/popa3d/pkg-deinstall
new file mode 100644
index 000000000000..dc5f858cea27
--- /dev/null
+++ b/mail/popa3d/pkg-deinstall
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+USER=popa3d
+GROUP=popa3d
+
+case $2 in
+ DEINSTALL)
+
+ ;;
+ POST-DEINSTALL)
+ pw groupdel $GROUP
+ pw userdel $USER
+ ;;
+ *)
+ echo "usage: $0 <pkg-name>
+{DEINSTALL|POST-DEINSTALL}"
+ exit 64
+esac
+
+exit 0
diff --git a/mail/popa3d/pkg-descr b/mail/popa3d/pkg-descr
new file mode 100644
index 000000000000..ef47695f4427
--- /dev/null
+++ b/mail/popa3d/pkg-descr
@@ -0,0 +1,14 @@
+The popa3d goals
+================
+
+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).
+
+-- Sergey Samoyloff
+gonza@techline.ru
diff --git a/mail/popa3d/pkg-install b/mail/popa3d/pkg-install
new file mode 100644
index 000000000000..7f90da837520
--- /dev/null
+++ b/mail/popa3d/pkg-install
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+USER=popa3d
+UID=89
+GID=89
+GROUP=popa3d
+GECOS="popa3d"
+HOME=/nonexistent
+SHELL=/sbin/nologin
+
+case $2 in
+ PRE-INSTALL)
+ which -s pw || {
+ cat << EOF
+
+I see that it is missing the "pw" utility. I need this utility.
+Please get it and install it, and try again.
+
+EOF
+ exit 1
+ }
+ pw groupshow $GROUP > /dev/null 2>&1 || {
+ pw groupadd $GROUP -g $GID;
+ }
+
+ pw usershow $USER > /dev/null 2>&1 || {
+ pw useradd $USER -g $GROUP -u $UID -h - -d $HOME -s $SHELL -c "$GECOS";
+ }
+
+ ;;
+ POST-INSTALL)
+
+ ;;
+ *)
+ echo "usage: $0 <pkg-name> {PRE-INSTALL|POST-INSTALL}"
+ exit 64
+esac
+
+exit 0
diff --git a/mail/popa3d/pkg-plist b/mail/popa3d/pkg-plist
new file mode 100644
index 000000000000..9553947f1ab2
--- /dev/null
+++ b/mail/popa3d/pkg-plist
@@ -0,0 +1,5 @@
+libexec/popa3d
+share/doc/popa3d/DESIGN
+share/doc/popa3d/INSTALL
+share/doc/popa3d/COPYING
+@dirrm share/doc/popa3d