From owner-freebsd-ports Fri Jul 27 12: 0:20 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 62D6A37B403 for ; Fri, 27 Jul 2001 12:00:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6RJ06B03724; Fri, 27 Jul 2001 12:00:06 -0700 (PDT) (envelope-from gnats) Received: from mail.shagged.org (rtfm.shagged.org [195.11.8.226]) by hub.freebsd.org (Postfix) with ESMTP id 0265B37B403 for ; Fri, 27 Jul 2001 11:59:53 -0700 (PDT) (envelope-from chris@shagged.org) Received: from chris by mail.shagged.org with local (Exim 3.31 #1) id 15QCq0-000DAx-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 27 Jul 2001 19:59:52 +0100 Message-Id: Date: Fri, 27 Jul 2001 19:59:52 +0100 From: Chris Elsworth Reply-To: Chris Elsworth To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/29265: New port: tpop3d, MySQL capable pop3 daemon Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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