summaryrefslogtreecommitdiff
path: root/security/f-prot
diff options
context:
space:
mode:
authorTim Bishop <tdb@FreeBSD.org>2009-11-20 15:21:02 +0000
committerTim Bishop <tdb@FreeBSD.org>2009-11-20 15:21:02 +0000
commit5d679a1233d61872ff8fce5a48f096a13afeaf65 (patch)
tree45d4aaf5f989dcd6a5676e6f8e6a880db9b90042 /security/f-prot
parent- Update to 0.91117 (diff)
- Update f-prot to 6.2.1. Based on ports/132074.
PR: ports/132074 Submitted by: Cristiano Rolim Pereira <cristianorolim@hotmail.com>
Notes
Notes: svn path=/head/; revision=244527
Diffstat (limited to 'security/f-prot')
-rw-r--r--security/f-prot/Makefile73
-rw-r--r--security/f-prot/distinfo6
-rw-r--r--security/f-prot/files/900.fpupdate.in30
-rw-r--r--security/f-prot/files/f-prot2
-rw-r--r--security/f-prot/files/fpscan.in2
-rw-r--r--security/f-prot/files/fpupdate.in2
-rw-r--r--security/f-prot/pkg-message11
-rw-r--r--security/f-prot/pkg-plist101
8 files changed, 152 insertions, 75 deletions
diff --git a/security/f-prot/Makefile b/security/f-prot/Makefile
index b92efe2bedd9..a273bc1447b8 100644
--- a/security/f-prot/Makefile
+++ b/security/f-prot/Makefile
@@ -6,58 +6,63 @@
#
PORTNAME= f-prot
-PORTVERSION= 4.6.8
+PORTVERSION= 6.2.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}
+DISTNAME= fp-FreeBSD-i386-ws-${PORTVERSION}
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
+RESTRICTED= Free for personal users on personal workstations only
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
-USE_PERL5= yes
+SUB_FILES= 900.fpupdate fpscan fpupdate
-MAN1= f-prot.1
+MAN1= fpscan.1
+MAN5= f-prot.conf.5
+MAN8= fpupdate.8
-ONLY_FOR_ARCHS= i386 amd64
+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} ${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/fpscan ${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/fpupdate ${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/antivir.def ${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/license.key ${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/product.data ${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/libexec/${PORTNAME}
+
+ ${INSTALL_DATA} ${WRKSRC}/f-prot.conf.default ${PREFIX}/etc/f-prot.conf.sample
+
+ ${INSTALL_SCRIPT} ${WRKDIR}/fpscan ${PREFIX}/bin/fpscan
+ ${INSTALL_SCRIPT} ${WRKDIR}/fpupdate ${PREFIX}/bin/fpupdate
+
+ ${MKDIR} ${PREFIX}/etc/periodic/daily
+ ${INSTALL_SCRIPT} ${WRKDIR}/900.fpupdate ${PREFIX}/etc/periodic/daily
+
+ ${INSTALL_MAN} ${WRKSRC}/doc/man/fpscan.1 ${MANPREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/doc/man/f-prot.conf.5 ${MANPREFIX}/man/man5/
+ ${INSTALL_MAN} ${WRKSRC}/doc/man/fpupdate.8 ${MANPREFIX}/man/man8/
post-install:
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${CP} -Rp ${WRKSRC}/doc_ws/* ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/doc/html ${DOCSDIR}
+ ${CP} ${WRKSRC}/doc/CHANGES ${DOCSDIR}
+ ${CP} ${WRKSRC}/doc/LICENSE ${DOCSDIR}
+ ${CP} ${WRKSRC}/doc/LICENSE-FPAV ${DOCSDIR}
+ ${CP} ${WRKSRC}/doc/LICENSES-others ${DOCSDIR}
.endif
+ @if [ ! -f ${PREFIX}/etc/f-prot.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/f-prot.conf.sample ${PREFIX}/etc/f-prot.conf ; \
+ fi
+ @if [ ! -e /etc/f-prot.conf ]; then \
+ ${LN} -s ${PREFIX}/etc/f-prot.conf /etc/f-prot.conf ; \
+ fi
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/security/f-prot/distinfo b/security/f-prot/distinfo
index abcfcfaee2fd..019c460b36ab 100644
--- a/security/f-prot/distinfo
+++ b/security/f-prot/distinfo
@@ -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-6.2.1.tar.gz) = 4f8673ac9a146079205e04ff2b37368c
+SHA256 (fp-FreeBSD-i386-ws-6.2.1.tar.gz) = 8213d3708876a623613ac56b36f4fdc6d1bc67abd2255bfa67132d4cf3acadd1
+SIZE (fp-FreeBSD-i386-ws-6.2.1.tar.gz) = 13399985
diff --git a/security/f-prot/files/900.fpupdate.in b/security/f-prot/files/900.fpupdate.in
new file mode 100644
index 000000000000..857dd99df04c
--- /dev/null
+++ b/security/f-prot/files/900.fpupdate.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# f-prot update script
+
+# If there is a global system configuration file, suck it in.
+if [ -r /etc/defaults/periodic.conf ]; then
+ . /etc/defaults/periodic.conf
+ source_periodic_confs
+fi
+
+: ${fpupdate_enable="YES"}
+
+case "$fpupdate_enable" in
+ [Yy][Ee][Ss])
+ echo -n "Updating f-prot definitions: "
+ %%PREFIX%%/bin/fpupdate >/dev/null
+ if [ $? = 0 ]; then
+ echo "done."
+ rc=0
+ else
+ echo "failed."
+ rc=3
+ fi
+ ;;
+ *) rc=0;;
+esac
+
+exit $rc
diff --git a/security/f-prot/files/f-prot b/security/f-prot/files/f-prot
deleted file mode 100644
index 46919fc92bfe..000000000000
--- a/security/f-prot/files/f-prot
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /usr/local/f-prot/f-prot ${@+"$@"}
diff --git a/security/f-prot/files/fpscan.in b/security/f-prot/files/fpscan.in
new file mode 100644
index 000000000000..29e4cded18b5
--- /dev/null
+++ b/security/f-prot/files/fpscan.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec %%PREFIX%%/libexec/f-prot/fpscan ${@+"$@"}
diff --git a/security/f-prot/files/fpupdate.in b/security/f-prot/files/fpupdate.in
new file mode 100644
index 000000000000..b8c4d53a63dc
--- /dev/null
+++ b/security/f-prot/files/fpupdate.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec %%PREFIX%%/libexec/f-prot/fpupdate --keyfile %%PREFIX%%/libexec/f-prot/license.key ${@+"$@"}
diff --git a/security/f-prot/pkg-message b/security/f-prot/pkg-message
new file mode 100644
index 000000000000..769d42b23ee9
--- /dev/null
+++ b/security/f-prot/pkg-message
@@ -0,0 +1,11 @@
+***************************************************************************
+
+F-Prot Antivirus for BSD Workstations has been installed.
+
+By default fpupdate will run daily to update F-Prot's virus
+definitions. If you do not want this behaviour please set the
+following in /etc/periodic.conf or /etc/periodic.conf.local:
+
+fpupdate_enable="NO"
+
+***************************************************************************
diff --git a/security/f-prot/pkg-plist b/security/f-prot/pkg-plist
index 684cac875fc8..96ad4856934a 100644
--- a/security/f-prot/pkg-plist
+++ b/security/f-prot/pkg-plist
@@ -1,37 +1,66 @@
-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
+@unexec if [ -L /etc/f-prot.conf ]; then rm /etc/f-prot.conf; fi
+@unexec if cmp -s %D/etc/f-prot.conf.sample %D/etc/f-prot.conf; then rm -f %D/etc/f-prot.conf; fi
+etc/f-prot.conf.sample
+@exec if [ ! -f %D/etc/f-prot.conf ]; then cp -p %D/%F %B/f-prot.conf; fi
+@exec if [ ! -e /etc/f-prot.conf ]; then ln -s %D/etc/f-prot.conf /etc/f-prot.conf; fi
+etc/periodic/daily/900.fpupdate
+libexec/f-prot/README
+libexec/f-prot/antivir.def
+libexec/f-prot/fpscan
+libexec/f-prot/fpupdate
+libexec/f-prot/license.key
+libexec/f-prot/product.data
+%%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
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/images
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm f-prot/tools
-@dirrm f-prot/etc
-@dirrmtry f-prot
+@dirrmtry libexec/f-prot
+@dirrmtry etc/periodic/daily
+@dirrmtry etc/periodic