aboutsummaryrefslogtreecommitdiff
path: root/mail/vodmr
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2004-01-15 08:44:31 +0000
committerPeter Pentchev <roam@FreeBSD.org>2004-01-15 08:44:31 +0000
commit1c3d5ea87c6936962fb1d9a940328ce7a6c55f58 (patch)
tree87ba2ebacab722307fce39dd0a80431ca6486c76 /mail/vodmr
parent23578a1604a79de62fb44f5133d5a95eaf03825d (diff)
downloadports-1c3d5ea87c6936962fb1d9a940328ce7a6c55f58.tar.gz
ports-1c3d5ea87c6936962fb1d9a940328ce7a6c55f58.zip
Notes
Diffstat (limited to 'mail/vodmr')
-rw-r--r--mail/vodmr/Makefile56
-rw-r--r--mail/vodmr/distinfo1
-rw-r--r--mail/vodmr/files/odmrd.sh-sample29
-rw-r--r--mail/vodmr/pkg-descr7
-rw-r--r--mail/vodmr/pkg-message5
-rw-r--r--mail/vodmr/pkg-plist2
6 files changed, 100 insertions, 0 deletions
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 <james@now.ie>
+#
+# $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 <bsd.port.mk>
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.
+<james@now.ie>
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