From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 24 12:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CB0EA1AEB for ; Sun, 24 Mar 2013 12:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B1371888 for ; Sun, 24 Mar 2013 12:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2OCA0PZ031190 for ; Sun, 24 Mar 2013 12:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2OCA0sl031176; Sun, 24 Mar 2013 12:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 24 Mar 2013 12:10:00 GMT Resent-Message-Id: <201303241210.r2OCA0sl031176@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Gary J. Hayers" Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B4F241998 for ; Sun, 24 Mar 2013 12:06:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A4EFD84B for ; Sun, 24 Mar 2013 12:06:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2OC600T058026 for ; Sun, 24 Mar 2013 12:06:00 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2OC605h058025; Sun, 24 Mar 2013 12:06:00 GMT (envelope-from nobody) Message-Id: <201303241206.r2OC605h058025@red.freebsd.org> Date: Sun, 24 Mar 2013 12:06:00 GMT From: "Gary J. Hayers" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/177336: New port: security/sav X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Mar 2013 12:10:00 -0000 >Number: 177336 >Category: ports >Synopsis: New port: security/sav >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Mar 24 12:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gary J. Hayers >Release: FreeBSD 9.1-STABLE >Organization: Hayers.org >Environment: FreeBSD ares.hayers.org 9.1-STABLE FreeBSD 9.1-STABLE #13 r248267: Thu Mar 14 22:22:31 GMT 2013 root@ares.hayers.org:/usr/obj/usr/src/sys/Ares i386 >Description: Addition of security/sav Sophos Anti Virus System Many thanks to Jason Helfman for his help. Also needs sweep user and group added to UIDs and GIDs --- UIDs-orig 2013-03-24 12:00:36.000000000 +0000 +++ UIDs 2013-03-13 11:59:03.000000000 +0000 @@ -256,4 +256,5 @@ ossecm:*:967:966::0:0:OSSEC mail user:/usr/local/ossec-hids:/usr/sbin/nologin ossecr:*:968:966::0:0:OSSEC rem user:/usr/local/ossec-hids:/usr/sbin/nologin kippo:*:969:969::0:0:kippo user:/nonexistent:/usr/sbin/nologin +sweep:*:999:999::0:0:Sophos Sweep user:/nonexistent:/usr/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin --- GIDs-orig 2013-03-24 12:00:58.000000000 +0000 +++ GIDs 2013-03-13 11:57:55.000000000 +0000 @@ -250,5 +250,6 @@ elasticsearch:*:965: ossec:*:966: kippo:*:969: +sweep:*:999: nogroup:*:65533: nobody:*:65534: >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sav # sav/distinfo # sav/files # sav/files/300.sav-update.sh # sav/files/patch-install.sh.in # sav/files/sav.conf.sample # sav/Makefile # sav/pkg-plist # sav/pkg-descr # echo c - sav mkdir -p sav > /dev/null 2>&1 echo x - sav/distinfo sed 's/^X//' >sav/distinfo << 'd13c503aef7571bf66b4d292fa828e21' XSHA256 (freebsd.elf.8+.tar.Z) = 9f1aaa621c589754ff13aabbc2da5c0fb74b18355259b91019dc394aa22a3860 XSIZE (freebsd.elf.8+.tar.Z) = 97577681 XSHA256 (freebsd.amd64.8+.tar.Z) = 186b285a7cb0bbcd255ef58f778d3cd61bfcf7e0c2aca4d683d39862e22bf078 XSIZE (freebsd.amd64.8+.tar.Z) = 97492581 d13c503aef7571bf66b4d292fa828e21 echo c - sav/files mkdir -p sav/files > /dev/null 2>&1 echo x - sav/files/300.sav-update.sh sed 's/^X//' >sav/files/300.sav-update.sh << '4deefdca3e9da344d9e0446e44307489' X#!/bin/sh X X# Our defaults X# Xdaily_sav_update_enable="YES" Xdaily_sav_update_version="486" Xdaily_sav_update_urlpat="http://downloads.sophos.com/downloads/ide/486_ides.zip" Xdaily_sav_update_target="/usr/local/share/sav/" Xdaily_sav_update_restarts="" X X# If there is a global system configuration file, suck it in. X# Xif [ -r /etc/defaults/periodic.conf ] Xthen X . /etc/defaults/periodic.conf X source_periodic_confs Xfi X Xset -e X Xcase "$daily_sav_update_enable" in X [Yy][Ee][Ss]) X echo "" X echo "Running Sophos Antivirus updates:" X X if [ "$daily_sav_update_version" -le 0 ] X then X echo '$daily_sav_update_enable is enabled but' \ X '$daily_sav_update_version is nonpositive' X rc=2 X elif [ -z "$daily_sav_update_urlpat" ] X then X echo '$daily_sav_update_enable is enabled but' \ X '$daily_sav_update_urlpat is not set' X rc=2 X elif [ -z "$daily_sav_update_target" ] X then X echo '$daily_sav_update_enable is enabled but' \ X '$daily_sav_update_target is not set' X rc=2 X elif [ ! -d $daily_sav_update_target ] X then X echo '$daily_sav_update_enable is enabled but' \ X "$daily_sav_update_target" "doesn't exist" X rc=2 X else X IDEURL=`echo $daily_sav_update_urlpat | sed -e "s/%%update_version%%/${daily_sav_update_version}/"` X UNPACK_DIR=`mktemp -d -t vdl${daily_sav_update_version}` X [ -t 0 ] || BE_QUIET="-q" X X case "$UNPACK_DIR" in X /*/vdl${daily_sav_update_version}.*) X echo "fetching updates for version $daily_sav_update_version from $IDEURL" X /usr/bin/fetch $BE_QUIET -a -o ${UNPACK_DIR}/idefile.zip $IDEURL || exit 3 X X echo "unzipping IDEs and installing to $daily_sav_update_target" X /usr/local/bin/unzip $BE_QUIET ${UNPACK_DIR}/idefile.zip -d $UNPACK_DIR || exit 3 X /bin/rm -f ${daily_sav_update_target}/*.ide || exit 3 X /usr/bin/install -m 444 ${UNPACK_DIR}/*.ide $daily_sav_update_target || exit 3 X X /bin/rm ${UNPACK_DIR}/*.ide ${UNPACK_DIR}/idefile.zip || exit 3 X /bin/rmdir $UNPACK_DIR || exit 3 X X for _r in ${daily_sav_update_restarts}; do X ${_r} restart X done X ;; X *) X echo "path sanitycheck error: mktemp gave us $UNPACK_DIR" X rc=0;; X esac X fi X ;; X X *) rc=0;; Xesac X Xexit $rc 4deefdca3e9da344d9e0446e44307489 echo x - sav/files/patch-install.sh.in sed 's/^X//' >sav/files/patch-install.sh.in << '080be39647732a4f7061ee241a0609d9' X--- install.sh.orig 2013-01-08 15:00:45.000000000 +0000 X+++ install.sh 2013-03-21 16:17:31.000000000 +0000 X@@ -1786,8 +1786,8 @@ X X X if [ "$no_sav_conf" != "yes" ]; then X- if [ $existence_test /etc/sav.conf ]; then X- config_file=/etc/sav.conf X+ if [ $existence_test /usr/local/etc/sav.conf ]; then X+ config_file=/usr/local/etc/sav.conf X elif [ $existence_test /usr/local/sav/sav.conf ]; then X config_file=/usr/local/sav/sav.conf X else X@@ -1804,9 +1804,11 @@ X cp /tmp/sav_install.$$ "$config_file" X rm /tmp/sav_install.$$ X else X- config_file=/etc/sav.conf X+ config_file=/usr/local/etc/sav.conf X fechomess 1 creating_config_file $config_file X+ ln -s /usr/local/etc/sav.conf /etc/sav.conf X fi X+ echo "Installing symlink to /etc/sav.conf" X echo "SAV virus data directory = $sav_install_dir" >>$config_file X fi X 080be39647732a4f7061ee241a0609d9 echo x - sav/files/sav.conf.sample sed 's/^X//' >sav/files/sav.conf.sample << 'd2bd78a7f65513be24a1c59018b4dddd' XSAV virus data directory = /usr/local/share/sav d2bd78a7f65513be24a1c59018b4dddd echo x - sav/Makefile sed 's/^X//' >sav/Makefile << 'dc3a3a03b9c9e3c3f9266e33dc435cab' X# Created by: Gary J. Hayers X# $FreeBSD$ X XPORTNAME= sav XPORTVERSION= 4.86 XCATEGORIES= security XMASTER_SITES= # fetch manually XEXTRACT_SUFX= .tar.Z X XMAINTAINER= gary@hayers.org XCOMMENT= Sophos Anti-Virus system X XRUN_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip X XMAN1= sweep.1 X XUSE_SUBMAKE= yes XRESTRICTED= Packaging prohibited by Sophos Licence XNO_CDROM= Packaging prohibited by Sophos Licence XNO_PACKAGE= Packaging prohibited by Sophos Licence XONLY_FOR_ARCHS= i386 amd64 XUSE_LDCONFIG= yes XWRKSRC= ${WRKDIR}/sav-install XNO_BUILD= yes X XUSERS= sweep XGROUPS= sweep X X.include X X.if ${ARCH} == amd64 XDISTNAME= freebsd.amd64.8+ X.else XDISTNAME= freebsd.elf.8+ X.endif X X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) XIGNORE= due to Sophos Licensing restrictions, you must fetch the \ Xsource distribution manually. Please access \ Xhttp://www.sophos.com/en-us/products/free-trials/enduser-protection-b.aspx \ Xwith a web browser and register. After regististration and accepting the \ XSophos license, download the distribution ${DISTNAME}${EXTRACT_SUFX} \ Xinto ${DISTDIR} and then restart this installation X.endif X Xdo-install: X @(cd ${WRKSRC}; ./install.sh -v -d ${PREFIX} -s ${DATADIR} -so -nssi) X @${INSTALL_SCRIPT} ${FILESDIR}/300.sav-update.sh ${PREFIX}/etc/periodic/daily/300.sav-update X @${ECHO_MSG} "Periodic updates have been installed." X @${ECHO_MSG} "They are enabled by default." X @${ECHO_MSG} "To disable, you will need to add" X @${ECHO_MSG} "daily_sav_update_enable="\"YES\"" " X @${ECHO_MSG} "to /etc/periodic.conf." X @${INSTALL_DATA} ${FILESDIR}/sav.conf.sample ${PREFIX}/etc/sav.conf.sample X @if [ ! -f ${PREFIX}/etc/sav.conf ]; then \ X ${CP} -p ${PREFIX}/etc/sav.conf.sample ${PREFIX}/etc/sav.conf ; \ X fi X @if [ ! -e /etc/sav.conf ]; then \ X ${LN} -s ${PREFIX}/etc/sav.conf /etc/sav.conf ; \ X fi X X.include dc3a3a03b9c9e3c3f9266e33dc435cab echo x - sav/pkg-plist sed 's/^X//' >sav/pkg-plist << 'dfaffd50c7faf5cb23afe381e62d2cad' Xbin/sweep Xetc/periodic/daily/300.sav-update X@unexec if [ -L /etc/sav.conf ]; then rm /etc/sav.conf; fi X@unexec if cmp -s %D/etc/sav.conf.sample %D/etc/sav.conf; then rm -f %D/etc/sav.conf; fi Xetc/sav.conf.sample X@exec if [ ! -f %D/etc/sav.conf ]; then cp -p %D/%F %B/sav.conf; fi X@exec if [ ! -e /etc/sav.conf ]; then ln -s %D/etc/sav.conf /etc/sav.conf; fi Xlib/libsavi.so Xlib/libsavi.so.2 Xlib/libsavi.so.3 Xlib/libsavi.so.3.2.07.371 Xshare/sav/eminstall.sh Xshare/sav/sus01.vdb Xshare/sav/svext.dat Xshare/sav/swpmess.dat Xshare/sav/vdl-4.86.dat Xshare/sav/vdl.dat Xshare/sav/vdl01.vdb Xshare/sav/vdl02.vdb Xshare/sav/vdl03.vdb Xshare/sav/vdl04.vdb Xshare/sav/vdl05.vdb Xshare/sav/vdl06.vdb Xshare/sav/vdl07.vdb Xshare/sav/vdl08.vdb Xshare/sav/vdl09.vdb Xshare/sav/vdl10.vdb Xshare/sav/vdl11.vdb Xshare/sav/vdl12.vdb Xshare/sav/vdl13.vdb Xshare/sav/vdl14.vdb Xshare/sav/vdl15.vdb Xshare/sav/vdl16.vdb Xshare/sav/vdl17.vdb Xshare/sav/vdl18.vdb Xshare/sav/vdl19.vdb Xshare/sav/vdl20.vdb Xshare/sav/vdl21.vdb Xshare/sav/vdl22.vdb Xshare/sav/vdl23.vdb Xshare/sav/vdl24.vdb Xshare/sav/vdl25.vdb Xshare/sav/vdl26.vdb Xshare/sav/vdl27.vdb Xshare/sav/vdl28.vdb Xshare/sav/vdl29.vdb Xshare/sav/vdl30.vdb Xshare/sav/vdl31.vdb Xshare/sav/vdl32.vdb Xshare/sav/vdl33.vdb Xshare/sav/vdl34.vdb Xshare/sav/vdl35.vdb Xshare/sav/vdl36.vdb Xshare/sav/vdl37.vdb Xshare/sav/vdl38.vdb Xshare/sav/vdl39.vdb Xshare/sav/vdl40.vdb Xshare/sav/vdl41.vdb Xshare/sav/vdl42.vdb Xshare/sav/vdl43.vdb Xshare/sav/vdl44.vdb Xshare/sav/vdl45.vdb Xshare/sav/vdl46.vdb Xshare/sav/vdl47.vdb Xshare/sav/vdl48.vdb Xshare/sav/vdl49.vdb Xshare/sav/vdl50.vdb Xshare/sav/vdl51.vdb Xshare/sav/vdl52.vdb Xshare/sav/vdl53.vdb Xshare/sav/vdl54.vdb Xshare/sav/vdl55.vdb Xshare/sav/vdl56.vdb Xshare/sav/xvdl01.vdb Xshare/sav/xvdl02.vdb Xshare/sav/xvdl03.vdb Xshare/sav/xvdl04.vdb Xshare/sav/xvdl05.vdb Xshare/sav/xvdl06.vdb Xshare/sav/xvdl07.vdb Xshare/sav/xvdl08.vdb Xshare/sav/xvdl09.vdb Xshare/sav/xvdl10.vdb Xshare/sav/xvdl11.vdb Xshare/sav/xvdl12.vdb Xshare/sav/xvdl13.vdb Xshare/sav/xvdl14.vdb Xshare/sav/xvdl15.vdb Xshare/sav/xvdl16.vdb Xshare/sav/xvdl17.vdb Xshare/sav/xvdl18.vdb Xshare/sav/xvdl19.vdb Xshare/sav/xvdl20.vdb Xshare/sav/xvdl21.vdb Xshare/sav/xvdl22.vdb Xshare/sav/xvdl23.vdb Xshare/sav/xvdl24.vdb Xshare/sav/xvdl25.vdb Xshare/sav/xvdl26.vdb Xshare/sav/xvdl27.vdb Xshare/sav/xvdl28.vdb Xshare/sav/xvdl29.vdb Xshare/sav/xvdl30.vdb Xshare/sav/xvdl31.vdb Xshare/sav/xvdl32.vdb Xshare/sav/xvdl33.vdb Xshare/sav/xvdl34.vdb Xshare/sav/xvdl35.vdb Xshare/sav/xvdl36.vdb Xshare/sav/xvdl37.vdb Xshare/sav/xvdl38.vdb Xshare/sav/xvdl39.vdb Xshare/sav/xvdl40.vdb Xshare/sav/xvdl41.vdb Xshare/sav/xvdl42.vdb Xshare/sav/xvdl43.vdb Xshare/sav/xvdl44.vdb Xshare/sav/xvdl45.vdb Xshare/sav/xvdl46.vdb Xshare/sav/xvdl47.vdb Xshare/sav/xvdl48.vdb Xshare/sav/xvdl49.vdb Xshare/sav/xvdl50.vdb Xshare/sav/xvdl51.vdb Xshare/sav/xvdl52.vdb Xshare/sav/xvdl53.vdb Xshare/sav/xvdl54.vdb Xshare/sav/xvdl55.vdb Xshare/sav/xvdl56.vdb Xshare/sav/xvdl57.vdb X@unexec if [ -e ${LOCALBASE}/share/sav ] ; then echo "If permanently removing this software, please consider removing the IDE files under ${LOCALBASE}/share/sav"; fi X@dirrm share/sav X@dirrm etc/periodic/daily X@dirrm etc/periodic dfaffd50c7faf5cb23afe381e62d2cad echo x - sav/pkg-descr sed 's/^X//' >sav/pkg-descr << '5eefa21d25d3265794d76d59b47a9998' XSophos Anti-Virus is a commercial virus scanning and disinfection Xsystem. Included are the InterCheck server, the Sweep commandline Xtool, and the SAVI C library. X XThis port installs resources to automatically update virus definitions. X XWWW: http://www.sophos.com/ 5eefa21d25d3265794d76d59b47a9998 exit >Release-Note: >Audit-Trail: >Unformatted: