summaryrefslogtreecommitdiff
path: root/security/amavisd
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-13 01:30:40 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-13 01:30:40 +0000
commitea56fc3fdd045c9365db19fd30d1167c631df346 (patch)
tree49b72a4a4d74d4321d90d60e4ff0e11e7eceb835 /security/amavisd
parentUpdate to 0.8.7. (diff)
add amavisd 20020300
The daemonized version of amavis-perl PR: 37993 Submitted by: Gea-Suan Lin <gslin@infomath.math.nctu.edu.tw>
Notes
Notes: svn path=/head/; revision=58982
Diffstat (limited to 'security/amavisd')
-rw-r--r--security/amavisd/Makefile68
-rw-r--r--security/amavisd/distinfo1
-rw-r--r--security/amavisd/files/amavisd.sh.sample20
-rw-r--r--security/amavisd/pkg-comment1
-rw-r--r--security/amavisd/pkg-descr7
-rw-r--r--security/amavisd/pkg-plist18
6 files changed, 115 insertions, 0 deletions
diff --git a/security/amavisd/Makefile b/security/amavisd/Makefile
new file mode 100644
index 000000000000..a75c29dad45b
--- /dev/null
+++ b/security/amavisd/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: amavisd
+# Date created: 13 May 2002
+# Whom: Gea-Suan Lin (gslin@ccca.nctu.edu.tw)
+#
+# $FreeBSD$
+#
+
+PORTNAME= amavisd
+PORTVERSION= 20020300
+CATEGORIES= security
+MASTER_SITES= http://www.amavis.org/dist/perl/
+DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION}
+
+MAINTAINER= gslin@ccca.nctu.edu.tw
+
+RUN_DEPENDS= ${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \
+ ${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
+ ${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj \
+ ${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \
+ ${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/IO/AtomicFile.pm:${PORTSDIR}/devel/p5-IO-stringy \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/MIME/Body.pm:${PORTSDIR}/mail/p5-MIME-Tools \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools
+
+GNU_CONFIGURE= yes
+
+AMAVISUSER?= root
+
+CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc --with-amavisuser=${AMAVISUSER}
+
+.if defined(WITH_POSTFIX)
+CONFIGURE_ARGS+= --enable-postfix
+RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
+MTA?= postfix
+.elif defined(WITH_POSTFIX_CURRENT)
+CONFIGURE_ARGS+= --enable-postfix
+RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
+MTA?= postfix
+.elif defined(WITH_QMAIL)
+CONFIGURE_ARGS+= --enable-qmail
+RUN_DEPENDS+= ${LOCALBASE}/bin/qmail-smtpd:${PORTSDIR}/mail/qmail
+MTA?= qmail
+.else
+CONFIGURE_ARGS+= --enable-sendmail
+MTA?= sendmail
+.endif
+
+post-patch:
+ @${SED} "s,%%AMAVISUSER%%,${AMAVISUSER}," ${FILESDIR}/amavisd.sh.sample > ${WRKSRC}/amavisd.sh.sample
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.sh.sample ${PREFIX}/etc/rc.d
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in FAQ INSTALL README README.exim README.milter README.postfix README.qmail README.scanners README.sendmail doc/amavis.html doc/amavis.m4 doc/amavis.png doc/amavis.txt
+ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO} "Please read ${DOCSDIR}/README.${MTA}"
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/amavisd/distinfo b/security/amavisd/distinfo
new file mode 100644
index 000000000000..ea9a4eba177d
--- /dev/null
+++ b/security/amavisd/distinfo
@@ -0,0 +1 @@
+MD5 (amavisd-snapshot-20020300.tar.gz) = f8823fa5b3a11e7c7067e65660e274f9
diff --git a/security/amavisd/files/amavisd.sh.sample b/security/amavisd/files/amavisd.sh.sample
new file mode 100644
index 000000000000..b85e66323773
--- /dev/null
+++ b/security/amavisd/files/amavisd.sh.sample
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ [ -x ${PREFIX}/amavisd ] && su - %%AMAVISUSER%% -c ${PREFIX}/amavisd > /dev/null 2>&1 && echo -n ' amavisd'
+ ;;
+stop)
+ echo -n ' amavisd'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/security/amavisd/pkg-comment b/security/amavisd/pkg-comment
new file mode 100644
index 000000000000..c108da2a8bba
--- /dev/null
+++ b/security/amavisd/pkg-comment
@@ -0,0 +1 @@
+The daemonized version of amavis-perl
diff --git a/security/amavisd/pkg-descr b/security/amavisd/pkg-descr
new file mode 100644
index 000000000000..ba7321d976c5
--- /dev/null
+++ b/security/amavisd/pkg-descr
@@ -0,0 +1,7 @@
+amavisd is the daemonized version of amavis-perl
+
+Note that the installation is different than the original package, and the
+integration into your MTA can be different, so please read the README and
+INSTALL files very carefully.
+
+WWW: http://www.amavis.org/
diff --git a/security/amavisd/pkg-plist b/security/amavisd/pkg-plist
new file mode 100644
index 000000000000..74bd09dcb176
--- /dev/null
+++ b/security/amavisd/pkg-plist
@@ -0,0 +1,18 @@
+%%PORTDOCS%%share/doc/amavisd/FAQ
+%%PORTDOCS%%share/doc/amavisd/INSTALL
+%%PORTDOCS%%share/doc/amavisd/README
+%%PORTDOCS%%share/doc/amavisd/README.exim
+%%PORTDOCS%%share/doc/amavisd/README.milter
+%%PORTDOCS%%share/doc/amavisd/README.postfix
+%%PORTDOCS%%share/doc/amavisd/README.qmail
+%%PORTDOCS%%share/doc/amavisd/README.scanners
+%%PORTDOCS%%share/doc/amavisd/README.sendmail
+%%PORTDOCS%%share/doc/amavisd/amavis.html
+%%PORTDOCS%%share/doc/amavisd/amavis.m4
+%%PORTDOCS%%share/doc/amavisd/amavis.png
+%%PORTDOCS%%share/doc/amavisd/amavis.txt
+%%PORTDOCS%%@dirrm share/doc/amavisd
+etc/amavisd.conf
+etc/rc.d/amavisd.sh.sample
+sbin/amavis
+sbin/amavisd