From owner-freebsd-ports Sun Jan 12 12:40:13 2003 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C41837B405 for ; Sun, 12 Jan 2003 12:40:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BCCA43ED8 for ; Sun, 12 Jan 2003 12:40:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0CKe2NS026041 for ; Sun, 12 Jan 2003 12:40:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0CKe24m026040; Sun, 12 Jan 2003 12:40:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1081C37B401 for ; Sun, 12 Jan 2003 12:33:29 -0800 (PST) Received: from mail.indigo.ie (p131-207.as1.whi.dublin.eircom.net [159.134.131.207]) by mx1.FreeBSD.org (Postfix) with SMTP id A274843ED8 for ; Sun, 12 Jan 2003 12:33:26 -0800 (PST) (envelope-from james@now.ie) Received: from fridge.botanic.ave (localhost.botanic.ave [127.0.0.1]) by fridge.botanic.ave (8.12.6/8.12.6) with ESMTP id h0CKP32w017929 for ; Sun, 12 Jan 2003 20:25:03 GMT (envelope-from james@fridge.botanic.ave) Received: (from james@localhost) by fridge.botanic.ave (8.12.6/8.12.6/Submit) id h0CKP1X0017928; Sun, 12 Jan 2003 20:25:01 GMT Message-Id: <200301122025.h0CKP1X0017928@fridge.botanic.ave> Date: Sun, 12 Jan 2003 20:25:01 GMT From: James Raftery Reply-To: James Raftery To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47002: New port: vodmr - ODMR/ATRN server for vpopmail/qmail 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: 47002 >Category: ports >Synopsis: New port: vodmr - ODMR/ATRN server for vpopmail/qmail >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: Sun Jan 12 12:40:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: James Raftery >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD fridge.botanic.ave 4.7-RELEASE FreeBSD 4.7-RELEASE #3: Sun Oct 20 00:24:02 IST 2002 root@fridge.botanic.ave:/usr/local/obj/usr/src/sys/FRIDGE i386 >Description: New port skeleton for vodmr, an ODMR/ATRN server for vpopmail/qmail servers. It's written by me. I'm happy to be its maintainer. shar below. Thanks, james. >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: # # mail/vodmr # mail/vodmr/Makefile # mail/vodmr/files # mail/vodmr/files/odmrd.sh-sample # mail/vodmr/pkg-comment # mail/vodmr/pkg-plist # mail/vodmr/pkg-descr # mail/vodmr/distinfo # mail/vodmr/pkg-message # echo c - mail/vodmr mkdir -p mail/vodmr > /dev/null 2>&1 echo x - mail/vodmr/Makefile sed 's/^X//' >mail/vodmr/Makefile << 'END-of-mail/vodmr/Makefile' X# New ports collection makefile for: vodmr X# Date created: 12 January 2003. X# Whom: James Raftery X# X# $FreeBSD$ X# X# Use make -DWITHOUT_TCPSERVER ... to install without a dependenacy X# on djb's tcpserver. X# X XPORTNAME= vodmr XPORTVERSION= 0.10 XCATEGORIES= mail perl5 XMASTER_SITES= http://romana.now.ie/software/ \ X http://www.lecter.phlegethon.org/vodmr/ X XMAINTAINER= james@now.ie X XRUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/CDB_File.pm:${PORTSDIR}/databases/p5-CDB_File \ X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \ X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC \ X ${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail-stable X X.if !defined(WITHOUT_TCPSERVER) XRUN_DEPENDS+= tcpserver:${PORTSDIR}/sysutils/ucspi-tcp X.endif X XNO_BUILD= YES XUSE_PERL5_RUN= YES XUSE_REINPLACE= YES X Xdo-configure: X ${REINPLACE_CMD} -e 's|^\#!/usr/bin/perl|\#!${PERL}|' ${WRKSRC}/odmrd X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/odmrd ${PREFIX}/sbin X ${INSTALL_SCRIPT} ${FILESDIR}/odmrd.sh-sample ${PREFIX}/etc/rc.d X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/vodmr X ${INSTALL_MAN} ${WRKSRC}/FAQ ${PREFIX}/share/doc/vodmr X ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/vodmr X ${INSTALL_MAN} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/vodmr X ${INSTALL_MAN} ${WRKSRC}/INTERNALS ${PREFIX}/share/doc/vodmr X ${INSTALL_MAN} ${WRKSRC}/TODO ${PREFIX}/share/doc/vodmr X ${INSTALL_MAN} ${WRKSRC}/sample-odmrd.rules ${PREFIX}/share/doc/vodmr X.endif X @${REINPLACE_CMD} -e 's|DOCSDIR|${PREFIX}/share/doc/vodmr|' \ X -e 's|SCRIPT|${PREFIX}/sbin/odmrd|' ${PKGMESSAGE} X X.include END-of-mail/vodmr/Makefile echo c - mail/vodmr/files mkdir -p mail/vodmr/files > /dev/null 2>&1 echo x - mail/vodmr/files/odmrd.sh-sample sed 's/^X//' >mail/vodmr/files/odmrd.sh-sample << 'END-of-mail/vodmr/files/odmrd.sh-sample' X#!/bin/sh X XUSER=vpopmail X XPREFIX=/usr/local X XUID=`id -u $USER` XGID=`id -g $USER` X Xif [ -z "$UID" -o -z "$GID" ]; then X exit 1 Xfi X Xcase "$1" in Xstart) X [ -x ${PREFIX}/sbin/odmrd -a -z ${PREFIX}/bin/tcpserver ] && \ X ${PREFIX}/bin/tcpserver -HPR -u$UID -g$GID 0 odmr \ X ${PREFIX}/sbin/odmrd > /dev/null && echo -n ' odmrd' X ;; Xstop) X ps -auxwww | grep tcpserver | grep odmr | awk '{print $1}' | \ X xargs kill > /dev/null && echo -n ' odmrd' X ;; X*) X echo "Usage: `basename $0` {start|stop}" >&2 X ;; Xesac X Xexit 0 END-of-mail/vodmr/files/odmrd.sh-sample echo x - mail/vodmr/pkg-comment sed 's/^X//' >mail/vodmr/pkg-comment << 'END-of-mail/vodmr/pkg-comment' XODMR/ATRN server for vpopmail+qmail END-of-mail/vodmr/pkg-comment echo x - mail/vodmr/pkg-plist sed 's/^X//' >mail/vodmr/pkg-plist << 'END-of-mail/vodmr/pkg-plist' Xsbin/odmrd Xetc/rc.d/odmrd.sh-sample X%%PORTDOCS%%share/doc/vodmr/FAQ X%%PORTDOCS%%share/doc/vodmr/README X%%PORTDOCS%%share/doc/vodmr/INSTALL X%%PORTDOCS%%share/doc/vodmr/INTERNALS X%%PORTDOCS%%share/doc/vodmr/TODO X%%PORTDOCS%%share/doc/vodmr/sample-odmrd.rules X%%PORTDOCS%%@dirrm share/doc/vodmr END-of-mail/vodmr/pkg-plist echo x - mail/vodmr/pkg-descr sed 's/^X//' >mail/vodmr/pkg-descr << 'END-of-mail/vodmr/pkg-descr' XAn RFC2645 On-Demand Mail Relay (ODMR) / Authenticated TURN (ATRN) server Xfor vpopmail/vchkpw+qmail servers. X XWWW: http://romana.now.ie/#vodmr X XJames Raftery. X END-of-mail/vodmr/pkg-descr echo x - mail/vodmr/distinfo sed 's/^X//' >mail/vodmr/distinfo << 'END-of-mail/vodmr/distinfo' XMD5 (vodmr-0.10.tar.gz) = cfc3dfabd43687bd9c1d9a4de094f5ad END-of-mail/vodmr/distinfo echo x - mail/vodmr/pkg-message sed 's/^X//' >mail/vodmr/pkg-message << 'END-of-mail/vodmr/pkg-message' X Xo Documentation has been installed in DOCSDIR. X Xo Be sure to verify the configuration settings in SCRIPT X before starting the program. END-of-mail/vodmr/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message