mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
add tpop3d 1.3.4
Virtual-domain capable POP3 server supporting MySQL auth PR: 29265 Submitted by: Chris Elsworth <chris@shagged.org>
This commit is contained in:
parent
c511430145
commit
3b958fc914
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47201
8 changed files with 132 additions and 0 deletions
|
@ -197,6 +197,7 @@
|
|||
SUBDIR += tkrat2
|
||||
SUBDIR += tlb
|
||||
SUBDIR += tmda
|
||||
SUBDIR += tpop3d
|
||||
SUBDIR += vbsfilter
|
||||
SUBDIR += vm-pop3d
|
||||
SUBDIR += vpopmail
|
||||
|
|
63
mail/tpop3d/Makefile
Normal file
63
mail/tpop3d/Makefile
Normal file
|
@ -0,0 +1,63 @@
|
|||
# New ports collection makefile for: tpop3d
|
||||
# Date created: 27 July 2001
|
||||
# Whom: chris@shagged.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= tpop3d
|
||||
PORTVERSION= 1.3.4
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://www.ex-parrot.com/~chris/tpop3d/
|
||||
|
||||
MAINTAINER= chris@shagged.org
|
||||
|
||||
# mysql authentication
|
||||
.if !defined(WITHOUT_MYSQL)
|
||||
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
||||
.endif
|
||||
|
||||
# perl authentication
|
||||
.if defined(WITH_PERLAUTH)
|
||||
USE_PERL5= yes
|
||||
.endif
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --enable-auth-other \
|
||||
--with-mailspool-directory=/var/mail
|
||||
|
||||
.if !defined(WITHOUT_MYSQL)
|
||||
CONFIGURE_ARGS+= --enable-auth-mysql --with-mysql-root=${LOCALBASE}
|
||||
.endif
|
||||
.if defined(WITH_PERLAUTH)
|
||||
CONFIGURE_ARGS+= --enable-auth-perl
|
||||
.endif
|
||||
.if !defined(WITHOUT_MAILDIR)
|
||||
CONFIGURE_ARGS+= --enable-mbox-maildir
|
||||
.endif
|
||||
|
||||
SAMPLE_RCD= tpop3d.sh.sample
|
||||
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/${SAMPLE_RCD}
|
||||
DEFAULT_CONFIG= ${PREFIX}/etc/tpop3d.conf.dist
|
||||
|
||||
MAN5= tpop3d.conf.5
|
||||
MAN8= tpop3d.8
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e 's,^CFLAGS =, CFLAGS = \@CFLAGS\@,' \
|
||||
${WRKSRC}/Makefile.in
|
||||
@${PERL} -pi -e 's,/etc/tpop3d,${PREFIX}/etc/tpop3d,g' \
|
||||
${WRKSRC}/tpop3d.conf.5 ${WRKSRC}/tpop3d.8
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/tpop3d.conf.dist ${DEFAULT_CONFIG}
|
||||
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/${SAMPLE_RCD} \
|
||||
${STARTUP_SCRIPT} ; \
|
||||
fi
|
||||
@if [ ! -f ${PREFIX}/etc/tpop3d.conf ]; then \
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/tpop3d.conf.dist \
|
||||
${PREFIX}/etc/tpop3d.conf ; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/tpop3d/distinfo
Normal file
1
mail/tpop3d/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (tpop3d-1.3.4.tar.gz) = c91148c4465be32b0bb5ffbbc45db971
|
7
mail/tpop3d/files/tpop3d.conf.dist
Normal file
7
mail/tpop3d/files/tpop3d.conf.dist
Normal file
|
@ -0,0 +1,7 @@
|
|||
listen-address: 0.0.0.0
|
||||
max-children: 20
|
||||
|
||||
mailbox: bsd:/var/mail/$(user)
|
||||
|
||||
auth-pam-enable: yes
|
||||
|
45
mail/tpop3d/files/tpop3d.sh.sample
Normal file
45
mail/tpop3d/files/tpop3d.sh.sample
Normal file
|
@ -0,0 +1,45 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# tpop3d:
|
||||
# Init script for starting/stopping tpop3d.
|
||||
#
|
||||
# Copyright (c) 2001 Chris Lightfoot. All rights reserved.
|
||||
# Portability enhanced by Chris Elsworth, July 2001
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DAEMON=$PREFIX/sbin/tpop3d
|
||||
|
||||
[ -f $DAEMON ] || exit 0
|
||||
|
||||
# See how we were called.
|
||||
case "$1" in
|
||||
start)
|
||||
# Start daemons.
|
||||
$DAEMON -f $PREFIX/etc/tpop3d.conf -p /var/run/tpop3d.pid \
|
||||
&& echo -n " tpop3d"
|
||||
;;
|
||||
stop)
|
||||
# Stop daemons.
|
||||
[ -r /var/run/tpop3d.pid ] && kill `cat /var/run/tpop3d.pid` \
|
||||
&& echo -n " tpop3d"
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
reload)
|
||||
[ -r /var/run/tpop3d.pid ] && kill -HUP `cat /var/run/tpop3d.pid`
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
1
mail/tpop3d/pkg-comment
Normal file
1
mail/tpop3d/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Virtual-domain capable POP3 server supporting MySQL auth
|
9
mail/tpop3d/pkg-descr
Normal file
9
mail/tpop3d/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
tpop3d is yet-another-pop3-server. The intention has been to write
|
||||
a server which is fast, extensible, and secure. tpop3d supports
|
||||
traditional (BSD-format) mailspools and Maildir. It also supports
|
||||
MySQL, perl, and external authentication methods.
|
||||
|
||||
WWW: http://www.ex-parrot.com/~chris/tpop3d/
|
||||
|
||||
- Chris Elsworth
|
||||
chris@shagged.org
|
5
mail/tpop3d/pkg-plist
Normal file
5
mail/tpop3d/pkg-plist
Normal file
|
@ -0,0 +1,5 @@
|
|||
sbin/tpop3d
|
||||
etc/rc.d/tpop3d.sh.sample
|
||||
@unexec if cmp -s %D/etc/tpop3d.conf.dist %D/etc/tpop3d.conf; then rm -f %D/etc/tpop3d.conf; fi
|
||||
etc/tpop3d.conf.dist
|
||||
@exec if [ ! -f %D/etc/tpop3d.conf ]; then cp %D/etc/%f %D/etc/tpop3d.conf; fi
|
Loading…
Add table
Reference in a new issue