aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2018-03-30 11:08:35 +0000
committerKurt Jaeger <pi@FreeBSD.org>2018-03-30 11:08:35 +0000
commitb18b537831cc3944a4dfaa412555d71e86e87d09 (patch)
tree7366f509916a6c1e96bcacbf8ce87978c58837cf /security
parentad9dd8f2f2706b7a3840330f9e6b195a849b8b96 (diff)
downloadports-b18b537831cc3944a4dfaa412555d71e86e87d09.tar.gz
ports-b18b537831cc3944a4dfaa412555d71e86e87d09.zip
security/clamav-unofficial-sigs: update 5.3.2 -> 5.6.2
PR: 227057, 222032 Submitted by: Max Kostikov <max@kostikov.co>, Marko Njezic <sf@maxempire.com> (maintainer) Relnotes: https://github.com/extremeshok/clamav-unofficial-sigs
Notes
Notes: svn path=/head/; revision=465959
Diffstat (limited to 'security')
-rw-r--r--security/clamav-unofficial-sigs/Makefile6
-rw-r--r--security/clamav-unofficial-sigs/distinfo6
-rw-r--r--security/clamav-unofficial-sigs/files/manpage.conf5
-rw-r--r--security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh50
-rw-r--r--security/clamav-unofficial-sigs/files/patch-config_master.conf6
-rw-r--r--security/clamav-unofficial-sigs/files/patch-config_os.freebsd.conf4
6 files changed, 39 insertions, 38 deletions
diff --git a/security/clamav-unofficial-sigs/Makefile b/security/clamav-unofficial-sigs/Makefile
index 38f823ab00a3..e8f2b0d47fea 100644
--- a/security/clamav-unofficial-sigs/Makefile
+++ b/security/clamav-unofficial-sigs/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= clamav-unofficial-sigs
-PORTVERSION= 5.3.2
-PORTREVISION= 1
+PORTVERSION= 5.6.2
CATEGORIES= security
MAINTAINER= sf@maxempire.com
@@ -20,10 +19,9 @@ COMMON_DEPENDS= clamscan:security/clamav \
BUILD_DEPENDS= ${COMMON_DEPENDS}
RUN_DEPENDS= ${COMMON_DEPENDS}
+USES= perl5 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= extremeshok
-
-USES= perl5 shebangfix
SHEBANG_FILES= clamav-unofficial-sigs.sh
USE_PERL5= run
diff --git a/security/clamav-unofficial-sigs/distinfo b/security/clamav-unofficial-sigs/distinfo
index 933e55adbace..ae4f0d303ae7 100644
--- a/security/clamav-unofficial-sigs/distinfo
+++ b/security/clamav-unofficial-sigs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1464946787
-SHA256 (extremeshok-clamav-unofficial-sigs-5.3.2_GH0.tar.gz) = 3abe1c22133d879318cebc18d3224a820ea1747524425d4a2efd337749596589
-SIZE (extremeshok-clamav-unofficial-sigs-5.3.2_GH0.tar.gz) = 113714
+TIMESTAMP = 1522164679
+SHA256 (extremeshok-clamav-unofficial-sigs-5.6.2_GH0.tar.gz) = 233404d767fcb7d2b82defef831d584cbbcc7105f6bbc586d69a0a960bc0d4df
+SIZE (extremeshok-clamav-unofficial-sigs-5.6.2_GH0.tar.gz) = 50931
diff --git a/security/clamav-unofficial-sigs/files/manpage.conf b/security/clamav-unofficial-sigs/files/manpage.conf
index 34c3a051c981..5d244b87e416 100644
--- a/security/clamav-unofficial-sigs/files/manpage.conf
+++ b/security/clamav-unofficial-sigs/files/manpage.conf
@@ -2,9 +2,12 @@
logging_enabled="no"
config_version="999"
user_configuration_complete="yes"
-work_dir="/var/db/clamav-unofficial-sigs"
+work_dir="%%WRKSRC%%"
man_dir="%%WRKSRC%%"
enable_locking="no"
setmode="no"
clam_user="nobody"
clam_group="nobody"
+clam_dbs="%%WRKSRC%%"
+pkg_mgr=""
+pkg_rm=""
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 abe3f400fe43..a646c8623439 100644
--- a/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh
+++ b/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh
@@ -1,43 +1,43 @@
---- clamav-unofficial-sigs.sh.orig 2016-11-18 10:05:40 UTC
+--- clamav-unofficial-sigs.sh.orig 2018-03-27 15:43:43 UTC
+++ clamav-unofficial-sigs.sh
-@@ -753,6 +753,8 @@ function make_signature_database_from_as
- #Remove the clamav-unofficial-sigs script
- function remove_script () {
- echo ""
-+ pkg_mgr="FreeBSD ports"
-+ pkg_rm="pkg delete"
- if [ -n "$pkg_mgr" ] && [ -n "$pkg_rm" ] ; then
- echo "This script (clamav-unofficial-sigs) was installed on the system via '$pkg_mgr'"
- echo "use '$pkg_rm' to remove the script and all of its associated files and databases from the system."
-@@ -1151,7 +1153,7 @@ minimum_required_config_version="65"
+@@ -1290,7 +1290,7 @@ minimum_required_config_version="72"
minimum_yara_clamav_version="0.99"
- #default config files
+ # Default config files
-config_dir="/etc/clamav-unofficial-sigs"
+config_dir="%%PREFIX%%/etc/clamav-unofficial-sigs"
- config_files=("$config_dir/master.conf" "$config_dir/os.conf" "$config_dir/user.conf")
+ config_files=( "$config_dir/master.conf" "$config_dir/os.conf" "$config_dir/user.conf" )
- #Initialise
-@@ -1879,20 +1881,11 @@ if [ "$sanesecurity_enabled" == "yes" ]
+ # Initialise
+@@ -1302,6 +1302,8 @@ force_updates="no"
+ enable_log="no"
+ custom_config="no"
+ we_have_a_config="0"
++pkg_mgr="FreeBSD ports"
++pkg_rm="pkg delete"
+
+ # Solaris which function returns garbage when the program is not found
+ # only define the new which function if running under Solaris
+@@ -2131,20 +2133,11 @@ if [ "$sanesecurity_enabled" == "yes" ]
xshok_pretty_echo_and_log "Sanesecurity Database & GPG Signature File Updates" "="
xshok_pretty_echo_and_log "Checking for Sanesecurity updates..."
-- sanesecurity_mirror_ips=$(dig +ignore +short "$sanesecurity_url")
-- #add fallback to host if dig returns no records
-- if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -lt 1 ] ; then
-- sanesecurity_mirror_ips=$(host -t A "$sanesecurity_url" | sed -n '/has address/{s/.*address \([^ ]*\).*/\1/;p;}')
+- sanesecurity_mirror_ips="$(dig +ignore +short "$sanesecurity_url")"
+- # Add fallback to host if dig returns no records
+- if [ ${#sanesecurity_mirror_ips} -lt 1 ] ; then
+- sanesecurity_mirror_ips="$(host -t A "$sanesecurity_url" | sed -n '/has address/{s/.*address \([^ ]*\).*/\1/;p;}')"
- fi
+ sanesecurity_mirror_ips=$(host "$sanesecurity_url" | sed 's/.*[[:space:]]//')
- if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -ge "1" ] ; then
+ if [ ${#sanesecurity_mirror_ips} -ge 1 ] ; then
for sanesecurity_mirror_ip in $sanesecurity_mirror_ips ; do
- sanesecurity_mirror_name=""
-- sanesecurity_mirror_name=$(dig +short -x "$sanesecurity_mirror_ip" | command sed 's/\.$//')
-- #add fallback to host if dig returns no records
-- if [ "$sanesecurity_mirror_name" == "" ] ; then
-- sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed -n '/name pointer/{s/.*pointer \([^ ]*\).*\.$/\1/;p;}')
+- sanesecurity_mirror_name="$(dig +short -x "$sanesecurity_mirror_ip" | command sed 's/\.$//')"
+- # Add fallback to host if dig returns no records
+- if [ -z "$sanesecurity_mirror_name" ] ; then
+- sanesecurity_mirror_name="$(host "$sanesecurity_mirror_ip" | sed -n '/name pointer/{s/.*pointer \([^ ]*\).*\.$/\1/;p;}')"
- fi
+ sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed 's/.*[[:space:]]//' | sed 's/\.$//')
sanesecurity_mirror_site_info="$sanesecurity_mirror_name $sanesecurity_mirror_ip"
xshok_pretty_echo_and_log "Sanesecurity mirror site used: $sanesecurity_mirror_site_info"
- $rsync_bin $rsync_output_level $no_motd --files-from="$sanesecurity_include_dbs" -ctuz $connect_timeout --timeout="$rsync_max_time" "rsync://$sanesecurity_mirror_ip/sanesecurity" "$work_dir_sanesecurity" 2>/dev/null
+ # shellcheck disable=SC2086
diff --git a/security/clamav-unofficial-sigs/files/patch-config_master.conf b/security/clamav-unofficial-sigs/files/patch-config_master.conf
index 72e426c35194..a4cc571eed81 100644
--- a/security/clamav-unofficial-sigs/files/patch-config_master.conf
+++ b/security/clamav-unofficial-sigs/files/patch-config_master.conf
@@ -1,6 +1,6 @@
---- config/master.conf.orig 2016-05-23 23:38:56 UTC
+--- config/master.conf.orig 2017-03-18 11:57:29 UTC
+++ config/master.conf
-@@ -58,8 +58,8 @@ reload_dbs="yes"
+@@ -63,8 +63,8 @@ clamd_reload_opt="clamdscan --reload"
work_dir="/var/lib/clamav-unofficial-sigs" #Top level working directory
# Log update information to '$log_file_path/$log_file_name'.
@@ -11,7 +11,7 @@
log_file_name="clamav-unofficial-sigs.log"
-@@ -120,7 +120,7 @@ yararulesproject_enabled="yes" # Yara-
+@@ -125,7 +125,7 @@ yararulesproject_enabled="yes" # Yara-
additional_enabled="yes" # Additional Databases
## Disabling this will also cause the yararulesproject to be disabled.
diff --git a/security/clamav-unofficial-sigs/files/patch-config_os.freebsd.conf b/security/clamav-unofficial-sigs/files/patch-config_os.freebsd.conf
index 13f475082974..e2f6d5b49a04 100644
--- a/security/clamav-unofficial-sigs/files/patch-config_os.freebsd.conf
+++ b/security/clamav-unofficial-sigs/files/patch-config_os.freebsd.conf
@@ -1,6 +1,6 @@
---- config/os.freebsd.conf.orig 2016-05-23 23:38:56 UTC
+--- config/os.freebsd.conf.orig 2017-03-18 11:57:29 UTC
+++ config/os.freebsd.conf
-@@ -33,8 +33,6 @@ clamd_pid="/var/run/clamav/clamd.pid"
+@@ -29,8 +29,6 @@ clamd_pid="/var/run/clamav/clamd.pid"
work_dir="/var/db/clamav-unofficial-sigs"