aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2011-09-09 03:32:16 +0800
committercrees <crees@FreeBSD.org>2011-09-09 03:32:16 +0800
commite5d49caa366b06daccc9eda838332dafc98b7b7c (patch)
tree9313bd2f65236f7e0723e275d345442d787e262e /security
parent2b1a0782c0b3e485f97a35e766748722afbaf459 (diff)
downloadfreebsd-ports-gnome-e5d49caa366b06daccc9eda838332dafc98b7b7c.tar.gz
freebsd-ports-gnome-e5d49caa366b06daccc9eda838332dafc98b7b7c.tar.zst
freebsd-ports-gnome-e5d49caa366b06daccc9eda838332dafc98b7b7c.zip
- Add missing dependency
- Chase distfile change - Correct SPF option, add option for DKIM plugin PR: ports/160379 Submitted by: Janky Jay III <ek@purplehat.org> (maintainer)
Diffstat (limited to 'security')
-rw-r--r--security/maia/Makefile59
-rw-r--r--security/maia/distinfo4
-rw-r--r--security/maia/files/.placeholder0
-rw-r--r--security/maia/files/pkg-deinstall.in2
-rw-r--r--security/maia/files/pkg-install.in1
-rw-r--r--security/maia/files/pkg-message.in23
6 files changed, 57 insertions, 32 deletions
diff --git a/security/maia/Makefile b/security/maia/Makefile
index 30ca6bc701ee..152179609846 100644
--- a/security/maia/Makefile
+++ b/security/maia/Makefile
@@ -7,6 +7,7 @@
PORTNAME= maia
DISTVERSION= 1.0.3-${SVNREVISION}
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.purplehat.org/downloads/maia/
@@ -18,6 +19,7 @@ RUN_DEPENDS= p5-Unix-Syslog>=0.94:${PORTSDIR}/sysutils/p5-Unix-Syslog \
p5-Convert-TNEF>=0.08:${PORTSDIR}/converters/p5-Convert-TNEF \
p5-Convert-UUlib>=1.08,1:${PORTSDIR}/converters/p5-Convert-UUlib \
p5-Net-CIDR-Lite>=0.18:${PORTSDIR}/net/p5-Net-CIDR-Lite \
+ p5-forks>=0.34:${PORTSDIR}/devel/p5-forks \
p5-Archive-Zip>=0.10:${PORTSDIR}/archivers/p5-Archive-Zip \
p5-IO-stringy>=1.203:${PORTSDIR}/devel/p5-IO-stringy \
p5-IO-Socket-INET6>=1.27:${PORTSDIR}/net/p5-IO-Socket-INET6 \
@@ -59,7 +61,8 @@ OPTIONS= APACHE "Use Apache web server" off\
CRYPT "Encryption support" off \
IPCOUNTRY "SpamAssassin IP Country plugin" on \
DOMAINKEYS "SpamAssassin DomainKey plugin" on \
- SPFQUERY "SpamAssassin SPF Query plugin" on \
+ SPF "SpamAssassin SPF plugin" on \
+ DKIM "SpamAssassin DKIM plugin" on \
FILE "Use newer file(1) utility from ports" on \
RAR "RAR support with archivers/rar" off \
UNRAR "RAR support with archivers/unrar" on \
@@ -197,10 +200,14 @@ RUN_DEPENDS+= ${SITE_PERL}/IP/Country.pm:${PORTSDIR}/net/p5-IP-Country
RUN_DEPENDS+= ${SITE_PERL}/Mail/DomainKeys.pm:${PORTSDIR}/mail/p5-Mail-DomainKeys
.endif
-.if defined(WITH_SPFQUERY)
+.if defined(WITH_SPF)
RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF
.endif
+.if defined(WITH_DKIM)
+RUN_DEPENDS+= ${SITE_PERL}/Mail/DKIM.pm:${PORTSDIR}/mail/p5-Mail-DKIM
+.endif
+
.if defined(WITH_FILE)
# security fix, file > 4.21 needed
RUN_DEPENDS+= file>=4.21:${PORTSDIR}/sysutils/file
@@ -272,29 +279,41 @@ RUN_DEPENDS+= tnef:${PORTSDIR}/converters/tnef
.endif
post-patch:
-.for f in maiad.conf.dist maiad
- @${REINPLACE_CMD} "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/${f}
+.for m in scripts/configtest.pl scripts/expire-quarantine-cache.pl \
+ scripts/generate-key.pl scripts/load-sa-rules.pl scripts/maiadbtool.pl \
+ scripts/process-quarantine.pl scripts/resend.pl scripts/send-quarantine-digests.pl \
+ scripts/send-quarantine-reminders.pl scripts/stats-snapshot.pl
+ @${REINPLACE_CMD} -e "s|/etc/maia/maia.conf|${PREFIX}/etc/maia.conf|" \
+ ${WRKSRC}/${m}
+
.endfor
-.for i in maiad.conf.dist maiad
- @${REINPLACE_CMD} -e "s|$daemon_user = \'amavis\';|$daemon_user = \'${USERS}\';|" \
- -e "s|$daemon_group = \'amavis\';|$daemon_group = \'${GROUPS}\';|" \
- -e 's|$$log_level = 0;|$$log_level = 1;|' \
- -e 's|/etc/maiad.conf|${PREFIX}/etc/maiad.conf|' \
- -e "s|/var/virusmails|${MAIAQUARANTINE}|" ${WRKSRC}/${i}
+.for a in maiad.conf.dist
+ @${REINPLACE_CMD} -e "s|daemon_user = 'maia'|daemon_user = '${USERS}'|" \
+ -e "s|daemon_group = 'maia'|daemon_group = '${GROUPS}'|" \
+ -e "s|/var/lib/maia|${MAIADIR}|" \
+ -e "s|/var/log/maia|${MAIADIR}|" ${WRKSRC}/${a}
.endfor
-.for f in maiad maiad.conf.dist maia.conf.dist scripts/send-quarantine-digests.pl \
- scripts/process-quarantine.pl scripts/load-sa-rules.pl
- @${REINPLACE_CMD} "s|/var/maiad|${MAIADIR}|" ${WRKSRC}/${f}
+.for i in maia.conf.dist
+ @${REINPLACE_CMD} -e "s|/etc/maia.conf|${PREFIX}/etc/maia.conf|" \
+ -e "s|username = 'maia'|username = '${USERS}'|" \
+ -e "s|/var/lib/maia|${MAIADIR}/maia|" \
+ -e "s|/usr/bin/sa-learn|/usr/local/bin/sa-learn|" \
+ -e "s|local_cf_dir = undef|local_cf_dir = '${PREFIX}/etc/mail/spamassassin'|" \
+ -e "s|system_rules_dir = undef|system_rules_dir = '/var/db/spamassassin'|" \
+ -e "s|user_rules_dir = undef|user_rules_dir = '${MAIADIR}/.spamassassin'|" \
+ -e "s|pid_dir = '/var/run/maia/'|pid_dir = '${MAIADIR}/'|" \
+ -e "s|log_dir = '/var/log/maia'|log_dir = '${MAIADIR}'|" \
+ -e "s|template_dir = '/etc/maia/templates/'|template_dir = '${MAIADIR}/maia/templates/'|" \
+ ${WRKSRC}/${i}
.endfor
-.for i in maia.conf.dist scripts/expire-quarantine-cache.pl scripts/stats-snapshot.pl \
- scripts/maiadbtool.pl scripts/configtest.pl scripts/send-quarantine-reminders.pl \
- scripts/send-quarantine-digests.pl scripts/process-quarantine.pl \
- scripts/load-sa-rules.pl
- @${REINPLACE_CMD} "s|/etc/maia.conf|${PREFIX}/etc/maia.conf|" ${WRKSRC}/${i}
+.for a in maiad
+ @${REINPLACE_CMD} -e "s|/etc/maia/maiad.conf|${PREFIX}/etc/maiad.conf|" \
+ -e "s|/var/lib/maia|${MAIADIR}|" \
+ -e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/${a}
.endfor
+ @${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete
pre-install:
- @${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
do-install:
@@ -330,6 +349,8 @@ post-install:
${CP} -p ${PREFIX}/etc/${maiaconf}.conf.dist \
${PREFIX}/etc/${maiaconf}.conf ; \
fi
+ @${CHOWN} ${USERS}:${GROUPS} ${PREFIX}/etc/${maiaconf}.conf \
+ ${PREFIX}/etc/${maiaconf}.conf.dist
.endfor
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${CHOWN} -R ${USERS}:${GROUPS} ${MAIADIR}/
diff --git a/security/maia/distinfo b/security/maia/distinfo
index a3a08a46dba0..3430b6c6a36a 100644
--- a/security/maia/distinfo
+++ b/security/maia/distinfo
@@ -1,2 +1,2 @@
-SHA256 (maia-1.0.3-r1575.tar.gz) = da82c256752f88f363445a688d8f877f17df1d9395f7f1aeb6db2bb61900dcd9
-SIZE (maia-1.0.3-r1575.tar.gz) = 2273711
+SHA256 (maia-1.0.3-r1575.tar.gz) = 96c910a2e2cdf296dfbf4c8505f36d1f596ac28bbf8e0aad04a0ee43f6342301
+SIZE (maia-1.0.3-r1575.tar.gz) = 2273669
diff --git a/security/maia/files/.placeholder b/security/maia/files/.placeholder
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/security/maia/files/.placeholder
+++ /dev/null
diff --git a/security/maia/files/pkg-deinstall.in b/security/maia/files/pkg-deinstall.in
index 65119912c34d..cc1a3ba12353 100644
--- a/security/maia/files/pkg-deinstall.in
+++ b/security/maia/files/pkg-deinstall.in
@@ -8,11 +8,9 @@ QUARANTINE=%%MAIAQUARANTINE%%
MAIAWEB=%%PREFIX%%/www/maia
if [ "$2" = "POST-DEINSTALL" ]; then
-
if [ -e ${DIR} ]; then
echo "You should manually remove the \"${DIR}\" directory."
fi
-
if [ -e ${QUARANTINE} ]; then
echo "You should manually remove the \"${QUARANTINE}\" directory."
fi
diff --git a/security/maia/files/pkg-install.in b/security/maia/files/pkg-install.in
index 5665c1bd540f..91d6d3fc25d5 100644
--- a/security/maia/files/pkg-install.in
+++ b/security/maia/files/pkg-install.in
@@ -9,7 +9,6 @@ DIR=%%MAIADIR%%
QUARANTINE=%%MAIAQUARANTINE%%
if [ "$2" = "PRE-INSTALL" ]; then
-
/usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${DIR}
echo "Created \"${DIR}\" directory."
/usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${DIR}/db
diff --git a/security/maia/files/pkg-message.in b/security/maia/files/pkg-message.in
index 3410c05144a9..e9593cba4cd9 100644
--- a/security/maia/files/pkg-message.in
+++ b/security/maia/files/pkg-message.in
@@ -1,11 +1,18 @@
-To use Maia-Mailguard, you need to install at least one virus scanner.
-The following virus scanners are available in the FreeBSD ports
-collection:
- security/clamav Clam Antivirus
- security/f-prot F-Prot Antivirus
- security/drweb DrWeb antivirus suite
+*******************************************************************
+ To use Maia-Mailguard, you need to install at least one virus scanner.
+ The following virus scanners are available in the FreeBSD ports
+ collection:
+
+ security/clamav Clam Antivirus
+ security/f-prot F-Prot Antivirus
+ security/drweb DrWeb antivirus suite
-Enable Maia-Mailguard in /etc/rc.conf with the following line:
+ Enable Maia-Mailguard in /etc/rc.conf with the following line:
+
+ maiad_enable="YES"
+
+ Configuration templates are available in %%PREFIX%%/etc
+ as maia.conf.dist and maiad.conf.dist.
+*******************************************************************
- maiad_enable="YES"