import ports/security/clamav-unofficial-sigs, ok/feedback ajacoutot@
The clamav-unofficial-sigs script provides a simple way to download, test, and update third-party signature databases for ClamAV provided by Sanesecurity, SecuriteInfo, INetMsg, OITC, MalwarePatrol, and ScamNailer.
This commit is contained in:
parent
ef738c2300
commit
5eea190681
41
security/clamav-unofficial-sigs/Makefile
Normal file
41
security/clamav-unofficial-sigs/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/26 12:26:44 sthen Exp $
|
||||
|
||||
COMMENT = fetch and update unofficial signatures for ClamAV
|
||||
|
||||
DISTNAME = clamav-unofficial-sigs-3.7.1
|
||||
|
||||
CATEGORIES = security mail
|
||||
|
||||
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://www.inetmsg.com/pub/ \
|
||||
http://www.inetmsg.com/pub/archive/
|
||||
|
||||
RUN_DEPENDS = net/curl net/rsync security/gnupg
|
||||
|
||||
NO_BUILD = Yes
|
||||
NO_REGRESS = Yes
|
||||
|
||||
PKG_ARCH = *
|
||||
|
||||
do-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/clamav-unofficial-sigs.conf
|
||||
perl -pi -e 's,/etc,${SYSCONFDIR},' ${WRKSRC}/clamav-unofficial-sigs.sh
|
||||
# simple perl re replace; if we used SUBST_CMD for this one we'd need to
|
||||
# patch a line next to a version number which makes updating a pain
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/clamav-unofficial-sigs
|
||||
cd ${WRKSRC}; \
|
||||
${INSTALL_SCRIPT} clamav-unofficial-sigs.sh ${PREFIX}/bin; \
|
||||
${INSTALL_DATA} clamav-unofficial-sigs.conf \
|
||||
${PREFIX}/share/examples/clamav-unofficial-sigs; \
|
||||
${INSTALL_MAN} clamav-unofficial-sigs.8 ${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/clamav-unofficial-sigs/distinfo
Normal file
5
security/clamav-unofficial-sigs/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (clamav-unofficial-sigs-3.7.1.tar.gz) = wA84zQ/1FnLjy7Y4rsjRJA==
|
||||
RMD160 (clamav-unofficial-sigs-3.7.1.tar.gz) = nf+d3vPS0ADFV5t6rco2nE2aKc0=
|
||||
SHA1 (clamav-unofficial-sigs-3.7.1.tar.gz) = pNWJE1kp4XH5J7D3zfKY6nHH+co=
|
||||
SHA256 (clamav-unofficial-sigs-3.7.1.tar.gz) = f43kbaQ9jt0G7h3NG8RWPmGyPJu9NozPAmVXbkb02Qw=
|
||||
SIZE (clamav-unofficial-sigs-3.7.1.tar.gz) = 36594
|
@ -0,0 +1,35 @@
|
||||
$OpenBSD: patch-clamav-unofficial-sigs_conf,v 1.1.1.1 2011/03/26 12:26:44 sthen Exp $
|
||||
--- clamav-unofficial-sigs.conf.orig Sun Mar 20 22:43:40 2011
|
||||
+++ clamav-unofficial-sigs.conf Sun Mar 20 22:48:26 2011
|
||||
@@ -31,18 +31,18 @@
|
||||
# and optionally socat. It's been reported that on Sun systems, the GNU utilities
|
||||
# should be used rather than the default Sun OS versions of these utilities.
|
||||
|
||||
-PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
||||
+PATH="/bin:/sbin:/usr/bin:/usr/sbin:${LOCALBASE}/bin:${LOCALBASE}/sbin"
|
||||
export PATH
|
||||
|
||||
# Set the appropriate ClamD user and group accounts for your system.
|
||||
# If you do not want the script to set user and group permissions on
|
||||
# files and directories, comment the next two variables.
|
||||
-clam_user="clamav"
|
||||
-clam_group="clamav"
|
||||
+clam_user="_clamav"
|
||||
+clam_group="_clamav"
|
||||
|
||||
# Set path to ClamAV database files location. If unsure, check
|
||||
# your clamd.conf file for the "DatabaseDirectory" path setting.
|
||||
-clam_dbs="/var/lib/clamav"
|
||||
+clam_dbs="/var/db/clamav"
|
||||
|
||||
# Set path to clamd.pid file (see clamd.conf for path location).
|
||||
clamd_pid="/var/run/clamd.pid"
|
||||
@@ -219,7 +219,7 @@ mbl_update_hours="6" # Default is 6 hours (4 downloa
|
||||
# Set working directory paths (edit to meet your own needs). If these
|
||||
# directories do not exist, the script will attempt to create them.
|
||||
# Top level working directory path:
|
||||
-work_dir="/usr/unofficial-dbs" #Top level working directory
|
||||
+work_dir="/var/db/clamav-unofficial-sigs" #Top level working directory
|
||||
# Sub-directory names:
|
||||
ss_dir="$work_dir/ss-dbs" # Sanesecurity sub-directory
|
||||
si_dir="$work_dir/si-dbs" # SecuriteInfo sub-directory
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-clamav-unofficial-sigs_sh,v 1.1.1.1 2011/03/26 12:26:44 sthen Exp $
|
||||
--- clamav-unofficial-sigs.sh.orig Sun Mar 20 22:39:06 2011
|
||||
+++ clamav-unofficial-sigs.sh Sun Mar 20 22:41:12 2011
|
||||
@@ -26,6 +26,8 @@ output_ver="
|
||||
`basename $0` $version
|
||||
"
|
||||
|
||||
+pkg_mgr="pkg_add"
|
||||
+pkg_rm="pkg_delete"
|
||||
usage="
|
||||
ClamAV Unofficial Signature Databases Update Script - $version
|
||||
|
4
security/clamav-unofficial-sigs/pkg/DESCR
Normal file
4
security/clamav-unofficial-sigs/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
The clamav-unofficial-sigs script provides a simple way to
|
||||
download, test, and update third-party signature databases
|
||||
for ClamAV provided by Sanesecurity, SecuriteInfo, INetMsg,
|
||||
OITC, MalwarePatrol, and ScamNailer.
|
4
security/clamav-unofficial-sigs/pkg/MESSAGE
Normal file
4
security/clamav-unofficial-sigs/pkg/MESSAGE
Normal file
@ -0,0 +1,4 @@
|
||||
After configuring ${SYSCONFDIR}/clamav-unofficial-sigs.conf you can add the following
|
||||
to root's crontab to update the signatures regularly:
|
||||
|
||||
35 * * * * /usr/local/bin/clamav-unofficial-sigs.sh 2>&1 > /dev/null
|
7
security/clamav-unofficial-sigs/pkg/PLIST
Normal file
7
security/clamav-unofficial-sigs/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/26 12:26:44 sthen Exp $
|
||||
bin/clamav-unofficial-sigs.sh
|
||||
@man man/man8/clamav-unofficial-sigs.8
|
||||
share/examples/clamav-unofficial-sigs/
|
||||
share/examples/clamav-unofficial-sigs/clamav-unofficial-sigs.conf
|
||||
@sample ${SYSCONFDIR}/clamav-unofficial-sigs.conf
|
||||
@extraunexec rm -rf /var/db/clamav-unofficial-sigs
|
2
security/clamav-unofficial-sigs/pkg/UNMESSAGE
Normal file
2
security/clamav-unofficial-sigs/pkg/UNMESSAGE
Normal file
@ -0,0 +1,2 @@
|
||||
You may also want to remove downloaded signature files from /var/db/clamav
|
||||
and remove the cron(8) job.
|
Loading…
Reference in New Issue
Block a user