Update to version 11
Give Seamus Venasse maintainership PR: 31095 Submitted by: new maintainer
This commit is contained in:
parent
9b39f177c5
commit
4688c2ff1e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49033
@ -6,17 +6,16 @@
|
||||
#
|
||||
|
||||
PORTNAME= amavis-perl
|
||||
PORTVERSION= 10
|
||||
PORTVERSION= 11
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.amavis.org/dist/perl/
|
||||
|
||||
MAINTAINER= roman@xpert.com
|
||||
MAINTAINER= svenasse@polaris.ca
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/uvscan:${PORTSDIR}/security/vscan \
|
||||
${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
|
||||
${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj \
|
||||
${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \
|
||||
${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip \
|
||||
${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo \
|
||||
${LOCALBASE}/bin/arc:${PORTSDIR}/archivers/arc \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/IO/AtomicFile.pm:${PORTSDIR}/devel/p5-IO-stringy \
|
||||
@ -27,26 +26,54 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/uvscan:${PORTSDIR}/security/vscan \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Convert/UUlib.pm:${PORTSDIR}/converters/p5-Convert-UUlib \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog
|
||||
${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/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip
|
||||
.if !exists(/usr/bin/bzip2)
|
||||
BUILD_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
|
||||
.endif
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --disable-qmail --disable-postfix --disable-exim --with-virusdir=/var/spool/quarantine --enable-relay
|
||||
CONFIGURE_ARGS+= --with-virusdir=/var/spool/quarantine --with-runtime-dir=/var/log/amavis \
|
||||
--with-logdir=/var/log/amavis
|
||||
|
||||
.if defined(WITH_QMAIL)
|
||||
MTA?= qmail
|
||||
DIROWNER?= qmailq:qmail
|
||||
CONFIGURE_ARGS+= --enable-qmail
|
||||
.if exists(${LOCALBASE}/qmail/bin/qmail-send)
|
||||
QMAIL_DIR?= ${LOCALBASE}/qmail
|
||||
.else
|
||||
QMAIL_DIR?= /var/qmail
|
||||
.endif
|
||||
BUILD_DEPENDS+= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
.endif
|
||||
|
||||
.if !defined(MTA)
|
||||
MTA?= sendmail
|
||||
DIROWNER?= root:daemon
|
||||
CONFIGURE_ARGS+= --enable-relay
|
||||
.endif
|
||||
|
||||
PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.${MTA}
|
||||
PKGINSTALL= ${PKGDIR}/pkg-install.${MTA}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} /var/log/amavis
|
||||
@${MKDIR} /var/spool/quarantine
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/amavis/amavis ${PREFIX}/sbin
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/doc/amavis
|
||||
.for i in README README.exim README.postfix README.sendmail README.scanners doc/amavis.txt
|
||||
@${MKDIR} ${PREFIX}/share/doc/amavis
|
||||
.for i in README README.exim README.qmail README.milter README.postfix README.sendmail README.scanners doc/amavis.txt
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/amavis
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${CHOWN} ${DIROWNER} /var/log/amavis /var/spool/quarantine
|
||||
@${CHMOD} 0755 /var/log/amavis /var/spool/quarantine
|
||||
@PKG_PREFIX=${PREFIX} ${PERL5} ${PKGINSTALL} _ POST-INSTALL
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}.${MTA}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (amavis-perl-10.tar.gz) = 48acf27fa6d418863b4094dac8bdafe8
|
||||
MD5 (amavis-perl-11.tar.gz) = e19bfabb2da4aeccc8227766995442d5
|
||||
|
@ -1,11 +1,11 @@
|
||||
--- configure.orig Thu Dec 7 19:04:06 2000
|
||||
+++ configure Sun Dec 31 15:22:09 2000
|
||||
@@ -1109,16 +1109,16 @@
|
||||
--- configure.orig Tue Sep 25 19:59:02 2001
|
||||
+++ configure Sat Oct 6 15:42:18 2001
|
||||
@@ -1477,16 +1477,16 @@
|
||||
{ echo "configure: error: Sorry, you need the "file" command" 1>&2; exit 1; }
|
||||
fi
|
||||
|
||||
-echo $ac_n "checking if file can be brief""... $ac_c" 1>&6
|
||||
-echo "configure:1114: checking if file can be brief" >&5
|
||||
-echo "configure:1482: checking if file can be brief" >&5
|
||||
-$file -b /bin/sh > /dev/null 2>&1
|
||||
-if test $? -ne 0 ; then
|
||||
- { echo "configure: error:
|
||||
@ -15,7 +15,7 @@
|
||||
- echo "$ac_t""yes" 1>&6
|
||||
-fi
|
||||
+#echo $ac_n "checking if file can be brief""... $ac_c" 1>&6
|
||||
+#echo "configure:1114: checking if file can be brief" >&5
|
||||
+#echo "configure:1482: checking if file can be brief" >&5
|
||||
+#$file -b /bin/sh > /dev/null 2>&1
|
||||
+#if test $? -ne 0 ; then
|
||||
+# { echo "configure: error:
|
||||
@ -25,9 +25,9 @@
|
||||
+# echo "$ac_t""yes" 1>&6
|
||||
+#fi
|
||||
|
||||
for ac_prog in grep
|
||||
for ac_prog in id
|
||||
do
|
||||
@@ -1775,7 +1775,7 @@
|
||||
@@ -2875,7 +2875,7 @@
|
||||
if test ! -f "$sendmail_cf_orig" ; then
|
||||
if test -f /etc/sendmail.cf ; then
|
||||
sendmail_cf_orig=/etc/sendmail.orig.cf
|
||||
|
@ -1,15 +1,15 @@
|
||||
--- amavis/amavis.in.orig Sun Dec 31 15:16:34 2000
|
||||
+++ amavis/amavis.in Sun Dec 31 15:24:31 2000
|
||||
@@ -414,7 +414,7 @@
|
||||
--- amavis/amavis.in.orig Sat Oct 6 15:44:32 2001
|
||||
+++ amavis/amavis.in Sat Oct 6 15:46:24 2001
|
||||
@@ -469,7 +469,7 @@
|
||||
do_exit($REGERR, __LINE__);
|
||||
}
|
||||
|
||||
- my $filetype = `$file -b $TEMPDIR/parts/$part`;
|
||||
+ my $filetype = `$file $TEMPDIR/parts/$part`;
|
||||
chop $filetype;
|
||||
do_debug("File-type of $part: $filetype\n");
|
||||
do_log(4,"File-type of $part: $filetype");
|
||||
|
||||
@@ -609,7 +609,7 @@
|
||||
@@ -663,7 +663,7 @@
|
||||
}
|
||||
|
||||
# older versions of file report tnef files as data
|
||||
|
25
security/amavis-perl/pkg-deinstall.qmail
Normal file
25
security/amavis-perl/pkg-deinstall.qmail
Normal file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
|
||||
my $qmailDir;
|
||||
|
||||
# ensure we are running only as post installation
|
||||
exit 0 if $ARGV[ 1 ] ne "POST-DEINSTALL";
|
||||
|
||||
# find location of qmail
|
||||
if ( -f "/var/qmail/bin/qmail-send" ) {
|
||||
$qmailDir = "/var/qmail";
|
||||
} else {
|
||||
$qmailDir = "/usr/local/qmail";
|
||||
}
|
||||
|
||||
print "==> Removing virusalert user\n";
|
||||
unlink "${qmailDir}/alias/.qmail-virusalert";
|
||||
|
||||
print "==> Removing amavis from qmail\n";
|
||||
unlink "${qmailDir}/bin/qmail-queue";
|
||||
system( "mv ${qmailDir}/bin/qmail-queue-real ${qmailDir}/bin/qmail-queue" );
|
||||
|
||||
print "==> Removing mode from suidperl\n";
|
||||
chmod 0511, "/usr/bin/suidperl";
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/amavis-perl/Attic/pkg-deinstall.sendmail,v 1.1 2001-10-21 18:47:20 dwcjr Exp $
|
||||
|
||||
prefix=/usr/local
|
||||
PATH="/bin:/usr/bin"
|
39
security/amavis-perl/pkg-install.qmail
Normal file
39
security/amavis-perl/pkg-install.qmail
Normal file
@ -0,0 +1,39 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
|
||||
my $qmailDir;
|
||||
my ( $uid, $gid );
|
||||
local *F;
|
||||
|
||||
# ensure we are running only as post installation
|
||||
exit 0 if $ARGV[ 1 ] ne "POST-INSTALL";
|
||||
|
||||
# find location of qmail
|
||||
if ( -f "/var/qmail/bin/qmail-send" ) {
|
||||
$qmailDir = "/var/qmail";
|
||||
} else {
|
||||
$qmailDir = "/usr/local/qmail";
|
||||
}
|
||||
|
||||
# create virusalert use as root
|
||||
print "==> Creating virusalert user as root\n";
|
||||
open( F, ">${qmailDir}/alias/.qmail-virusalert" );
|
||||
print F "root\n";
|
||||
close( F );
|
||||
|
||||
# move qmail-queue to qmail-queue-real
|
||||
print "==> Moving qmail-queue\n";
|
||||
if ( ! -f "${qmailDir}/bin/qmail-queue-real" ) {
|
||||
system( "mv ${qmailDir}/bin/qmail-queue ${qmailDir}/bin/qmail-queue-real" );
|
||||
system( "cp /usr/local/sbin/amavis ${qmailDir}/bin/qmail-queue" );
|
||||
( undef, undef, $uid, $gid ) = getpwnam( "qmailq" );
|
||||
chown $uid, $gid, "${qmailDir}/bin/qmail-queue";
|
||||
chmod 04711, "${qmailDir}/bin/qmail-queue";
|
||||
} else {
|
||||
print "FAILURE: ${qmailDir}/bin/qmail-queue-real already exists!!\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
print "==> Changing permissions on suidperl\n";
|
||||
chmod 04755, "/usr/bin/suidperl";
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
# Roman Shterenzon <roman@xpert.com> 27/12/2000
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/amavis-perl/Attic/pkg-install.sendmail,v 1.1 2001-10-21 18:47:20 dwcjr Exp $
|
||||
|
||||
use strict;
|
||||
|
||||
@ -84,12 +84,6 @@ if ( ! -d "/var/spool/mqamavis" ) {
|
||||
my $gid=getgrnam('daemon');
|
||||
chown 0, $gid, "/var/spool/mqamavis";
|
||||
|
||||
print "===> Creating /var/spool/quarantine directory\n";
|
||||
if ( ! -d "/var/spool/quarantine" ) {
|
||||
mkdir "/var/spool/quarantine",0755 || die "Can't create /var/spool/quarantine\n";
|
||||
}
|
||||
chown 0, $gid, "/var/spool/quarantine";
|
||||
|
||||
die "There's already a $cf.pre-amavis, is amavis already installed?\n"
|
||||
if -f "$cf.pre-amavis";
|
||||
$result=system("cp $cf $cf.pre-amavis");
|
20
security/amavis-perl/pkg-message.qmail
Normal file
20
security/amavis-perl/pkg-message.qmail
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Please read documentation on http://www.amavis.org/ before you start using it.
|
||||
|
||||
SECURITY NOTES:
|
||||
|
||||
The qmail installation already has bin/qmail-queue as suid qmailq. This port
|
||||
copies bin/qmail-queue to bin/qmail-queue-real and installs itself as
|
||||
bin/qmail-queue with suid qmailq.
|
||||
|
||||
Additionally, for this port to properly work with qmail, it requires that
|
||||
/usr/bin/suidperl be suid root. The following changes were made:
|
||||
|
||||
-rwsr-xr-x 3 root wheel 50760 xxx xx xx:xx /usr/bin/suidperl
|
||||
|
||||
ADDITIONAL NOTES:
|
||||
|
||||
An alias for ~alias/.qmail-virusalert to root was created. Modify this file
|
||||
to meet your requirements.
|
||||
|
||||
|
@ -2,7 +2,9 @@ sbin/amavis
|
||||
%%PORTDOCS%%share/doc/amavis/amavis.txt
|
||||
%%PORTDOCS%%share/doc/amavis/README
|
||||
%%PORTDOCS%%share/doc/amavis/README.exim
|
||||
%%PORTDOCS%%share/doc/amavis/README.qmail
|
||||
%%PORTDOCS%%share/doc/amavis/README.postfix
|
||||
%%PORTDOCS%%share/doc/amavis/README.sendmail
|
||||
%%PORTDOCS%%share/doc/amavis/README.scanners
|
||||
%%PORTDOCS%%share/doc/amavis/README.milter
|
||||
%%PORTDOCS%%@dirrm share/doc/amavis
|
||||
|
Loading…
Reference in New Issue
Block a user