diff options
author | riggs <riggs@FreeBSD.org> | 2014-12-20 21:00:59 +0800 |
---|---|---|
committer | riggs <riggs@FreeBSD.org> | 2014-12-20 21:00:59 +0800 |
commit | 980b2cfbf5e63526b015892b64d066b7d8eea931 (patch) | |
tree | 1a70f7a8eb0258b8c7e203c648b412ab418ffcfa | |
parent | 8a4ff631d352de2ffe5d32c15e1e7b49d1d75dbd (diff) | |
download | freebsd-ports-graphics-980b2cfbf5e63526b015892b64d066b7d8eea931.tar.gz freebsd-ports-graphics-980b2cfbf5e63526b015892b64d066b7d8eea931.tar.zst freebsd-ports-graphics-980b2cfbf5e63526b015892b64d066b7d8eea931.zip |
- Make port work on recent 10.x (does no longer assume BIND is present)
- Revert previous change that installs a default configuration file.
Maintainer explains the rationale behind this:
"Users must configure it themselves so that they are aware of what
additional databases are being downloaded and only way to make sure that
they read everything is to force them to manually copy the sample
configuration file."
PR: 195764
Submitted by: sf@maxempire.com (maintainer)
4 files changed, 20 insertions, 4 deletions
diff --git a/security/clamav-unofficial-sigs/Makefile b/security/clamav-unofficial-sigs/Makefile index a0145af20ee..6e3d5ef4ee5 100644 --- a/security/clamav-unofficial-sigs/Makefile +++ b/security/clamav-unofficial-sigs/Makefile @@ -3,7 +3,7 @@ PORTNAME= clamav-unofficial-sigs PORTVERSION= 3.7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF/unofficial-sigs/ diff --git a/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh b/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh index dd6e7b82b54..d3cb6f4659b 100644 --- a/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh +++ b/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh @@ -1,5 +1,5 @@ --- clamav-unofficial-sigs.sh 2013-08-27 18:08:25.000000000 +0200 -+++ clamav-unofficial-sigs.sh.patched 2013-09-04 16:10:35.000000000 +0200 ++++ clamav-unofficial-sigs.sh.patched 2014-12-06 23:55:50.000000000 +0100 @@ -16,7 +16,7 @@ # # ################################################################################ @@ -18,3 +18,15 @@ if [ -n "$pkg_mgr" -a -n "$pkg_rm" ] then echo " This script (clamav-unofficial-sigs) was installed on the system" +@@ -1016,9 +1018,9 @@ + comment "======================================================================" + comment "Sanesecurity Database & GPG Signature File Updates" + comment "======================================================================" +- ss_mirror_ips=`dig +ignore +short $ss_url` ++ ss_mirror_ips=`host $ss_url | sed 's/.*\s//'` + for ss_mirror_ip in $ss_mirror_ips ; do +- ss_mirror_name=`dig +short -x $ss_mirror_ip | sed 's/\.$//'` ++ ss_mirror_name=`host $ss_mirror_ip | sed 's/.*\s//' | sed 's/\.$//'` + ss_mirror_site_info="$ss_mirror_name $ss_mirror_ip" + comment "" + comment "Sanesecurity mirror site used: $ss_mirror_site_info" diff --git a/security/clamav-unofficial-sigs/files/pkg-message.in b/security/clamav-unofficial-sigs/files/pkg-message.in index e5d108c8202..4fbaa34a954 100644 --- a/security/clamav-unofficial-sigs/files/pkg-message.in +++ b/security/clamav-unofficial-sigs/files/pkg-message.in @@ -1,7 +1,11 @@ ********************************************************************** In order to start using clamav-unofficial-sigs, you need to configure -modify the configuration file according to your needs: +it first. A sample configuration file has been installed to: + +%%PREFIX%%/etc/clamav-unofficial-sigs.conf.sample + +Modify it according to your needs and copy to: %%PREFIX%%/etc/clamav-unofficial-sigs.conf diff --git a/security/clamav-unofficial-sigs/pkg-plist b/security/clamav-unofficial-sigs/pkg-plist index f2b408f171e..d3c7a767de8 100644 --- a/security/clamav-unofficial-sigs/pkg-plist +++ b/security/clamav-unofficial-sigs/pkg-plist @@ -1,5 +1,5 @@ bin/clamav-unofficial-sigs.sh -@sample etc/clamav-unofficial-sigs.conf.sample +etc/clamav-unofficial-sigs.conf.sample man/man8/clamav-unofficial-sigs.8.gz %%PORTDOCS%%%%DOCSDIR%%/CHANGELOG %%PORTDOCS%%%%DOCSDIR%%/INSTALL |