Date: Tue, 24 Feb 2009 19:03:41 GMT From: Cristiano Rolim Pereira <cristianorolim@hotmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/132074: [patch] - update security/f-prot to version 6.0.1 Message-ID: <200902241903.n1OJ3f00040799@www.freebsd.org> Resent-Message-ID: <200902241910.n1OJA1ZW056882@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132074 >Category: ports >Synopsis: [patch] - update security/f-prot to version 6.0.1 >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: Tue Feb 24 19:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Cristiano Rolim Pereira >Release: 7.0-RELEASE >Organization: >Environment: FreeBSD freebsd7.casa 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #1: Wed Nov 19 11:43:40 BRST 2008 root@freebsd7.casa:/usr/src/sys/i386/compile/VMWARE i386 >Description: *The new executable fpscan no more runs on amd64 architecture (Always coredumps) *No more needs for PERL. Updates to the virus signatures are made with a new executable: fpupdate The file "files/f-prot" was removed. Attached, there is a patch of the updated port. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN ../f-prot.orig/Makefile ./Makefile --- ../f-prot.orig/Makefile 2009-02-24 09:23:15.000000000 -0300 +++ ./Makefile 2009-02-24 16:36:12.000000000 -0300 @@ -6,58 +6,52 @@ # PORTNAME= f-prot -PORTVERSION= 4.6.8 +PORTVERSION= 6.0.1 CATEGORIES= security -MASTER_SITES= ftp://ftp.i-scream.org/pub/ftp.f-prot.com/pub/bsd/ \ - http://ftp.i-scream.org/pub/ftp.f-prot.com/pub/bsd/ -DISTNAME= fp-freebsd-ws-${PORTVERSION} +MASTER_SITES= http://files.f-prot.com/files/unix-trial/ +DISTNAME= fp-FreeBSD-i386-ws MAINTAINER= tdb@FreeBSD.org COMMENT= F-Prot Antivirus for BSD Workstations -RUN_DEPENDS= ${SITE_PERL}/HTTP/Request.pm:${PORTSDIR}/www/p5-libwww - -.ifndef(WITHOUT_SIGNATURES) -RUN_DEPENDS+= ${LOCALBASE}/f-prot/SIGN.DEF:${PORTSDIR}/security/f-prot-sig -.endif - RESTRICTED= Free for personal use only -BROKEN= This version no longer receives updates WRKSRC= ${WRKDIR}/${PORTNAME} +DATADIR?= ${PREFIX}/share/${PORTNAME} NO_BUILD= yes -USE_PERL5= yes -MAN1= f-prot.1 +SUB_FILES= fpscan fpupdate pkg-message -ONLY_FOR_ARCHS= i386 amd64 +MAN1= fpscan.1 +MAN8= fpupdate.8 + +ONLY_FOR_ARCHS= i386 do-install: - cd ${WRKDIR} && ${TAR} --exclude man_pages \ - --exclude doc_ws \ - --exclude f-prot.sh \ - --exclude *.DEF \ - --exclude install-f-prot.pl \ - -cf - f-prot | ${TAR} -xf - -C ${PREFIX} - - ${INSTALL_SCRIPT} ${FILESDIR}/f-prot ${PREFIX}/bin/f-prot - ${INSTALL_MAN} ${WRKSRC}/man_pages/f-prot.1 ${MANPREFIX}/man/man1/ - ${CHMOD} 755 ${PREFIX}/f-prot/tools/check-updates.pl - -.ifdef(WITHOUT_SIGNATURES) -post-extract: - @${ECHO_MSG} "" - @${ECHO_MSG} "WARNING: You have chosen not to have the virus signatures installed." - @${ECHO_MSG} "" - @${ECHO_MSG} "Make sure you download and update the signatures yourself, or use the" - @${ECHO_MSG} "check-updates.pl script provided in this port to do it for you." - @${ECHO_MSG} "" -.endif + ${MKDIR} ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/fpscan ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/fpupdate ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/f-prot.conf.default ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/antivir.def ${DATADIR} + ${CHMOD} 744 ${DATADIR}/antivir.def + ${INSTALL_DATA} ${WRKSRC}/license.key ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/product.data ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/fpscan ${PREFIX}/bin/fpscan + ${INSTALL_SCRIPT} ${WRKDIR}/fpupdate ${PREFIX}/bin/fpupdate + ${INSTALL_MAN} ${WRKSRC}/doc/man/fpscan.1 ${MANPREFIX}/man/man1/ + ${INSTALL_MAN} ${WRKSRC}/doc/man/fpupdate.8 ${MANPREFIX}/man/man8/ post-install: .ifndef(NOPORTDOCS) ${MKDIR} ${DOCSDIR} - ${CP} -Rp ${WRKSRC}/doc_ws/* ${DOCSDIR} + ${CP} -Rp ${WRKSRC}/doc/html ${DOCSDIR} + ${CP} -p ${WRKSRC}/doc/CHANGES ${DOCSDIR} + ${CP} -p ${WRKSRC}/doc/LICENSE ${DOCSDIR} + ${CP} -p ${WRKSRC}/doc/LICENSE-FPAV ${DOCSDIR} + ${CP} -p ${WRKSRC}/doc/LICENSES-others ${DOCSDIR} .endif + @${CAT} ${PKGMESSAGE} + .include <bsd.port.mk> diff -ruN ../f-prot.orig/distinfo ./distinfo --- ../f-prot.orig/distinfo 2007-10-27 15:47:58.000000000 -0200 +++ ./distinfo 2009-02-24 14:12:20.000000000 -0300 @@ -1,3 +1,3 @@ -MD5 (fp-freebsd-ws-4.6.8.tar.gz) = caefa1a383bff94bc31c7b075f5afd86 -SHA256 (fp-freebsd-ws-4.6.8.tar.gz) = cc0fed548739ceafdb91bb7eef13fbdb61f418c18ae66205bac8b4235ec79b81 -SIZE (fp-freebsd-ws-4.6.8.tar.gz) = 7029954 +MD5 (fp-FreeBSD-i386-ws.tar.gz) = 4f8673ac9a146079205e04ff2b37368c +SHA256 (fp-FreeBSD-i386-ws.tar.gz) = 8213d3708876a623613ac56b36f4fdc6d1bc67abd2255bfa67132d4cf3acadd1 +SIZE (fp-FreeBSD-i386-ws.tar.gz) = 13399985 diff -ruN ../f-prot.orig/files/f-prot ./files/f-prot --- ../f-prot.orig/files/f-prot 2005-10-06 17:48:47.000000000 -0300 +++ ./files/f-prot 1969-12-31 21:00:00.000000000 -0300 @@ -1,2 +0,0 @@ -#!/bin/sh -exec /usr/local/f-prot/f-prot ${@+"$@"} diff -ruN ../f-prot.orig/files/fpscan.in ./files/fpscan.in --- ../f-prot.orig/files/fpscan.in 1969-12-31 21:00:00.000000000 -0300 +++ ./files/fpscan.in 2009-02-24 16:13:48.000000000 -0300 @@ -0,0 +1,2 @@ +#!/bin/sh +exec %%DATADIR%%/fpscan ${@+"$@"} diff -ruN ../f-prot.orig/files/fpupdate.in ./files/fpupdate.in --- ../f-prot.orig/files/fpupdate.in 1969-12-31 21:00:00.000000000 -0300 +++ ./files/fpupdate.in 2009-02-24 16:38:28.000000000 -0300 @@ -0,0 +1,2 @@ +#!/bin/sh +exec %%DATADIR%%/fpupdate --keyfile %%DATADIR%%/license.key ${@+"$@"} diff -ruN ../f-prot.orig/files/pkg-message.in ./files/pkg-message.in --- ../f-prot.orig/files/pkg-message.in 1969-12-31 21:00:00.000000000 -0300 +++ ./files/pkg-message.in 2009-02-24 16:15:14.000000000 -0300 @@ -0,0 +1,15 @@ +To complete the installation of F-Prot Antivirus: + +1. Copy the file %%DATADIR%%/f-prot.conf.default to: + /etc/f-prot.conf + +2. Do the necessary modifications in /etc/f-prot.conf + +OBS: You can also copy f-prot.conf.default to: + + %%DATADIR%%/f-prot.conf + + + After this, create a symbolic link in /etc: + + ln -s /etc/f-prot.conf %%DATADIR%%/f-prot.conf diff -ruN ../f-prot.orig/pkg-plist ./pkg-plist --- ../f-prot.orig/pkg-plist 2006-01-22 00:50:19.000000000 -0200 +++ ./pkg-plist 2009-02-24 16:16:49.000000000 -0300 @@ -1,37 +1,59 @@ -bin/f-prot -f-prot/CHANGES -f-prot/ENGLISH.TX0 -f-prot/LICENSE -f-prot/LICENSE-FPAV -f-prot/LICENSES-others -f-prot/README -f-prot/f-prot -f-prot/etc/f-prot.conf.default -f-prot/tools/check-updates.pl -%%PORTDOCS%%%%DOCSDIR%%/add_info.html -%%PORTDOCS%%%%DOCSDIR%%/auto_updt.html -%%PORTDOCS%%%%DOCSDIR%%/comm_scan.html -%%PORTDOCS%%%%DOCSDIR%%/index.html -%%PORTDOCS%%%%DOCSDIR%%/inf_eicar.gif -%%PORTDOCS%%%%DOCSDIR%%/info_options.html -%%PORTDOCS%%%%DOCSDIR%%/inst_pro.html -%%PORTDOCS%%%%DOCSDIR%%/loc_files.html -%%PORTDOCS%%%%DOCSDIR%%/macro_scanning_options.html -%%PORTDOCS%%%%DOCSDIR%%/main_feat.html -%%PORTDOCS%%%%DOCSDIR%%/man_updt.html -%%PORTDOCS%%%%DOCSDIR%%/per_scan.html -%%PORTDOCS%%%%DOCSDIR%%/reporting_options.html -%%PORTDOCS%%%%DOCSDIR%%/scanning_options.html -%%PORTDOCS%%%%DOCSDIR%%/screenshot.jpg -%%PORTDOCS%%%%DOCSDIR%%/sys_req.html -%%PORTDOCS%%%%DOCSDIR%%/test_eicar.html -%%PORTDOCS%%%%DOCSDIR%%/test_inst.html -%%PORTDOCS%%%%DOCSDIR%%/updater.html -%%PORTDOCS%%%%DOCSDIR%%/updater_req.html -%%PORTDOCS%%%%DOCSDIR%%/updt_macro.gif -%%PORTDOCS%%%%DOCSDIR%%/updt_sign.gif -%%PORTDOCS%%%%DOCSDIR%%/updt_signature.gif +bin/fpscan +bin/fpupdate +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/LICENSE-FPAV +%%PORTDOCS%%%%DOCSDIR%%/LICENSES-others +%%PORTDOCS%%%%DOCSDIR%%/html/add_info.html +%%PORTDOCS%%%%DOCSDIR%%/html/appendix_a.html +%%PORTDOCS%%%%DOCSDIR%%/html/appendix_b.html +%%PORTDOCS%%%%DOCSDIR%%/html/appendix_c.html +%%PORTDOCS%%%%DOCSDIR%%/html/auto_updt.html +%%PORTDOCS%%%%DOCSDIR%%/html/chmstyle.css +%%PORTDOCS%%%%DOCSDIR%%/html/conf_scanmail_bootup.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpmon.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpmon_conf.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpmon_options.html +%%PORTDOCS%%%%DOCSDIR%%/html/fprots.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpscan.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpscan_options.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpscand.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpscand_conf.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpscand_options.html +%%PORTDOCS%%%%DOCSDIR%%/html/fpupdate_options.html +%%PORTDOCS%%%%DOCSDIR%%/html/images/arrow_left.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/arrow_right.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/banner.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/dazuko.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/fpupdate.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/notusing_fprot_so_v6.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/test_eicar.gif +%%PORTDOCS%%%%DOCSDIR%%/html/images/using_fprot_so_v6.gif +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/inst_pro.html +%%PORTDOCS%%%%DOCSDIR%%/html/loc_files.html +%%PORTDOCS%%%%DOCSDIR%%/html/loglevel.html +%%PORTDOCS%%%%DOCSDIR%%/html/mailscanner.html +%%PORTDOCS%%%%DOCSDIR%%/html/main_feat.html +%%PORTDOCS%%%%DOCSDIR%%/html/man_updt.html +%%PORTDOCS%%%%DOCSDIR%%/html/milter_scan.html +%%PORTDOCS%%%%DOCSDIR%%/html/per_scan.html +%%PORTDOCS%%%%DOCSDIR%%/html/postfix_scan.html +%%PORTDOCS%%%%DOCSDIR%%/html/prot_samba.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmail_scan.html +%%PORTDOCS%%%%DOCSDIR%%/html/scan_with_mailscanner.html +%%PORTDOCS%%%%DOCSDIR%%/html/sys_req.html +%%PORTDOCS%%%%DOCSDIR%%/html/test_eicar.html +%%PORTDOCS%%%%DOCSDIR%%/html/test_inst.html +%%PORTDOCS%%%%DOCSDIR%%/html/updater.html +%%DATADIR%%/README +%%DATADIR%%/antivir.def +%%DATADIR%%/f-prot.conf.default +%%DATADIR%%/fpscan +%%DATADIR%%/fpupdate +%%DATADIR%%/license.key +%%DATADIR%%/product.data +@dirrmtry %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/images +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html %%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm f-prot/tools -@dirrm f-prot/etc -@dirrmtry f-prot >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902241903.n1OJ3f00040799>