aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/solidpop3d/Makefile34
-rw-r--r--mail/solidpop3d/distinfo1
-rw-r--r--mail/solidpop3d/files/patch-aa20
-rw-r--r--mail/solidpop3d/files/patch-ab25
-rw-r--r--mail/solidpop3d/files/patch-ac30
-rw-r--r--mail/solidpop3d/files/patch-ad22
-rw-r--r--mail/solidpop3d/pkg-comment1
-rw-r--r--mail/solidpop3d/pkg-descr22
-rw-r--r--mail/solidpop3d/pkg-plist2
-rw-r--r--mail/solidpop3d/pkg-req13
-rw-r--r--mail/solidpop3d/scripts/pre-install10
11 files changed, 180 insertions, 0 deletions
diff --git a/mail/solidpop3d/Makefile b/mail/solidpop3d/Makefile
new file mode 100644
index 000000000000..f10a5bcf6704
--- /dev/null
+++ b/mail/solidpop3d/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: solidpop3d
+# Date created: 22 May 2000
+# Whom: Marco Rodrigues <drkangel@drkangel.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= solidpop3d
+PORTVERSION= 0.15
+CATEGORIES= mail
+MASTER_SITES= http://solidpop3d.pld.org.pl/ \
+ ftp://207.176.230.192/
+
+MAINTAINER= drkangel@drkangel.org
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= LDFLAGS="-lmd"
+
+MAN1= pop_auth.1
+MAN5= spop3d.conf.5 dot-spop3d.5
+MAN8= spop3d.8
+
+post-extract:
+ ${RM} ${WRKSRC}/src/md5.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/spop3d ${PREFIX}/libexec
+ ${INSTALL_MAN} ${WRKSRC}/man/pop_auth.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/spop3d.conf.5 ${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/man/dot-spop3d.5 ${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/man/spop3d.8 ${PREFIX}/man/man8
+ ${INSTALL_DATA} ${WRKSRC}/doc/config.example ${PREFIX}/etc/spop3d.conf.sample
+
+.include <bsd.port.mk>
diff --git a/mail/solidpop3d/distinfo b/mail/solidpop3d/distinfo
new file mode 100644
index 000000000000..57c115fe2f70
--- /dev/null
+++ b/mail/solidpop3d/distinfo
@@ -0,0 +1 @@
+MD5 (solid-pop3d-0.15.tar.gz) = 1b893fcfdceef7d3c209094e34023c02
diff --git a/mail/solidpop3d/files/patch-aa b/mail/solidpop3d/files/patch-aa
new file mode 100644
index 000000000000..896cc9d611e7
--- /dev/null
+++ b/mail/solidpop3d/files/patch-aa
@@ -0,0 +1,20 @@
+--- src/const.h.orig Tue Apr 18 19:04:05 2000
++++ src/const.h Fri Jun 9 14:12:51 2000
+@@ -36,7 +36,7 @@
+ #define DEFWCCOUNT 5
+
+ #ifdef MDMAILBOX
+-#define DEFMAILDROPNAME "/var/spool/mail/%s"
++#define DEFMAILDROPNAME "/var/mail/%s"
+ #else
+ #define DEFMAILDROPNAME "Maildir"
+ #endif
+@@ -50,7 +50,7 @@
+ #define MAXMDTYPENAMELENGTH 40
+ #define USERCFG ".spop3d"
+ #define USERBULL ".spop3d-bull"
+-#define POPUSER "spop3d"
++#define POPUSER "pop"
+
+ #define PER_SOURCE 5
+ #define MAX_SESSIONS 50
diff --git a/mail/solidpop3d/files/patch-ab b/mail/solidpop3d/files/patch-ab
new file mode 100644
index 000000000000..66d81dfeb5cb
--- /dev/null
+++ b/mail/solidpop3d/files/patch-ab
@@ -0,0 +1,25 @@
+--- src/Makefile.in.orig Fri Jun 9 14:16:13 2000
++++ src/Makefile.in Fri Jun 9 14:16:17 2000
+@@ -60,11 +60,11 @@
+
+
+ noinst_HEADERS = apop.h authenticate.h cmds.h configfile.h const.h fdfgets.h \
+-log.h mailbox.h maildir.h maildrop.h md5.h includes.h options.h response.h \
++log.h mailbox.h maildir.h maildrop.h includes.h options.h response.h \
+ userconfig.h mapping.h spipv6.h
+
+
+-spop3d_SOURCES = authenticate.c cmds.c log.c fdfgets.c maildrop.c main.c md5.c \
++spop3d_SOURCES = authenticate.c cmds.c log.c fdfgets.c maildrop.c main.c \
+ memops.c options.c response.c vsnprintf.c
+
+
+@@ -95,7 +95,7 @@
+ LIBS = @LIBS@
+ pop_auth_OBJECTS = pop_auth.o fdfgets.o vsnprintf.o
+ spop3d_OBJECTS = authenticate.o cmds.o log.o fdfgets.o maildrop.o main.o \
+-md5.o memops.o options.o response.o vsnprintf.o
++memops.o options.o response.o vsnprintf.o
+ CFLAGS = @CFLAGS@
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS)
+ CCLD = $(CC)
diff --git a/mail/solidpop3d/files/patch-ac b/mail/solidpop3d/files/patch-ac
new file mode 100644
index 000000000000..bf6a0e3cf7ef
--- /dev/null
+++ b/mail/solidpop3d/files/patch-ac
@@ -0,0 +1,30 @@
+--- src/mailbox.c.orig Sat May 13 16:18:33 2000
++++ src/mailbox.c Fri Jun 9 14:56:54 2000
+@@ -45,6 +45,9 @@
+ #endif
+ #endif
+
++#define md5_finish_ctx(ctx, dig) MD5Final((unsigned char *)dig, ctx)
++#define md5_init_ctx(ctx) MD5Init(ctx)
++#define md5_process_bytes(buf, len, ctx) MD5Update (ctx, (unsigned char *)buf, len)
+
+ extern void check_wccount(void);
+ extern char maildrop_name[];
+@@ -207,7 +210,7 @@
+ char linebuf[128];
+ char msgdate[21];
+ struct mb_message *mbspecific;
+- struct md5_ctx context;
++ MD5_CTX context;
+ int header = 1, fixed = 0, newline = 1;
+
+ if (mailboxfd < 0) {
+@@ -342,7 +345,7 @@
+ off_t act_ofs = 0;
+ char msgdate[21];
+ struct mb_message *tmp;
+- struct md5_ctx context;
++ MD5_CTX context;
+ int tmpmsgnr = 0;
+ time_t tmpmsg_time;
+ off_t tmpfrom_where = 0, tmpwhere = 0;
diff --git a/mail/solidpop3d/files/patch-ad b/mail/solidpop3d/files/patch-ad
new file mode 100644
index 000000000000..ac23c303e8f5
--- /dev/null
+++ b/mail/solidpop3d/files/patch-ad
@@ -0,0 +1,22 @@
+--- src/maildir.c.orig Sat May 13 16:18:35 2000
++++ src/maildir.c Fri Jun 9 14:57:07 2000
+@@ -59,6 +59,10 @@
+ #endif
+ #endif
+
++#define md5_finish_ctx(ctx, dig) MD5Final((unsigned char *)dig, ctx)
++#define md5_init_ctx(ctx) MD5Init(ctx)
++#define md5_process_bytes(buf, len, ctx) MD5Update (ctx, (unsigned char *)buf, len)
++
+ extern void check_wccount(void);
+
+ extern char maildrop_name[];
+@@ -650,7 +654,7 @@
+ char *mdir_md5_uidl_message(unsigned int number, char *result) {
+ size_t length;
+ char *tmp2, *tmp3;
+- struct md5_ctx context;
++ MD5_CTX context;
+
+ md5_init_ctx(&context);
+ tmp2 = ((struct mdir_message *) (messages[number].md_specific))->filename;
diff --git a/mail/solidpop3d/pkg-comment b/mail/solidpop3d/pkg-comment
new file mode 100644
index 000000000000..c6ac2ec5b03b
--- /dev/null
+++ b/mail/solidpop3d/pkg-comment
@@ -0,0 +1 @@
+SolidPop3 POP3 daemon (fully RFC1939 compliant)
diff --git a/mail/solidpop3d/pkg-descr b/mail/solidpop3d/pkg-descr
new file mode 100644
index 000000000000..d2339943a347
--- /dev/null
+++ b/mail/solidpop3d/pkg-descr
@@ -0,0 +1,22 @@
+The Solid POP3 Server is an implementation of a Post Office Protocol version 3
+server that has flexibility as its main goal. The server is easily configurable
+and has support for few features such as:
+
+- APOP authentication scheme
+- virtual hosting
+- maildir and mailbox handling
+- bulletins
+- expiration of messages
+
+Each user can specify his maildrop (its position and type). The format used in
+specification of maildrop's position should handle almost all widely-used
+system configurations. The server also seems to be fast, however no tests have
+been performed, so it's rather relative feeling. The design used is very
+similar to the design of Solar Designer's POPA3D server. This solution let's
+minimalize size of code working with root privileges. The code was also heavily
+checked for buffer overflow leaks and file races. None have been found as for
+now. All operations on files are done with user privileges. There is no SUID
+APOP secrets database management program (as in QPOP). Each user can specify
+his secret in his own home directory.
+
+WWW: http://solidpop3d.pld.org.pl/
diff --git a/mail/solidpop3d/pkg-plist b/mail/solidpop3d/pkg-plist
new file mode 100644
index 000000000000..5946b696e46a
--- /dev/null
+++ b/mail/solidpop3d/pkg-plist
@@ -0,0 +1,2 @@
+etc/spop3d.conf.sample
+libexec/spop3d
diff --git a/mail/solidpop3d/pkg-req b/mail/solidpop3d/pkg-req
new file mode 100644
index 000000000000..01bcc6374f10
--- /dev/null
+++ b/mail/solidpop3d/pkg-req
@@ -0,0 +1,13 @@
+if [ "$2" != "INSTALL" ]; then
+ exit 0
+fi
+if ! id -u pop > /dev/null 2>&1; then
+ echo "You need an account \"pop\" to install this package."
+ echo "Please add it by hand (try \"man vipw\") and try again."
+ echo ""
+ echo "An example passwd entry is:"
+ echo "pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent"
+ echo ""
+ exit 1
+fi
+exit 0
diff --git a/mail/solidpop3d/scripts/pre-install b/mail/solidpop3d/scripts/pre-install
new file mode 100644
index 000000000000..75197624f8ca
--- /dev/null
+++ b/mail/solidpop3d/scripts/pre-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+if ! id -u pop > /dev/null 2>&1; then
+ echo "You need an account \"pop\" to install this package."
+ echo "Please add it by hand (try \"man vipw\") and try again."
+ echo ""
+ echo "An example passwd entry is:"
+ echo "pop:*:68:6::0:0:Post Office Owner:/nonexistent:/nonexistent"
+ echo ""
+ exit 1
+fi