mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
- Delete expired security/amavisd port: depends on misc/compat3x, which has
security problems; old version
This commit is contained in:
parent
bc887a60e2
commit
ee5c0a974d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215177
1
MOVED
1
MOVED
@ -3505,3 +3505,4 @@ net/xarchie|||2008-06-18|Has expired: No servers active anymore
|
||||
net/p5-Net-Z3950|||2008-06-18|Has expired: does not compile with yaz 3.x, deprecated in favor of ZOOM-Perl (net/p5-Net-Z3950-ZOOM)
|
||||
net/vls|||2008-06-18|Has expired: Does not build with current libdvbpsi. Development has been moved to multimedia/vlc
|
||||
net-mgmt/nsc|||2008-06-18|Has expired: Project abandoned
|
||||
security/amavisd|||2008-06-18|Has expired: depends on misc/compat3x, which has security problems; old version
|
||||
|
@ -15,7 +15,6 @@
|
||||
SUBDIR += altivore
|
||||
SUBDIR += amap
|
||||
SUBDIR += amavis-stats
|
||||
SUBDIR += amavisd
|
||||
SUBDIR += amavisd-milter
|
||||
SUBDIR += amavisd-new
|
||||
SUBDIR += aolserver-nsencrypt
|
||||
|
@ -1,135 +0,0 @@
|
||||
# New ports collection makefile for: amavisd
|
||||
# Date created: 13 May 2002
|
||||
# Whom: Gea-Suan Lin (gslin@ccca.nctu.edu.tw)
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= amavisd
|
||||
PORTVERSION= 0.1
|
||||
PORTREVISION= 4
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= amavis
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= The daemonized version of amavis-perl
|
||||
|
||||
DEPRECATED= depends on misc/compat3x, which has security problems; old version
|
||||
EXPIRATION_DATE= 2007-09-21
|
||||
|
||||
BUILD_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 \
|
||||
${SITE_PERL}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
|
||||
${SITE_PERL}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \
|
||||
${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
|
||||
${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
|
||||
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
|
||||
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
|
||||
${SITE_PERL}/IO/AtomicFile.pm:${PORTSDIR}/devel/p5-IO-stringy \
|
||||
${SITE_PERL}/MIME/Body.pm:${PORTSDIR}/mail/p5-MIME-Tools \
|
||||
${SITE_PERL}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PERL5= yes
|
||||
USE_RC_SUBR= yes
|
||||
|
||||
AMAVISGROUP?= vscan
|
||||
AMAVISUSER?= vscan
|
||||
MILTER_SCRIPT=
|
||||
MILTER= "@comment -- no milter script --"
|
||||
SBIN_AMAVIS= amavis
|
||||
SMTPPORT?= 10025
|
||||
STARTSCRIPT= amavisd.sh
|
||||
WARNADMIN?= yes
|
||||
WARNRECIP?= no
|
||||
WARNSENDER?= no
|
||||
|
||||
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc \
|
||||
--with-amavisuser=${AMAVISUSER}:${AMAVISGROUP} \
|
||||
--with-smtp-port=${SMTPPORT} \
|
||||
--with-warnsender=${WARNSENDER} \
|
||||
--with-warnrecip=${WARNRECIP} \
|
||||
--with-warnadmin=${WARNADMIN}
|
||||
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
|
||||
PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS}
|
||||
|
||||
RC_SCRIPTS_SUB= AMAVISUSER=${AMAVISUSER} \
|
||||
PREFIX=${PREFIX} \
|
||||
PERL=${PERL} \
|
||||
RC_SUBR=${RC_SUBR}
|
||||
PLIST_SUB= SBIN_AMAVIS=${SBIN_AMAVIS} \
|
||||
MILTER=${MILTER}
|
||||
|
||||
.if !defined(WITHOUT_UVSCAN)
|
||||
BUILD_DEPENDS+= uvscan:${PORTSDIR}/security/vscan
|
||||
.endif
|
||||
|
||||
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
||||
CONFIGURE_ARGS+= --enable-all
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTFIX)
|
||||
CONFIGURE_ARGS+= --enable-postfix
|
||||
MTA?= postfix
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
|
||||
.elif defined(WITH_POSTFIX_CURRENT)
|
||||
CONFIGURE_ARGS+= --enable-postfix
|
||||
MTA?= postfix
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
|
||||
.elif defined(WITH_MILTER)
|
||||
CONFIGURE_ARGS+= --enable-milter
|
||||
MTA?= milter
|
||||
MILTER_SCRIPT= amavisd-milter
|
||||
MILTER=
|
||||
SBIN_AMAVIS= amavis-milter
|
||||
.else
|
||||
CONFIGURE_ARGS+= --enable-sendmail
|
||||
MTA?= sendmail
|
||||
.endif
|
||||
|
||||
pre-fetch:
|
||||
.if !defined(WITHOUT_UVSCAN)
|
||||
@${ECHO}
|
||||
@${ECHO} "Type \"make WITHOUT_UVSCAN=yes\" if you DONT use UVSCAN."
|
||||
@${ECHO}
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.for script in amavisd ${MILTER_SCRIPT}
|
||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${FILESDIR}/${script}.sh > ${WRKSRC}/${script}.sh
|
||||
.endfor
|
||||
@${PERL} -pi.orig -e 's|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|g' ${WRKSRC}/configure ${WRKSRC}/amavis/amavisd.in ${WRKSRC}/amavis/Makefile.in
|
||||
|
||||
pre-install:
|
||||
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${AMAVISUSER} ${AMAVISGROUP}
|
||||
|
||||
post-install:
|
||||
.for script in amavisd ${MILTER_SCRIPT}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${script}.sh ${PREFIX}/etc/rc.d/${script}.sh
|
||||
.endfor
|
||||
.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_MSG} "==============================================================================="
|
||||
@${ECHO_MSG} "Please read ${DOCSDIR}/README.${MTA}"
|
||||
@${ECHO_MSG} "==============================================================================="
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500800
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
|
||||
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,3 +0,0 @@
|
||||
MD5 (amavisd-0.1.tar.gz) = 432a32bfc6d473564f49028b540f53ad
|
||||
SHA256 (amavisd-0.1.tar.gz) = e34e54c25bda34f4f3d1355423e8555f62b9ee3f67387fd392f98b2059963e63
|
||||
SIZE (amavisd-0.1.tar.gz) = 329501
|
@ -1,57 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: amavisd-milter
|
||||
# BEFORE: amavisd mail
|
||||
# KEYWORD: shutdown
|
||||
|
||||
prefix=%%PREFIX%%
|
||||
|
||||
# Define these amavisd_milter_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
amavisd_milter_enable="${amavisd_milter_enable-NO}"
|
||||
amavisd_milter_flags="-D"
|
||||
amavisd_milter_user=%%AMAVISUSER%%
|
||||
#amavisd_milter_socket="inet:9999@127.0.0.1"
|
||||
amavisd_milter_socket="local:/var/amavis/amavis-milter.sock"
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="amavisd_milter"
|
||||
rcvar=`set_rcvar`
|
||||
start_precmd="amavisd_precmd"
|
||||
stop_postcmd="remove_socket"
|
||||
command=${prefix}/sbin/amavis-milter
|
||||
|
||||
# Remove the AMaViSd Milter Socket
|
||||
remove_socket()
|
||||
{
|
||||
case ${amavisd_milter_socket} in
|
||||
unix:*|local:*)
|
||||
socket=`echo ${amavisd_milter_socket} | /usr/bin/cut -d: -f2`
|
||||
if [ -S ${socket} ]; then
|
||||
rm -f ${socket}
|
||||
fi
|
||||
;;
|
||||
/*)
|
||||
if [ -S ${amavisd_milter_socket} ]; then
|
||||
rm -f ${amavisd_milter_socket}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
amavisd_precmd()
|
||||
{
|
||||
rc_flags="${rc_flags} -p ${amavisd_milter_socket}"
|
||||
|
||||
remove_socket
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: amavisd
|
||||
# BEFORE: mail
|
||||
# KEYWORD: shutdown
|
||||
|
||||
prefix=%%PREFIX%%
|
||||
|
||||
# Define these amavisd_* variables in one of these files:
|
||||
# /etc/rc.conf
|
||||
# /etc/rc.conf.local
|
||||
#
|
||||
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
||||
amavisd_enable="${amavisd_enable-NO}"
|
||||
amavisd_flags=""
|
||||
amavisd_user=%%AMAVISUSER%%
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name="amavisd"
|
||||
rcvar=`set_rcvar`
|
||||
start_precmd="remove_socket"
|
||||
stop_postcmd="remove_socket"
|
||||
command=${prefix}/sbin/amavisd
|
||||
command_arg="> /dev/null 2>&1"
|
||||
command_interpreter="%%PERL%%"
|
||||
pidfile="/var/amavis/amavisd.pid"
|
||||
|
||||
# Remove the AMaViSd Socket
|
||||
remove_socket()
|
||||
{
|
||||
if [ -S /var/amavis/amavisd.sock ]; then
|
||||
rm -f /var/amavis/amavisd.sock
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
@ -1,26 +0,0 @@
|
||||
--- README.sendmail.orig Sun Aug 4 18:38:01 2002
|
||||
+++ README.sendmail Sun Aug 4 18:39:50 2002
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
Mlocal, P=/usr/sbin/amavis, F=lsDFMAw5:/|@qrn9, S=10/30, R=20/40,
|
||||
T=DNS/RFC822/X-Unix,
|
||||
- A=amavis $f $u -- /bin/mail.local -d $u
|
||||
+ A=amavis $f $u -- /usr/libexec/mail.local -d $u
|
||||
|
||||
Note that m (delivery to multiple recipients) has been removed from the
|
||||
F equate! Amavis receives sender ($f) and recipient ($u) from the command
|
||||
@@ -33,11 +33,9 @@
|
||||
you should add the following just before the MAILER definitions:
|
||||
|
||||
dnl
|
||||
-dnl Change Mlocal to use AMaViS-Perl
|
||||
-define(`LOCAL_MAILER_PATH', `/usr/sbin/amavis')dnl
|
||||
-define(`LOCAL_MAILER_ARGS', CONCAT(`amavis $f $u -- ',
|
||||
-define(`LOCAL_MAILER_ARGS', CONCAT(`amavis $f $u -- /usr/bin/',
|
||||
-LOCAL_MAILER_ARGS))dnl
|
||||
+dnl Change Mlocal to use AMaViS
|
||||
+define(`LOCAL_MAILER_PATH', `/usr/local/sbin/amavis')dnl
|
||||
+define(`LOCAL_MAILER_ARGS', CONCAT(`amavis $f $u -- /usr/libexec/', LOCAL_MAILER_ARGS, ` -d $u'))dnl
|
||||
dnl please set the path to your procmail accordingly!
|
||||
dnl the following works only with sendmail 8.10.x or above
|
||||
MODIFY_MAILER_FLAGS(`LOCAL', -m')dnl
|
@ -1,20 +0,0 @@
|
||||
--- amavis/av/clamavd.orig Tue Feb 25 11:42:54 2003
|
||||
+++ amavis/av/clamavd Mon Jun 7 01:16:46 2004
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
if ($clamd) {
|
||||
do_log(2,"Using clamd");
|
||||
- my $sock = IO::Socket::INET->new('127.0.0.1:3310');
|
||||
+ my $sock = IO::Socket::UNIX->new(Peer => '/var/run/clamav/clamd');
|
||||
if (defined $sock) {
|
||||
$sock->print("SCAN $TEMPDIR/parts\n");
|
||||
$sock->flush;
|
||||
@@ -15,7 +15,7 @@
|
||||
if ($output =~ /FOUND$/) { # no errors, a virus was found
|
||||
$scanner_errors = 0;
|
||||
@virusname = ($output =~ /: (.+) FOUND/g);
|
||||
- return 1; # 'true' indicates virus found and stops further checking
|
||||
+ do_virus($output);
|
||||
} elsif ($output =~ /OK$/) { # no errors, no viruses
|
||||
$scanner_errors = 0;
|
||||
} elsif ($output =~ /ERROR$/) {
|
@ -1,15 +0,0 @@
|
||||
--- configure-orig Wed Feb 19 08:22:25 2003
|
||||
+++ configure Wed Sep 10 19:34:30 2003
|
||||
@@ -3083,11 +3083,11 @@
|
||||
#define HAVE_SM_SM_STRLCPY 1
|
||||
EOF
|
||||
|
||||
+ LIBS="-lsm $LIBS"
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
||||
- LIBS="-lsm $LIBS"
|
||||
fi
|
||||
|
||||
|
@ -1,7 +0,0 @@
|
||||
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/
|
@ -1,40 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
|
||||
BATCH=${BATCH:=no}
|
||||
|
||||
USER=$1
|
||||
GROUP=$2
|
||||
|
||||
if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then
|
||||
echo "You already have a group \"${GROUP}\", so I will use it."
|
||||
else
|
||||
if /usr/sbin/pw groupadd ${GROUP} -h -g 110 -
|
||||
then
|
||||
echo "Added group \"${GROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${GROUP}\" failed..."
|
||||
echo "Please create it, and try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if /usr/sbin/pw user show "${USER}" 2>/dev/null; then
|
||||
echo "You already have a user \"${USER}\", so I will use it."
|
||||
else
|
||||
if /usr/sbin/pw useradd ${USER} -g ${GROUP} -h - \
|
||||
-d /var/amavis \
|
||||
-s /bin/sh \
|
||||
-c "Scanning Virus Account" \
|
||||
-u 110
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
echo "Please create it, and try again."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
@ -1,19 +0,0 @@
|
||||
%%PORTDOCS%%%%DOCSDIR%%/FAQ
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.exim
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.milter
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.postfix
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.qmail
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.scanners
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.sendmail
|
||||
%%PORTDOCS%%%%DOCSDIR%%/amavis.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/amavis.m4
|
||||
%%PORTDOCS%%%%DOCSDIR%%/amavis.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/amavis.txt
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
etc/amavisd.conf
|
||||
sbin/%%SBIN_AMAVIS%%
|
||||
sbin/amavisd
|
||||
%%MILTER%%etc/rc.d/amavisd-milter.sh
|
||||
etc/rc.d/amavisd.sh
|
Loading…
Reference in New Issue
Block a user