Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2003 20:25:01 GMT
From:      James Raftery <james@now.ie>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47002: New port: vodmr - ODMR/ATRN server for vpopmail/qmail
Message-ID:  <200301122025.h0CKP1X0017928@fridge.botanic.ave>

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

>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 <james@now.ie>
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 <bsd.port.mk>
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<james@now.ie>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301122025.h0CKP1X0017928>