Index: head/security/clamav-unofficial-sigs/Makefile =================================================================== --- head/security/clamav-unofficial-sigs/Makefile (revision 375000) +++ head/security/clamav-unofficial-sigs/Makefile (revision 375001) @@ -1,50 +1,50 @@ # Created by: Marko Njezic # $FreeBSD$ PORTNAME= clamav-unofficial-sigs PORTVERSION= 3.7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= SF/unofficial-sigs/ MAINTAINER= sf@maxempire.com COMMENT= Update script for third-party ClamAV databases RUN_DEPENDS= clamscan:${PORTSDIR}/security/clamav \ rsync:${PORTSDIR}/net/rsync \ curl:${PORTSDIR}/ftp/curl \ gpg:${PORTSDIR}/security/gnupg USES= perl5 USE_PERL5= run NO_BUILD= yes SUB_FILES= pkg-message SED_CONF= -e 's|%%CLAM_DBS%%|/var/db/clamav|g' \ -e 's|%%CLAMD_PID%%|/var/run/clamav/clamd.pid|g' \ -e 's|%%CLAMD_SOCKET%%|/var/run/clamav/clamd.sock|g' \ -e 's|%%START_CLAMD%%|${PREFIX}/etc/rc.d/clamav-clamd start|g' \ -e 's|%%WORK_DIR%%|/var/db/clamav-unofficial-sigs|g' OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/clamav-unofficial-sigs.sh @${REINPLACE_CMD} ${SED_CONF} ${WRKSRC}/clamav-unofficial-sigs.conf @${REINPLACE_CMD} ${SED_CONF} ${WRKSRC}/clamd-status.sh do-install: ${INSTALL_SCRIPT} ${WRKSRC}/clamav-unofficial-sigs.sh ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/clamav-unofficial-sigs.8 ${STAGEDIR}${MANPREFIX}/man/man8 ${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs.conf ${STAGEDIR}${PREFIX}/etc/clamav-unofficial-sigs.conf.sample @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG INSTALL LICENSE README ${STAGEDIR}${DOCSDIR}) @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs-cron ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs-logrotate ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/clamd-status.sh ${STAGEDIR}${EXAMPLESDIR} .include Index: head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh =================================================================== --- head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh (revision 375000) +++ head/security/clamav-unofficial-sigs/files/patch-clamav-unofficial-sigs.sh (revision 375001) @@ -1,20 +1,32 @@ --- 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 @@ # # ################################################################################ -default_config="/etc/clamav-unofficial-sigs.conf" +default_config="%%PREFIX%%/etc/clamav-unofficial-sigs.conf" version="v3.7.2 (updated 2013-08-25)" output_ver=" @@ -418,6 +418,8 @@ exit ;; r) no_default_config + pkg_mgr="FreeBSD ports" + pkg_rm="pkg_delete" 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" Index: head/security/clamav-unofficial-sigs/files/pkg-message.in =================================================================== --- head/security/clamav-unofficial-sigs/files/pkg-message.in (revision 375000) +++ head/security/clamav-unofficial-sigs/files/pkg-message.in (revision 375001) @@ -1,11 +1,15 @@ ********************************************************************** 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 To run the script periodically by cron, you also need to add it to your crontab. ********************************************************************** Index: head/security/clamav-unofficial-sigs/pkg-plist =================================================================== --- head/security/clamav-unofficial-sigs/pkg-plist (revision 375000) +++ head/security/clamav-unofficial-sigs/pkg-plist (revision 375001) @@ -1,10 +1,10 @@ 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 %%PORTDOCS%%%%DOCSDIR%%/LICENSE %%PORTDOCS%%%%DOCSDIR%%/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/clamav-unofficial-sigs-cron %%PORTEXAMPLES%%%%EXAMPLESDIR%%/clamav-unofficial-sigs-logrotate %%PORTEXAMPLES%%%%EXAMPLESDIR%%/clamd-status.sh