Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2001 19:59:52 +0100
From:      Chris Elsworth <chris@shagged.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29265: New port: tpop3d, MySQL capable pop3 daemon
Message-ID:  <E15QCq0-000DAx-00@mail.shagged.org>

next in thread | raw e-mail | index | archive | help

>Number:         29265
>Category:       ports
>Synopsis:       New port: tpop3d, MySQL capable pop3 daemon
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 27 12:00:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chris Elsworth
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD rtfm.shagged.org 4.3-STABLE FreeBSD 4.3-STABLE #9: Fri Jul 27 16:19:45 BST 2001 root@rtfm.shagged.org:/usr/obj/usr/src/sys/RTFM i386


	
>Description:
Virtual-domain capable pop3-server supporting MySQL

>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tpop3d/
#	tpop3d/Makefile
#	tpop3d/distinfo
#	tpop3d/files
#	tpop3d/files/tpop3d.sh.sample.Dist
#	tpop3d/files/tpop3d.conf.default.Dist
#	tpop3d/pkg-comment
#	tpop3d/pkg-descr
#	tpop3d/pkg-plist
#
echo c - tpop3d/
mkdir -p tpop3d/ > /dev/null 2>&1
echo x - tpop3d/Makefile
sed 's/^X//' >tpop3d/Makefile << 'END-of-tpop3d/Makefile'
X# New ports collection makefile for:	tpop3d
X# Date created:		27 July 2001
X# Whom:			chris@shagged.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tpop3d
XPORTVERSION=	1.3.4
XCATEGORIES=	mail
XMASTER_SITES=	http://www.ex-parrot.com/~chris/tpop3d/
XDISTNAME=	tpop3d-1.3.4.tar.gz
X
XMAINTAINER=	chris@shagged.org
X
X# enable MySQL authentication
XUSE_MYSQL=	yes
X# enable Perl authentication
X#USE_PERL=	yes
X# support qmail style Maildirs
XWITH_MAILDIR=	yes
X
XSAMPLE_RCD=	tpop3d.sh.sample
XSTARTUP_SCRIPT=	${PREFIX}/etc/rc.d/${SAMPLE_RCD}
XDEFAULT_CONFIG=	${LOCALBASE}/etc/tpop3d.conf.default
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--enable-auth-other \
X		--with-mailspool-directory=/var/mail
X
X.if defined(USE_MYSQL)
XCONFIGURE_ARGS+=--enable-auth-mysql --with-mysql-root=${LOCALBASE}
XLIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
X.endif
X
X.if defined(USE_PERL)
XCONFIGURE_ARGS+=--enable-auth-perl
XUSE_PERL5=	yes
X.endif
X
X.if defined(WITH_MAILDIR)
XCONFIGURE_ARGS+=--enable-mbox-maildir
X.endif
X
XMAN5=		tpop3d.conf.5
XMAN8=		tpop3d.8
X
Xpost-patch:
X	${SED} -e 's#/etc/tpop3d.conf#${PREFIX}/etc/tpop3d.conf#g' \
X		-e 's#/sbin/tpop3d#${PREFIX}/sbin/tpop3d#g' \
X		${FILESDIR}/${SAMPLE_RCD}.Dist >${FILESDIR}/${SAMPLE_RCD}
X
Xdo-install:
X	@cd ${WRKSRC} && make install-sbinPROGRAMS
X	${INSTALL_MAN} ${WRKSRC}/tpop3d.conf.5 ${MANPREFIX}/man/man5
X	${INSTALL_MAN} ${WRKSRC}/tpop3d.8 ${MANPREFIX}/man/man8
X
Xpost-install:
X	@if [ ! -f ${STARTUP_SCRIPT} ]; then				\
X		${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ;	\
X		${INSTALL_SCRIPT} ${FILESDIR}/${SAMPLE_RCD}		\
X			${STARTUP_SCRIPT} ;				\
X	fi
X
X	@if [ ! -f ${DEFAULT_CONFIG} ]; then				\
X		${ECHO} "Installing ${DEFAULT_CONFIG} configuration." ;	\
X		${INSTALL_SCRIPT} ${FILESDIR}/tpop3d.conf.default.Dist	\
X			${DEFAULT_CONFIG} ;				\
X	fi
X
Xpost-clean:
X	@if [ -f ${FILESDIR}/${SAMPLE_RCD} ]; then			\
X		${RM} ${FILESDIR}/${SAMPLE_RCD} ;			\
X	fi
X
X.include <bsd.port.mk>
END-of-tpop3d/Makefile
echo x - tpop3d/distinfo
sed 's/^X//' >tpop3d/distinfo << 'END-of-tpop3d/distinfo'
XMD5 (tpop3d-1.3.4.tar.gz) = c91148c4465be32b0bb5ffbbc45db971
END-of-tpop3d/distinfo
echo c - tpop3d/files
mkdir -p tpop3d/files > /dev/null 2>&1
echo x - tpop3d/files/tpop3d.sh.sample.Dist
sed 's/^X//' >tpop3d/files/tpop3d.sh.sample.Dist << 'END-of-tpop3d/files/tpop3d.sh.sample.Dist'
X#!/bin/sh
X#
X# tpop3d:
X# Init script for starting/stopping tpop3d.
X#
X# Copyright (c) 2001 Chris Lightfoot. All rights reserved.
X#  Portability enhanced by Chris Elsworth, July 2001
X#
X
XDAEMON=/sbin/tpop3d
X
X[ -f $DAEMON ] || exit 0
X
X# See how we were called.
Xcase "$1" in
X  start)
X        # Start daemons.
X        $DAEMON -f /etc/tpop3d.conf -p /var/run/tpop3d.pid \
X		&& echo -n " tpop3d"
X        ;;
X  stop)
X        # Stop daemons.
X	[ -r /var/run/httpd.pid ] && kill `cat /var/run/tpop3d.pid` \
X		&& echo -n " tpop3d"
X        ;;
X  restart)
X	$0 stop
X	$0 start
X	;;
X  reload)
X  	[ -r /var/run/httpd.pid ] && kill -HUP `cat /var/run/tpop3d.pid`
X        ;;
X  *)
X        echo "Usage: `basename $0` {start|stop|restart|reload}"
X        exit 1
Xesac
X
Xexit 0
END-of-tpop3d/files/tpop3d.sh.sample.Dist
echo x - tpop3d/files/tpop3d.conf.default.Dist
sed 's/^X//' >tpop3d/files/tpop3d.conf.default.Dist << 'END-of-tpop3d/files/tpop3d.conf.default.Dist'
Xlisten-address: 0.0.0.0
Xmax-children: 20
X
Xmailbox: bsd:/var/mail/$(user)
X
Xauth-pam-enable: yes
X
END-of-tpop3d/files/tpop3d.conf.default.Dist
echo x - tpop3d/pkg-comment
sed 's/^X//' >tpop3d/pkg-comment << 'END-of-tpop3d/pkg-comment'
XVirtual-domain capable pop3-server supporting MySQL
END-of-tpop3d/pkg-comment
echo x - tpop3d/pkg-descr
sed 's/^X//' >tpop3d/pkg-descr << 'END-of-tpop3d/pkg-descr'
Xtpop3d is yet-another-pop3-server. The intention has been to write a server
Xwhich is fast, extensible, and secure. 
X
Xtpop3d supports traditional (BSD-format) mailspools and Maildir. It also
Xsupports MySQL, perl, and external authentication methods.
X
XWWW: http://www.ex-parrot.com/~chris/tpop3d/
X
X- Chris Elsworth
Xchris@shagged.org
END-of-tpop3d/pkg-descr
echo x - tpop3d/pkg-plist
sed 's/^X//' >tpop3d/pkg-plist << 'END-of-tpop3d/pkg-plist'
Xsbin/tpop3d
Xetc/rc.d/tpop3d.sh.sample
Xetc/tpop3d.conf.default
END-of-tpop3d/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15QCq0-000DAx-00>