aboutsummaryrefslogtreecommitdiff
path: root/security/f-protd
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-03-09 10:20:17 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-03-09 10:20:17 +0000
commite66a031a4ac5d33b9b6085f102343b580ed6266d (patch)
tree56793590d4aea882fa1d3c4e8c5070f69816e027 /security/f-protd
parent1df487937d317b648e7d0e3aa98e1acfa20e1f73 (diff)
downloadports-e66a031a4ac5d33b9b6085f102343b580ed6266d.tar.gz
ports-e66a031a4ac5d33b9b6085f102343b580ed6266d.zip
F-Prot Antivirus BSD Mail Servers utilizes the renowned F-Prot Antivirus
scanning engine for primary scan but has in addition to that a system of system of internal heuristics devised to search for unknown viruses. Please note that the license explicitly permits that F-Prot Antivirus BSD Mail Servers be used for evaluation purposes only, without charge for a period of no more than 60 days. If you use this software after the 60 day evaluation period, then you must register and pay a license fee. WWW: http://www.f-prot.com/ PR: ports/110107 Submitted by: Scot W. Hetzel <swhetzel at gmail.com>
Notes
Notes: svn path=/head/; revision=186982
Diffstat (limited to 'security/f-protd')
-rw-r--r--security/f-protd/Makefile47
-rw-r--r--security/f-protd/distinfo3
-rw-r--r--security/f-protd/files/fprotd.sh.in36
-rw-r--r--security/f-protd/files/fprotd_scanmail.sh.in32
-rw-r--r--security/f-protd/pkg-descr10
-rw-r--r--security/f-protd/pkg-plist50
6 files changed, 178 insertions, 0 deletions
diff --git a/security/f-protd/Makefile b/security/f-protd/Makefile
new file mode 100644
index 000000000000..66a6f6178b72
--- /dev/null
+++ b/security/f-protd/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: f-protd
+# Date created: 8 March 2007
+# Whom: Scot W. Hetzel <swhetzel@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= f-protd
+PORTVERSION= 4.6.7
+CATEGORIES= security
+MASTER_SITES= http://files.f-prot.com/files/bsd-x86/trial/
+DISTNAME= fp-freebsd-ms.trial
+
+MAINTAINER= swhetzel@gmail.com
+COMMENT= F-Prot Antivirus for BSD Mail Server
+
+RUN_DEPENDS= ${LOCALBASE}/f-prot/f-prot:${PORTSDIR}/security/f-prot \
+ ${SITE_PERL}/Anomy/Sanitizer/FProt.pm:${PORTSDIR}/mail/anomy-sanitizer
+
+RESTRICTED= Restrictive 60 day evaluation license
+
+WRKSRC= ${WRKDIR}/f-prot
+NO_BUILD= yes
+USE_RC_SUBR= fprotd.sh fprotd_scanmail.sh
+
+MAN8= f-prot-milter.8 f-prot-qmail.8 f-protd.8 scan-mail.pl.8
+
+ONLY_FOR_ARCHS= i386 amd64
+
+do-install:
+ ${MKDIR} ${PREFIX}/f-prot/backups
+ ${CP} ${WRKSRC}/LICENSE-FPAV ${PREFIX}/f-prot/LICENSE-FPAV.f-protd
+ ${INSTALL_PROGRAM} ${WRKSRC}/f-protd ${PREFIX}/f-prot/
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/f-prot-milter ${PREFIX}/f-prot/tools/
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/f-prot-qmail ${PREFIX}/f-prot/tools/
+ ${INSTALL_SCRIPT} ${WRKSRC}/tools/scan-mail.pl ${PREFIX}/f-prot/tools/
+.for manpage in ${MAN8}
+ ${INSTALL_MAN} ${WRKSRC}/man_pages/${manpage} ${MANPREFIX}/man/man8/
+.endfor
+
+post-install:
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${CP} -Rp ${WRKSRC}/doc_ms/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/f-protd/distinfo b/security/f-protd/distinfo
new file mode 100644
index 000000000000..5cfa2bb4a7d9
--- /dev/null
+++ b/security/f-protd/distinfo
@@ -0,0 +1,3 @@
+MD5 (fp-freebsd-ms.trial.tar.gz) = 506c86cf00c06335c673bec74b95e394
+SHA256 (fp-freebsd-ms.trial.tar.gz) = 9fddb783fef6c2050dd3fd309393fcbbe2226cf4035ea1b0727081745145a6f6
+SIZE (fp-freebsd-ms.trial.tar.gz) = 7391083
diff --git a/security/f-protd/files/fprotd.sh.in b/security/f-protd/files/fprotd.sh.in
new file mode 100644
index 000000000000..5d8d3957ee4b
--- /dev/null
+++ b/security/f-protd/files/fprotd.sh.in
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: fprotd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# fprotd_enable="YES"
+#
+
+prefix=%%PREFIX%%
+
+. /etc/rc.subr
+
+name=fprotd
+rcvar=`set_rcvar`
+start_precmd="fprotd_precmd"
+command="${prefix}/f-prot/f-protd"
+command_args="> /dev/null 2>&1"
+
+required_files="/etc/f-prot.conf"
+
+load_rc_config ${name}
+
+: ${fprotd_enable=NO}
+: ${fprotd_virus_defs=${prefix}/f-prot}
+
+fprotd_precmd()
+{
+ rc_flags="--background --defpath ${fprotd_virus_defs} ${fprotd_flags}"
+}
+
+run_rc_command "$1"
diff --git a/security/f-protd/files/fprotd_scanmail.sh.in b/security/f-protd/files/fprotd_scanmail.sh.in
new file mode 100644
index 000000000000..dc9fc183b711
--- /dev/null
+++ b/security/f-protd/files/fprotd_scanmail.sh.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: fprotd_scanmail
+# REQUIRE: fprotd
+# KEYWORD: shutdown
+#
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# fprotd_scanmail_enable="YES"
+#
+
+prefix=%%PREFIX%%
+
+. /etc/rc.subr
+
+name=fprotd_scanmail
+rcvar=`set_rcvar`
+pidfile="/var/run/scanmail.pid"
+command="${prefix}/f-prot/tools/scan-mail.pl"
+command_args="> /dev/null 2>&1"
+command_interpreter="/usr/bin/perl"
+
+required_files="/etc/f-prot.conf"
+
+load_rc_config ${name}
+
+: ${fprotd_scanmail_enable=NO}
+: ${fprotd_scanmail_flags="--daemon --milter inet:12200@127.0.0.1"}
+
+run_rc_command "$1"
diff --git a/security/f-protd/pkg-descr b/security/f-protd/pkg-descr
new file mode 100644
index 000000000000..9a18e813baff
--- /dev/null
+++ b/security/f-protd/pkg-descr
@@ -0,0 +1,10 @@
+F-Prot Antivirus BSD Mail Servers utilizes the renowned F-Prot Antivirus
+scanning engine for primary scan but has in addition to that a system of
+system of internal heuristics devised to search for unknown viruses.
+
+Please note that the license explicitly permits that F-Prot Antivirus BSD
+Mail Servers be used for evaluation purposes only, without charge for a
+period of no more than 60 days. If you use this software after the 60 day
+evaluation period, then you must register and pay a license fee.
+
+WWW: http://www.f-prot.com/
diff --git a/security/f-protd/pkg-plist b/security/f-protd/pkg-plist
new file mode 100644
index 000000000000..429b33a43a42
--- /dev/null
+++ b/security/f-protd/pkg-plist
@@ -0,0 +1,50 @@
+f-prot/LICENSE-FPAV.f-protd
+f-prot/f-protd
+f-prot/tools/f-prot-milter
+f-prot/tools/f-prot-qmail
+f-prot/tools/scan-mail.pl
+%%PORTDOCS%%%%DOCSDIR%%/add_info.html
+%%PORTDOCS%%%%DOCSDIR%%/appendix_a.html
+%%PORTDOCS%%%%DOCSDIR%%/auto_updt.html
+%%PORTDOCS%%%%DOCSDIR%%/comm_scan.html
+%%PORTDOCS%%%%DOCSDIR%%/conf_fprotd.html
+%%PORTDOCS%%%%DOCSDIR%%/conf_scanmail_bootup.html
+%%PORTDOCS%%%%DOCSDIR%%/d_scan_options.html
+%%PORTDOCS%%%%DOCSDIR%%/d_startup_options.html
+%%PORTDOCS%%%%DOCSDIR%%/daemon_scan.html
+%%PORTDOCS%%%%DOCSDIR%%/fprots.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%%/loglevel.html
+%%PORTDOCS%%%%DOCSDIR%%/macro_scanning_options.html
+%%PORTDOCS%%%%DOCSDIR%%/mailscanner.html
+%%PORTDOCS%%%%DOCSDIR%%/main_feat.html
+%%PORTDOCS%%%%DOCSDIR%%/man_updt.html
+%%PORTDOCS%%%%DOCSDIR%%/milter_scan.html
+%%PORTDOCS%%%%DOCSDIR%%/notusing_fprot.so.gif
+%%PORTDOCS%%%%DOCSDIR%%/per_scan.html
+%%PORTDOCS%%%%DOCSDIR%%/postfix_scan.html
+%%PORTDOCS%%%%DOCSDIR%%/prot_samba.html
+%%PORTDOCS%%%%DOCSDIR%%/qmail_scan.html
+%%PORTDOCS%%%%DOCSDIR%%/reporting_options.html
+%%PORTDOCS%%%%DOCSDIR%%/scan_with_mailscanner.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_noneed.gif
+%%PORTDOCS%%%%DOCSDIR%%/updt_sign.gif
+%%PORTDOCS%%%%DOCSDIR%%/updt_signature.gif
+%%PORTDOCS%%%%DOCSDIR%%/using_fprot.so.gif
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@exec install -d -m 755 -o root -g wheel %D/f-prot/backups
+@dirrmtry f-prot/backups
+@dirrmtry f-prot/tools
+@dirrmtry f-prot