1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00

Update to popd-2.0:

* SSL support
* Wire-format option for mailboxes.
* Mailbox support cleanup (esp. Maildir)

Note that bulletins are non-functional in this release.
This commit is contained in:
Sheldon Hearn 2002-01-18 14:41:58 +00:00
parent 793e6d3d89
commit a75a8789a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53299
10 changed files with 59 additions and 71 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= popd
PORTVERSION= 1.03
PORTREVISION= 1
PORTVERSION= 2.0
CATEGORIES= mail
MASTER_SITES= ftp://ftp3.za.freebsd.org/pub/popd/
@ -15,10 +14,10 @@ MAINTAINER= ianf@za.uu.net
MAN8= popd.8
do-build:
cd ${WRKSRC}; make -DNOMANCOMPRESS
INSTALLS_SHLIB= yes
NOMANCOMPRESS= yes
do-install:
cd ${WRKSRC}; make -DNOMANCOMPRESS BINDIR=${PREFIX}/libexec MANDIR=${PREFIX}/man/man install
post-extract:
${MV} ${WRKSRC}/src/popd.8 ${WRKSRC}/src/popd.mdoc
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (popd-1.03.tar.gz) = 8fd4416b908577178ae476a260617509
MD5 (popd-2.0.tar.gz) = 1955bdc845b5a87bc599151859e81962

View File

@ -0,0 +1,16 @@
--- lib/Makefile.orig Fri Dec 7 15:34:54 2001
+++ lib/Makefile Fri Jan 18 15:48:02 2002
@@ -3,10 +3,11 @@
LIB=poputil
SRCS= funcs.c lockfile.c mailbox.c mbox_maildir.c mbox_mailidx.c mbox_mbf.c
INCS=poputil.h
-CFLAGS = -g -Wall -O -pipe -fPIC -shared -DUSE_SSL
+CFLAGS+= -Wall -DUSE_SSL
SHLIB_MAJOR= 1
SHLIB_MINOR= 0
-DESTDIR=/usr/local/
+DESTDIR= ${PREFIX}/
+PREFIX?= /usr/local
LIBDIR=lib
INCDIR=include

View File

@ -1,10 +0,0 @@
--- mbox_maildir.c.orig Tue Apr 17 05:09:26 2001
+++ mbox_maildir.c Wed May 16 08:52:34 2001
@@ -212,6 +212,7 @@
continue;
}
}
+ facility = LOG_INFO;
syslog(facility, "%s: retr %d leave %d %d byte%s %d error%s D%d(%d) "
"E%d(%d) R%d(%d)",
user->auth_string, ret, user->mbx.mail.num - del - exp - rem,

View File

@ -1,11 +0,0 @@
--- mbox_mbf.c.orig Tue Apr 17 05:09:26 2001
+++ mbox_mbf.c Wed May 16 08:52:34 2001
@@ -178,7 +178,7 @@
size_t left, bytes, len;
char buffer[MAXBUFLEN];
- facility = LOG_NOTICE;
+ facility = LOG_INFO;
ret = del = exp = rem = errors = 0;
dst = -1;
for (i = 0; i <= user->mbx.num; i++) {

View File

@ -1,23 +0,0 @@
--- popd.8 2001/04/09 12:16:39 1.16
+++ popd.8 2001/05/30 08:36:04
@@ -538,6 +538,20 @@
Exit status as defined in
.Xr sysexits 3
are returned.
+.Pp
+.Nm
+reports status messages, warnings and errors via
+.Xr syslog 3
+using the
+.Dv LOG_DAEMON
+facility.
+Warnings and errors are logged using the
+.Dv LOG_NOTICE
+and
+.Dv LOG_CRIT
+priorities,
+while connections, authentication and sessions are logged at
+.Dv LOG_INFO .
.Sh HISTORY
.Nm
was originally written for UUNET South Africa in 1999.

View File

@ -1,19 +0,0 @@
--- popd.c.orig Tue Apr 17 05:09:26 2001
+++ popd.c Wed May 16 09:00:39 2001
@@ -501,6 +503,7 @@
closesigpipe();
opensigpipe();
setsignals();
+ facility = LOG_INFO;
if (config.daemonise || config.debug)
getnameinfo((struct sockaddr *)&addr, addr.ss_len,
ip, sizeof(ip), NULL, 0,
@@ -518,6 +521,8 @@
sendline("+OK %s ready %s", IDENT, config.timestamp);
switch (authenticate(&user)) {
case TRUE:
+ syslog(facility, "Login user=%s host=[%s]",
+ user->username, ip);
if (!config.proxy)
transaction(user);
else

View File

@ -0,0 +1,27 @@
--- src/Makefile.orig Thu Dec 27 12:13:00 2001
+++ src/Makefile Fri Jan 18 16:14:29 2002
@@ -3,14 +3,19 @@
#
PROG= popd
-CFLAGS+= -Wall -Werror -pedantic -I../lib -L../lib -L/usr/local/lib \
+CFLAGS+= -Wall -Werror -pedantic -I../lib -L../lib \
-DUSE_SSL -DUSE_IPV6
LDADD= -lcrypt -lmd -lradius -lpoputil -lssl -lcrypto
-DPSDD= ${LIBCRYPT} ${LIBMD}
+DPADD= ${LIBCRYPT} ${LIBMD} ${LIBRADIUS} ${LIBSSL} ${LIBCRYPTO} \
+ ../lib/libpoputil.a
SRCS= popd.c authenticate.c transaction.c signals.c proxy.c
MAN8= popd.8
-DESTDIR=/usr/local/
-BINDIR=bin
-MANDIR=share/man
+DESTDIR= ${PREFIX}/
+PREFIX?= /usr/local
+BINDIR=libexec
+MANDIR=man/man
+
+popd.8: popd.mdoc
+ sed -e "s,XX_PREFIX_XX,${PREFIX},g" < popd.mdoc > popd.8
.include <bsd.prog.mk>

View File

@ -1,6 +1,10 @@
The popd server is a fast, full RFC1939 implimentation.
The popd server is a fast, full, BSD-licensed RFC1939 implementation.
Popd allows mail for users in multiple domains to be served from
one server in `virtual' mode. It allows for mail to be expired
from the server when users collect mail older than a specified
time, falsification of UIDL information and removal of old mail.
Additional features include SSL and proxy support, as well as
support for a variety of mailbox formats. The bulletin feature
is nonfunctional in this release.

View File

@ -1 +1,6 @@
include/poputil.h
libexec/popd
libpoputil.a
libpoputil.so
libpoputil.so.1
libpoputil_p.a