diff options
author | gabor <gabor@FreeBSD.org> | 2009-12-22 06:44:13 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2009-12-22 06:44:13 +0800 |
commit | 8c64dc7165781745ad923548c22306a88e3a4e70 (patch) | |
tree | de2dd85e900d185326ca39ad06e94780fe4751cd /security | |
parent | b0c32270eeb4c947b47996e7cd22f235b04db490 (diff) | |
download | freebsd-ports-gnome-8c64dc7165781745ad923548c22306a88e3a4e70.tar.gz freebsd-ports-gnome-8c64dc7165781745ad923548c22306a88e3a4e70.tar.zst freebsd-ports-gnome-8c64dc7165781745ad923548c22306a88e3a4e70.zip |
- Match default Clamav socket to the Clamav port's default [1]
- Change $localhost_name to real hostname instead of 'localhost' [2]
- Bump PORTREVISION
PR: ports/141206 [1]
Submitted by: Petr Rehor <prehor@gmail.com> [1]
Requested by: delphij [2]
Diffstat (limited to 'security')
-rw-r--r-- | security/amavisd-new/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile index a80d73241f35..662389c68418 100644 --- a/security/amavisd-new/Makefile +++ b/security/amavisd-new/Makefile @@ -8,7 +8,7 @@ PORTNAME= amavisd-new PORTVERSION= 2.6.4 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ \ @@ -46,6 +46,7 @@ AMAVISGROUP?= vscan AMAVISDIR?= /var/amavis AMAVISQUARANTINE?= /var/virusmails DAEMON?= /usr/sbin/daemon -p +HOSTNAME!= /bin/hostname OPTIONS= BDB "Use BerkeleyDB for nanny/cache/snmp" on \ SNMP "Install amavisd snmp subagent" off \ @@ -244,6 +245,8 @@ post-patch: -e "s|/var/lib/amavis|${AMAVISDIR}|" \ -e 's|$$log_level = 2;|$$log_level = 0;|' \ -e "s|/var/virusmails|${AMAVISQUARANTINE}|" \ + -e "s|\$localhost_name = \'localhost\';|\$localhost_name = \'${HOSTNAME}\';|g" \ + -e 's|/var/run/clamav/clamd|/var/run/clamav/clamd.sock|g' \ ${WRKSRC}/${i} .endfor @${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|" ${WRKSRC}/amavisd-agent @@ -257,6 +260,7 @@ post-patch: @${REINPLACE_CMD} -e "s|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|" \ -e "s|/usr/bin/perl|${PERL}|" \ -e "s|/var/amavis|${AMAVISDIR}|g" \ + -e "s|\$localhost_name = \'localhost\';|\$localhost_name = \'${HOSTNAME}\';|g" \ ${WRKSRC}/amavisd .if defined(AMAVIS_NOAMAVIS) |