FreeBSD Bugzilla – Attachment 22442 Details for
Bug 38934
New port: amavisd-new (performance enhanced + antispam amavisd)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 10.96 KB, created by
Christopher K Davis
on 2002-06-06 02:50:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Christopher K Davis
Created:
2002-06-06 02:50:01 UTC
Size:
10.96 KB
patch
obsolete
># 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: ># ># amavisd-new ># amavisd-new/Makefile ># amavisd-new/distinfo ># amavisd-new/files ># amavisd-new/files/amavisd-milter.sh ># amavisd-new/files/amavisd.sh ># amavisd-new/pkg-comment ># amavisd-new/pkg-descr ># amavisd-new/pkg-install ># amavisd-new/pkg-plist ># amavisd-new/pkg-plist.milter ># >echo c - amavisd-new >mkdir -p amavisd-new > /dev/null 2>&1 >echo x - amavisd-new/Makefile >sed 's/^X//' >amavisd-new/Makefile << 'END-of-amavisd-new/Makefile' >X# New ports collection makefile for: amavisd-new >X# Date created: 05 Jun 2002 >X# Whom: Christopher K Davis (ckd-freebsd@ckdhr.com) >X# >X# $FreeBSD$ >X# >X# Based on amavisd ports makefile. >X >XPORTNAME= amavisd-new >XPORTVERSION= 20020517 >XCATEGORIES= security >XMASTER_SITES= http://www.ijs.si/software/amavisd/ >XDISTNAME= ${PORTNAME}-${PORTVERSION} >X >XMAINTAINER= ckd-freebsd@ckdhr.com >X >XBUILD_DEPENDS= ${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \ >X ${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \ >X ${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj \ >X ${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \ >X ${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO \ >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}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/IO/AtomicFile.pm:${PORTSDIR}/devel/p5-IO-stringy \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/MIME/Body.pm:${PORTSDIR}/mail/p5-MIME-Tools \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server >X >XRUN_DEPENDS= ${BUILD_DEPENDS} >X >XGNU_CONFIGURE= yes >X >XAMAVISUSER?= vscan >XAMAVISGROUP?= vscan >X >XCONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc --with-amavisuser=${AMAVISUSER}:${AMAVISGROUP} >X >XSTARTSCRIPT= amavisd.sh >X >X.if defined(WITH_POSTFIX) >XCONFIGURE_ARGS+= --enable-postfix >XMTA?= postfix >XRUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix >X.elif defined(WITH_POSTFIX_CURRENT) >XCONFIGURE_ARGS+= --enable-postfix >XMTA?= postfix >XRUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current >X.elif defined(WITH_MILTER) >XCONFIGURE_ARGS+= --enable-milter >XMTA?= milter >XPLIST= ${PKGDIR}/pkg-plist.milter >XSTARTSCRIPT= amavisd-milter.sh >X.else >XCONFIGURE_ARGS+= --enable-sendmail >XMTA?= sendmail >X.endif >X >X.if defined(WITH_SPAMASSASSIN) >XBUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/SpamAssassin.pm:${PORTSDIR}/mail/p5-Mail-SpamAssassin \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/DNS.pm:${PORTSDIR}/net/p5-Net-DNS \ >X ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Razor/Client.pm:${PORTSDIR}/mail/razor-agents >X >Xpre-configure: >X ${CP} ${WRKSRC}/amavis/amavisd.in.all ${WRKSRC}/amavis/amavisd.in >X.endif >X >X# you must define this if you have no scanners (example: to use amavisd-new only as a SpamAssassin/Razor filter) >X.if defined(WITH_ALL_SCANNERS) >XCONFIGURE_ARGS+= --enable-all >X.endif >X >Xpost-patch: >X @${SED} 's,%%AMAVISUSER%%,${AMAVISUSER},g' ${FILESDIR}/${STARTSCRIPT} > ${WRKSRC}/${STARTSCRIPT} >X >Xpre-install: >X @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${AMAVISUSER} ${AMAVISGROUP} >X >Xpost-install: >X ${INSTALL_SCRIPT} ${WRKSRC}/${STARTSCRIPT} ${PREFIX}/etc/rc.d >X.if !defined(NOPORTDOCS) >X @${MKDIR} ${DOCSDIR} >X.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 >X ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} >X.endfor >X @${ECHO} "===============================================================================" >X @${ECHO} "Please read ${DOCSDIR}/README.${MTA}" >X @${ECHO} "===============================================================================" >X.endif >X >X.include <bsd.port.mk> >END-of-amavisd-new/Makefile >echo x - amavisd-new/distinfo >sed 's/^X//' >amavisd-new/distinfo << 'END-of-amavisd-new/distinfo' >XMD5 (amavisd-new-20020517.tar.gz) = b13a90e401884ac125b098d36b8d170a >END-of-amavisd-new/distinfo >echo c - amavisd-new/files >mkdir -p amavisd-new/files > /dev/null 2>&1 >echo x - amavisd-new/files/amavisd-milter.sh >sed 's/^X//' >amavisd-new/files/amavisd-milter.sh << 'END-of-amavisd-new/files/amavisd-milter.sh' >X#!/bin/sh >X >Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >X echo "$0: Cannot determine the PREFIX" >&2 >X exit 1 >Xfi >X >Xcase "$1" in >Xstart) >X ( [ -x ${PREFIX}/sbin/amavisd ] || [ -x ${PREFIX}/sbin/amavis-milter ] ) || exit 1 >X AMAVISD=$(/bin/ps -xU %%AMAVISUSER%% | grep amavisd | awk '{ print $1 }') >X AMAVIS_MILTER=$(/bin/ps -xU %%AMAVISUSER%% | grep amavis-milter | awk '{ print $1 }') >X ( /bin/test "$AMAVISD" || /bin/test "$AMAVIS_MILTER" ) && \ >X su - %%AMAVISUSER%% -c "/bin/kill $AMAVISD $AMAVIS_MILTER" > /dev/null >X rm -rf /var/amavis/amavis*.sock >X su - %%AMAVISUSER%% -c "${PREFIX}/sbin/amavis-milter -D -p /var/amavis/amavis-milter.sock" > /dev/null >X su - %%AMAVISUSER%% -c ${PREFIX}/sbin/amavisd > /dev/null 2>&1 && echo -n ' amavisd-milter' >X ;; >Xstop) >X ( [ -x ${PREFIX}/sbin/amavisd ] || [ -x ${PREFIX}/sbin/amavis-milter ] ) || exit 1 >X AMAVISD=$(/bin/ps -xU %%AMAVISUSER%% | grep amavisd | awk '{ print $1 }') >X AMAVIS_MILTER=$(/bin/ps -xU %%AMAVISUSER%% | grep amavis-milter | awk '{ print $1 }') >X ( /bin/test "$AMAVISD" || /bin/test "$AMAVIS_MILTER" ) && \ >X su - %%AMAVISUSER%% -c "/bin/kill $AMAVISD $AMAVIS_MILTER" > /dev/null && echo -n ' amavisd-milter' >X ;; >X*) >X echo "Usage: `basename $0` {start|stop}" >&2 >X ;; >Xesac >X >Xexit 0 >END-of-amavisd-new/files/amavisd-milter.sh >echo x - amavisd-new/files/amavisd.sh >sed 's/^X//' >amavisd-new/files/amavisd.sh << 'END-of-amavisd-new/files/amavisd.sh' >X#!/bin/sh >X >Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >X echo "$0: Cannot determine the PREFIX" >&2 >X exit 1 >Xfi >X >Xcase "$1" in >Xstart) >X ( [ -x ${PREFIX}/sbin/amavisd ] || [ -x ${PREFIX}/sbin/amavis-milter ] ) || exit 1 >X AMAVISD=$(/bin/ps -xU %%AMAVISUSER%% | grep amavisd | awk '{ print $1 }') >X ( /bin/test "$AMAVISD" ) && \ >X su - %%AMAVISUSER%% -c "/bin/kill $AMAVISD" > /dev/null >X rm -rf /var/amavis/amavis*.sock >X su - %%AMAVISUSER%% -c ${PREFIX}/sbin/amavisd > /dev/null 2>&1 && echo -n ' amavisd' >X ;; >Xstop) >X ( [ -x ${PREFIX}/sbin/amavisd ] || [ -x ${PREFIX}/sbin/amavis-milter ] ) || exit 1 >X AMAVISD=$(/bin/ps -xU %%AMAVISUSER%% | grep amavisd | awk '{ print $1 }') >X ( /bin/test "$AMAVISD") && \ >X su - %%AMAVISUSER%% -c "/bin/kill $AMAVISD" > /dev/null && echo -n ' amavisd' >X ;; >X*) >X echo "Usage: `basename $0` {start|stop}" >&2 >X ;; >Xesac >X >Xexit 0 >END-of-amavisd-new/files/amavisd.sh >echo x - amavisd-new/pkg-comment >sed 's/^X//' >amavisd-new/pkg-comment << 'END-of-amavisd-new/pkg-comment' >XPerformance-enhanced daemonized version of amavis-perl >END-of-amavisd-new/pkg-comment >echo x - amavisd-new/pkg-descr >sed 's/^X//' >amavisd-new/pkg-descr << 'END-of-amavisd-new/pkg-descr' >Xamavisd-new is a performance-enhanced daemonized version of amavis-perl >X >XNote that the installation is different than the original package, and the >Xintegration into your MTA can be different, so please read the README and >XINSTALL files very carefully. >X >Xamavisd-new also supports SpamAssassin integration. >X >XWWW: http://www.ijs.si/software/amavisd/ >END-of-amavisd-new/pkg-descr >echo x - amavisd-new/pkg-install >sed 's/^X//' >amavisd-new/pkg-install << 'END-of-amavisd-new/pkg-install' >X#!/bin/sh >X# >X# $FreeBSD$ >X# >X >XPKG_PREFIX=${PKG_PREFIX:=/usr/local} >XBATCH=${BATCH:=no} >X >XUSER=$1 >XGROUP=$2 >X >Xif /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then >X echo "You already have a group \"${GROUP}\", so I will use it." >Xelse >X if /usr/sbin/pw groupadd ${GROUP} -h - >X then >X echo "Added group \"${GROUP}\"." >X else >X echo "Adding group \"${GROUP}\" failed..." >X echo "Please create it, and try again." >X exit 1 >X fi >Xfi >X >Xif /usr/sbin/pw user show "${USER}" 2>/dev/null; then >X echo "You already have a user \"${USER}\", so I will use it." >Xelse >X if /usr/sbin/pw useradd ${USER} -g ${GROUP} -h - \ >X -d /var/amavis \ >X -s /bin/sh \ >X -c "Scanning Virus Account" >X then >X echo "Added user \"${USER}\"." >X else >X echo "Adding user \"${USER}\" failed..." >X echo "Please create it, and try again." >X exit 1 >X fi >Xfi >END-of-amavisd-new/pkg-install >echo x - amavisd-new/pkg-plist >sed 's/^X//' >amavisd-new/pkg-plist << 'END-of-amavisd-new/pkg-plist' >X%%PORTDOCS%%share/doc/amavisd-new/FAQ >X%%PORTDOCS%%share/doc/amavisd-new/INSTALL >X%%PORTDOCS%%share/doc/amavisd-new/README >X%%PORTDOCS%%share/doc/amavisd-new/README.exim >X%%PORTDOCS%%share/doc/amavisd-new/README.milter >X%%PORTDOCS%%share/doc/amavisd-new/README.postfix >X%%PORTDOCS%%share/doc/amavisd-new/README.qmail >X%%PORTDOCS%%share/doc/amavisd-new/README.scanners >X%%PORTDOCS%%share/doc/amavisd-new/README.sendmail >X%%PORTDOCS%%share/doc/amavisd-new/amavis.html >X%%PORTDOCS%%share/doc/amavisd-new/amavis.m4 >X%%PORTDOCS%%share/doc/amavisd-new/amavis.png >X%%PORTDOCS%%share/doc/amavisd-new/amavis.txt >X%%PORTDOCS%%@dirrm share/doc/amavisd-new >Xetc/amavisd.conf >Xetc/rc.d/amavisd.sh >Xsbin/amavis >Xsbin/amavisd >END-of-amavisd-new/pkg-plist >echo x - amavisd-new/pkg-plist.milter >sed 's/^X//' >amavisd-new/pkg-plist.milter << 'END-of-amavisd-new/pkg-plist.milter' >X%%PORTDOCS%%share/doc/amavisd-new/FAQ >X%%PORTDOCS%%share/doc/amavisd-new/INSTALL >X%%PORTDOCS%%share/doc/amavisd-new/README >X%%PORTDOCS%%share/doc/amavisd-new/README.exim >X%%PORTDOCS%%share/doc/amavisd-new/README.milter >X%%PORTDOCS%%share/doc/amavisd-new/README.postfix >X%%PORTDOCS%%share/doc/amavisd-new/README.qmail >X%%PORTDOCS%%share/doc/amavisd-new/README.scanners >X%%PORTDOCS%%share/doc/amavisd-new/README.sendmail >X%%PORTDOCS%%share/doc/amavisd-new/amavis.html >X%%PORTDOCS%%share/doc/amavisd-new/amavis.m4 >X%%PORTDOCS%%share/doc/amavisd-new/amavis.png >X%%PORTDOCS%%share/doc/amavisd-new/amavis.txt >X%%PORTDOCS%%@dirrm share/doc/amavisd-new >Xetc/amavisd.conf >Xetc/rc.d/amavisd-milter.sh >Xsbin/amavis-milter >Xsbin/amavisd >END-of-amavisd-new/pkg-plist.milter >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38934
: 22442