From 1c3d5ea87c6936962fb1d9a940328ce7a6c55f58 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Thu, 15 Jan 2004 08:44:31 +0000 Subject: Add vodmr 0.13, an ODMR/ATRN server for vpopmail/qmail. PR: 47002 Submitted by: James Raftery --- mail/Makefile | 1 + mail/vodmr/Makefile | 56 ++++++++++++++++++++++++++++++++++++++++ mail/vodmr/distinfo | 1 + mail/vodmr/files/odmrd.sh-sample | 29 +++++++++++++++++++++ mail/vodmr/pkg-descr | 7 +++++ mail/vodmr/pkg-message | 5 ++++ mail/vodmr/pkg-plist | 2 ++ 7 files changed, 101 insertions(+) create mode 100644 mail/vodmr/Makefile create mode 100644 mail/vodmr/distinfo create mode 100644 mail/vodmr/files/odmrd.sh-sample create mode 100644 mail/vodmr/pkg-descr create mode 100644 mail/vodmr/pkg-message create mode 100644 mail/vodmr/pkg-plist (limited to 'mail') diff --git a/mail/Makefile b/mail/Makefile index 60d9984e39f5..37249b1c64bf 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -379,6 +379,7 @@ SUBDIR += vm SUBDIR += vm-pop3d SUBDIR += vmailmgr + SUBDIR += vodmr SUBDIR += vpopmail SUBDIR += vpopmail-stable SUBDIR += vqadmin diff --git a/mail/vodmr/Makefile b/mail/vodmr/Makefile new file mode 100644 index 000000000000..7bf93379e003 --- /dev/null +++ b/mail/vodmr/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: vodmr +# Date created: 12 January 2003. +# Whom: James Raftery +# +# $FreeBSD$ +# +# Use make -DWITHOUT_TCPSERVER ... to install without a dependenacy +# on djb's tcpserver. +# + +PORTNAME= vodmr +PORTVERSION= 0.12 +CATEGORIES= mail perl5 +MASTER_SITES= http://romana.now.ie/software/ \ + http://www.lecter.phlegethon.org/vodmr/ + +MAINTAINER= james@now.ie +COMMENT= An ODMR/ATRN server for vpopmail+qmail + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/CDB_File.pm:${PORTSDIR}/databases/p5-CDB_File \ + ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \ + ${SITE_PERL}/${PERL_ARCH}/vpopmail.pm:${PORTSDIR}/mail/p5-vpopmail \ + ${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \ + ${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC + +.if !defined(WITHOUT_TCPSERVER) +RUN_DEPENDS+= tcpserver:${PORTSDIR}/sysutils/ucspi-tcp +.endif + +NO_BUILD= YES +USE_PERL5_RUN= YES +USE_REINPLACE= YES + +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-extract: + @${SED} -e 's|DOCSDIR|${PREFIX}/share/doc/vodmr|' \ + -e 's|SCRIPT|${PREFIX}/sbin/odmrd|' ${MASTERDIR}/pkg-message \ + > ${WRKDIR}/pkg-message + +do-configure: + ${REINPLACE_CMD} -e 's|^\#!/usr/bin/perl|\#!${PERL}|' ${WRKSRC}/odmrd + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/odmrd ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${FILESDIR}/odmrd.sh-sample ${PREFIX}/etc/rc.d + +.if !defined(NOPORTDOCS) +PORTDOCS= FAQ README INSTALL INTERNALS TODO sample-odmrd.rules + +post-install: + ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + +.include diff --git a/mail/vodmr/distinfo b/mail/vodmr/distinfo new file mode 100644 index 000000000000..ff8efa7bd6d5 --- /dev/null +++ b/mail/vodmr/distinfo @@ -0,0 +1 @@ +MD5 (vodmr-0.12.tar.gz) = 8337fdc480e09034fc0ceb097ce9a08f diff --git a/mail/vodmr/files/odmrd.sh-sample b/mail/vodmr/files/odmrd.sh-sample new file mode 100644 index 000000000000..a595ec9f63be --- /dev/null +++ b/mail/vodmr/files/odmrd.sh-sample @@ -0,0 +1,29 @@ +#!/bin/sh + +USER=vpopmail + +PREFIX=/usr/local + +UID=`id -u $USER` +GID=`id -g $USER` + +if [ -z "$UID" -o -z "$GID" ]; then + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/odmrd -a -z ${PREFIX}/bin/tcpserver ] && \ + ${PREFIX}/bin/tcpserver -HPR -u$UID -g$GID 0 odmr \ + ${PREFIX}/sbin/odmrd > /dev/null && echo -n ' odmrd' + ;; +stop) + ps -auxwww | grep tcpserver | grep odmr | awk '{print $1}' | \ + xargs kill > /dev/null && echo -n ' odmrd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/mail/vodmr/pkg-descr b/mail/vodmr/pkg-descr new file mode 100644 index 000000000000..15bb5c70f2d9 --- /dev/null +++ b/mail/vodmr/pkg-descr @@ -0,0 +1,7 @@ +An RFC2645 On-Demand Mail Relay (ODMR) / Authenticated TURN (ATRN) server +for vpopmail/vchkpw+qmail servers. + +WWW: http://romana.now.ie/#vodmr + +James Raftery. + diff --git a/mail/vodmr/pkg-message b/mail/vodmr/pkg-message new file mode 100644 index 000000000000..4c6057c20768 --- /dev/null +++ b/mail/vodmr/pkg-message @@ -0,0 +1,5 @@ + +o Documentation has been installed in DOCSDIR. + +o Be sure to verify the configuration settings in SCRIPT + before starting the program. diff --git a/mail/vodmr/pkg-plist b/mail/vodmr/pkg-plist new file mode 100644 index 000000000000..a2fb122c6bef --- /dev/null +++ b/mail/vodmr/pkg-plist @@ -0,0 +1,2 @@ +sbin/odmrd +etc/rc.d/odmrd.sh-sample -- cgit v1.2.3