ports/110107: New port: security/f-protd - F-PROT Antivirus FreeBSD Mail Server
Scot Hetzel
swhetzel at gmail.com
Thu Mar 8 22:00:12 UTC 2007
>Number: 110107
>Category: ports
>Synopsis: New port: security/f-protd - F-PROT Antivirus FreeBSD Mail Server
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 08 22:00:11 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Scot Hetzel
>Release: 7.0-CURRENT
>Organization:
>Environment:
>Description:
The F-PROT Antivirus FreeBSD Mail Server installs an antivirus scanning daemon (f-protd), and the programs needed to scan mail messages thru procmail, sendmail, postfix, and qmail.
This port installs static binaries and will work on both FreeBSD/i386 and FreeBSD/amd64.
Note: security/f-prot also needs 'amd64' added to ONLY_FOR_ARCHS.
>How-To-Repeat:
>Fix:
extract the attached archive.
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:
#
# f-protd
# f-protd/Makefile
# f-protd/distinfo
# f-protd/files
# f-protd/pkg-descr
# f-protd/pkg-plist
# f-protd/files/fprotd.sh.in
# f-protd/files/fprotd_scanmail.sh.in
#
echo c - f-protd
mkdir -p f-protd > /dev/null 2>&1
echo x - f-protd/Makefile
sed 's/^X//' >f-protd/Makefile << 'END-of-f-protd/Makefile'
X# New ports collection makefile for: f-protd
X# Date created: 8 March 2007
X# Whom: Scot W. Hetzel <swhetzel at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= f-protd
XPORTVERSION= 4.6.7
XCATEGORIES= security
XMASTER_SITES= http://files.f-prot.com/files/bsd-x86/trial/
XDISTNAME= fp-freebsd-ms.trial
X
XMAINTAINER= ports at FreeBSD.org
XCOMMENT= F-Prot Antivirus for BSD Mail Server
X
XRUN_DEPENDS= ${LOCALBASE}/f-prot/f-prot:${PORTSDIR}/security/f-prot \
X ${SITE_PERL}/Anomy/Sanitizer/FProt.pm:${PORTSDIR}/mail/anomy-sanitizer
X
X
XRESTRICTED= Restrictive 60 day evaluation license
X
XWRKSRC= ${WRKDIR}/f-prot
XNO_BUILD= yes
XUSE_RC_SUBR= fprotd.sh fprotd_scanmail.sh
X
XMAN8= f-prot-milter.8 f-prot-qmail.8 f-protd.8 scan-mail.pl.8
X
XONLY_FOR_ARCHS= i386 amd64
X
Xdo-install:
X ${MKDIR} ${PREFIX}/f-prot/backups
X ${CP} ${WRKSRC}/LICENSE-FPAV ${PREFIX}/f-prot/LICENSE-FPAV.f-protd
X ${INSTALL_PROGRAM} ${WRKSRC}/f-protd ${PREFIX}/f-prot/
X ${INSTALL_PROGRAM} ${WRKSRC}/tools/f-prot-milter ${PREFIX}/f-prot/tools/
X ${INSTALL_PROGRAM} ${WRKSRC}/tools/f-prot-qmail ${PREFIX}/f-prot/tools/
X ${INSTALL_SCRIPT} ${WRKSRC}/tools/scan-mail.pl ${PREFIX}/f-prot/tools/
X.for manpage in ${MAN8}
X ${INSTALL_MAN} ${WRKSRC}/man_pages/${manpage} ${MANPREFIX}/man/man8/
X.endfor
X
Xpost-install:
X.ifndef(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X ${CP} -Rp ${WRKSRC}/doc_ms/* ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-f-protd/Makefile
echo x - f-protd/distinfo
sed 's/^X//' >f-protd/distinfo << 'END-of-f-protd/distinfo'
XMD5 (fp-freebsd-ms.trial.tar.gz) = 506c86cf00c06335c673bec74b95e394
XSHA256 (fp-freebsd-ms.trial.tar.gz) = 9fddb783fef6c2050dd3fd309393fcbbe2226cf4035ea1b0727081745145a6f6
XSIZE (fp-freebsd-ms.trial.tar.gz) = 7391083
END-of-f-protd/distinfo
echo c - f-protd/files
mkdir -p f-protd/files > /dev/null 2>&1
echo x - f-protd/pkg-descr
sed 's/^X//' >f-protd/pkg-descr << 'END-of-f-protd/pkg-descr'
XF-Prot Antivirus BSD Mail Servers utilizes the renowned F-Prot Antivirus
Xscanning engine for primary scan but has in addition to that a system of
Xsystem of internal heuristics devised to search for unknown viruses.
X
XPlease note that the license explicitly permits that F-Prot Antivirus BSD
XMail Servers be used for evaluation purposes only, without charge for a
Xperiod of no more than 60 days. If you use this software after the 60 day
Xevaluation period, then you must register and pay a license fee.
X
XWWW: http://www.f-prot.com/
END-of-f-protd/pkg-descr
echo x - f-protd/pkg-plist
sed 's/^X//' >f-protd/pkg-plist << 'END-of-f-protd/pkg-plist'
Xf-prot/LICENSE-FPAV.f-protd
Xf-prot/f-protd
Xf-prot/tools/f-prot-milter
Xf-prot/tools/f-prot-qmail
Xf-prot/tools/scan-mail.pl
X%%PORTDOCS%%%%DOCSDIR%%/add_info.html
X%%PORTDOCS%%%%DOCSDIR%%/appendix_a.html
X%%PORTDOCS%%%%DOCSDIR%%/auto_updt.html
X%%PORTDOCS%%%%DOCSDIR%%/comm_scan.html
X%%PORTDOCS%%%%DOCSDIR%%/conf_fprotd.html
X%%PORTDOCS%%%%DOCSDIR%%/conf_scanmail_bootup.html
X%%PORTDOCS%%%%DOCSDIR%%/d_scan_options.html
X%%PORTDOCS%%%%DOCSDIR%%/d_startup_options.html
X%%PORTDOCS%%%%DOCSDIR%%/daemon_scan.html
X%%PORTDOCS%%%%DOCSDIR%%/fprots.html
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%PORTDOCS%%%%DOCSDIR%%/inf_eicar.gif
X%%PORTDOCS%%%%DOCSDIR%%/info_options.html
X%%PORTDOCS%%%%DOCSDIR%%/inst_pro.html
X%%PORTDOCS%%%%DOCSDIR%%/loc_files.html
X%%PORTDOCS%%%%DOCSDIR%%/loglevel.html
X%%PORTDOCS%%%%DOCSDIR%%/macro_scanning_options.html
X%%PORTDOCS%%%%DOCSDIR%%/mailscanner.html
X%%PORTDOCS%%%%DOCSDIR%%/main_feat.html
X%%PORTDOCS%%%%DOCSDIR%%/man_updt.html
X%%PORTDOCS%%%%DOCSDIR%%/milter_scan.html
X%%PORTDOCS%%%%DOCSDIR%%/notusing_fprot.so.gif
X%%PORTDOCS%%%%DOCSDIR%%/per_scan.html
X%%PORTDOCS%%%%DOCSDIR%%/postfix_scan.html
X%%PORTDOCS%%%%DOCSDIR%%/prot_samba.html
X%%PORTDOCS%%%%DOCSDIR%%/qmail_scan.html
X%%PORTDOCS%%%%DOCSDIR%%/reporting_options.html
X%%PORTDOCS%%%%DOCSDIR%%/scan_with_mailscanner.html
X%%PORTDOCS%%%%DOCSDIR%%/scanning_options.html
X%%PORTDOCS%%%%DOCSDIR%%/screenshot.jpg
X%%PORTDOCS%%%%DOCSDIR%%/sys_req.html
X%%PORTDOCS%%%%DOCSDIR%%/test_eicar.html
X%%PORTDOCS%%%%DOCSDIR%%/test_inst.html
X%%PORTDOCS%%%%DOCSDIR%%/updater.html
X%%PORTDOCS%%%%DOCSDIR%%/updater_req.html
X%%PORTDOCS%%%%DOCSDIR%%/updt_macro.gif
X%%PORTDOCS%%%%DOCSDIR%%/updt_noneed.gif
X%%PORTDOCS%%%%DOCSDIR%%/updt_sign.gif
X%%PORTDOCS%%%%DOCSDIR%%/updt_signature.gif
X%%PORTDOCS%%%%DOCSDIR%%/using_fprot.so.gif
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at exec install -d -m 755 -o root -g wheel %D/f-prot/backup
X at dirrmtry f-prot/backup
X at dirrmtry f-prot/tools
X at dirrmtry f-prot
END-of-f-protd/pkg-plist
echo x - f-protd/files/fprotd.sh.in
sed 's/^X//' >f-protd/files/fprotd.sh.in << 'END-of-f-protd/files/fprotd.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: fprotd
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X#
X# Add the following to /etc/rc.conf[.local] to enable this service
X#
X# fprotd_enable="YES"
X#
X
Xprefix=%%PREFIX%%
X
X. /etc/rc.subr
X
Xname=fprotd
Xrcvar=`set_rcvar`
Xstart_precmd="fprotd_precmd"
Xcommand="${prefix}/f-prot/f-protd"
Xcommand_args="> /dev/null 2>&1"
X
Xrequired_files="/etc/f-prot.conf"
X
Xload_rc_config ${name}
X
X: ${fprotd_enable=NO}
X: ${fprotd_virus_defs=${prefix}/f-prot}
X
Xfprotd_precmd()
X{
X rc_flags="--background --defpath ${fprotd_virus_defs} ${fprotd_flags}"
X}
X
Xrun_rc_command "$1"
END-of-f-protd/files/fprotd.sh.in
echo x - f-protd/files/fprotd_scanmail.sh.in
sed 's/^X//' >f-protd/files/fprotd_scanmail.sh.in << 'END-of-f-protd/files/fprotd_scanmail.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: fprotd_scanmail
X# REQUIRE: fprotd
X# KEYWORD: shutdown
X#
X# Add the following to /etc/rc.conf[.local] to enable this service
X#
X# fprotd_scanmail_enable="YES"
X#
X
Xprefix=%%PREFIX%%
X
X. /etc/rc.subr
X
Xname=fprotd_scanmail
Xrcvar=`set_rcvar`
Xpidfile="/var/run/scanmail.pid"
Xcommand="${prefix}/f-prot/tools/scan-mail.pl"
Xcommand_args="> /dev/null 2>&1"
Xcommand_interpreter="/usr/bin/perl"
X
Xrequired_files="/etc/f-prot.conf"
X
Xload_rc_config ${name}
X
X: ${fprotd_scanmail_enable=NO}
X: ${fprotd_scanmail_flags="--daemon --milter inet:12200 at 127.0.0.1"}
X
Xrun_rc_command "$1"
END-of-f-protd/files/fprotd_scanmail.sh.in
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list