diff options
author | taca <taca> | 2009-09-22 17:38:33 +0000 |
---|---|---|
committer | taca <taca> | 2009-09-22 17:38:33 +0000 |
commit | 83d0c950046d32a4052b49696b88d3e2c41ae27b (patch) | |
tree | 22bed0aeba77d700809b75eaa8d716b812b3a278 /security/f-prot-antivirus6 | |
parent | 32ab8e3b200dbee65a7202900ceda797a30c7d80 (diff) | |
download | pkgsrc-83d0c950046d32a4052b49696b88d3e2c41ae27b.tar.gz |
Importing common files for F-PROT Antivirus version 6.x.
F-PROT Antivirus is commercial product of FRISK Software International Inc.
Diffstat (limited to 'security/f-prot-antivirus6')
-rw-r--r-- | security/f-prot-antivirus6/DEINSTALL | 33 | ||||
-rw-r--r-- | security/f-prot-antivirus6/INSTALL | 23 | ||||
-rw-r--r-- | security/f-prot-antivirus6/MESSAGE | 9 | ||||
-rw-r--r-- | security/f-prot-antivirus6/Makefile.common | 128 | ||||
-rw-r--r-- | security/f-prot-antivirus6/PLIST | 79 | ||||
-rw-r--r-- | security/f-prot-antivirus6/f-prot.mk | 7 | ||||
-rw-r--r-- | security/f-prot-antivirus6/files/fpmon.sh | 24 | ||||
-rw-r--r-- | security/f-prot-antivirus6/files/fpscand.sh | 24 |
8 files changed, 327 insertions, 0 deletions
diff --git a/security/f-prot-antivirus6/DEINSTALL b/security/f-prot-antivirus6/DEINSTALL new file mode 100644 index 00000000000..88925dcb1a3 --- /dev/null +++ b/security/f-prot-antivirus6/DEINSTALL @@ -0,0 +1,33 @@ +#!/bin/sh +# $NetBSD: DEINSTALL,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ +# +FP_DATADIR="${PREFIX}/@DATADIR@" +FP_EGDIR="${PREFIX}/@EGDIR@" +FP_FPROTDIR="${PREFIX}/@FPROTDIR@" + +FP_DEF_FILE="@FP_DATA@" + +fp_deinstall_info() { + ${ECHO} "===========================================================================" + ${ECHO} "The following directories are no longer being used by" + ${ECHO} "${PKGNAME}, and it can be removed if no other" + ${ECHO} "packages are using it or you will not plan to install" + ${ECHO} "newer version of this package:" + ${ECHO} " ${FP_FPROTDIR}" +} + +case ${STAGE} in +DEINSTALL) + if [ -f ${FP_EGDIR}/license.key -a -f ${PKG_SYSCONFDIR}/license.key ] && ${CMP} -s ${FP_EGDIR}/license.key ${PKG_SYSCONFDIR}/license.key; then + ${RM} -f ${PKG_SYSCONFDIR}/license.key + fi + if cmp -s "${FP_DATADIR}/${FP_DEF_FILE}" "${FP_FPROTDIR}/${FP_DEF_FILE}"; then + ${RM} -f "${FP_FPROTDIR}/${FP_DEF_FILE}" + fi + ;; +POST-DEINSTALL) + if [ -d ${FP_FPROTDIR} ]; then + fp_deinstall_info + fi +esac + diff --git a/security/f-prot-antivirus6/INSTALL b/security/f-prot-antivirus6/INSTALL new file mode 100644 index 00000000000..44e9ea9b8c4 --- /dev/null +++ b/security/f-prot-antivirus6/INSTALL @@ -0,0 +1,23 @@ +#!/bin/sh +# $NetBSD: INSTALL,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ +# +FP_DATADIR="${PREFIX}/@DATADIR@" +FP_FPROTDIR="${PREFIX}/@FPROTDIR@" +FP_EGDIR="${PREFIX}/@EGDIR@" +FP_VARDIR="@VARDIR@" + +FP_DEF_FILE="@FP_DATA@" + +case ${STAGE} in +POST-INSTALL) + if [ ! -f "${FP_FPROTDIR}/${FP_DEF_FILE}" ]; then + ${ECHO} "Install default signature file from ${FP_DATADIR}/${FP_DEF_FILE}." + ${RM} -f "${FP_FPROTDIR}/${FP_DEF_FILE}" + ${CP} -p "${FP_DATADIR}/${FP_DEF_FILE}" "${FP_FPROTDIR}" + else + ${ECHO} "Use existing signature file: ${FP_FPROTDIR}/${FP_DEF_FILE}" + fi + ${ECHO} + ${LN} -fs ${PKG_SYSCONFDIR}/f-prot.conf /etc + ;; +esac diff --git a/security/f-prot-antivirus6/MESSAGE b/security/f-prot-antivirus6/MESSAGE new file mode 100644 index 00000000000..5ff087f6267 --- /dev/null +++ b/security/f-prot-antivirus6/MESSAGE @@ -0,0 +1,9 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ + +Put your license key into ${PKG_SYSCONFDIR}/license.key as following +format: + +FPROT_LICENSE_KEY="your-license-key" + +=========================================================================== diff --git a/security/f-prot-antivirus6/Makefile.common b/security/f-prot-antivirus6/Makefile.common new file mode 100644 index 00000000000..e598887caef --- /dev/null +++ b/security/f-prot-antivirus6/Makefile.common @@ -0,0 +1,128 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ +# +# used by security/f-prot-antivirus6-ms-bin/Makefile +# used by security/f-prot-antivirus6-fs-bin/Makefile +# used by security/f-prot-antivirus6-ws-bin/Makefile +# +ONLY_FOR_PLATFORM= NetBSD-*-i386 +CONFLICTS+= f-prot-antivirus6-{fs,ms,ws} fprot-workstation-bin-* + +VERSION= 6.0.1 + +# ws, ms, fs +FP_TYPE?= ws +FP_ARCH?= ${MACHINE_ARCH} +FP_OPSYS?= ${OPSYS} + +FP_DISTNAME= fp-${FP_OPSYS}-${FP_ARCH}-${FP_TYPE}-${VERSION} + +RESTRICTED= "Commercial product" +NO_SRC_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_FTP= ${RESTRICTED} +NO_SRC_ON_FTP= ${RESTRICTED} +DOWNLOAD= http://www.f-prot.com/download/ +LICENSE= f-prot-antivirus-license + +WRKSRC?= ${WRKDIR}/f-prot +NO_BUILD= yes +NO_CHECKSUM= yes +USE_TOOLS+= pax + +DATA= antivir.def +DOCS= README doc/CHANGES doc/LICENSE doc/LICENSE-FPAV \ + doc/LICENSES-others + +CONF_FILES+= ${EGDIR}/f-prot.conf ${PKG_SYSCONFDIR}/f-prot.conf + +FP_PKGDIR= ${.CURDIR}/../f-prot-antivirus6 + +DEINSTALL_TEMPLATES= ${FP_PKGDIR}/DEINSTALL +INSTALL_TEMPLATES= ${FP_PKGDIR}/INSTALL +MESSAGE_SRC= ${FP_PKGDIR}/MESSAGE +PLIST_SRC= ${FP_PKGDIR}/PLIST + +.include "../../mk/bsd.prefs.mk" + +PKG_SYSCONFSUBDIR?= f-prot + +FILES_SUBST+= DATADIR=${DATADIR} FPROTDIR=${FPROTDIR} \ + FP_DATA=${DATA} EGDIR=${EGDIR} + +MESSAGE_SUBST+= FPROTDIR="${FPROTDIR}" + +PLIST_SUBST+= DATADIR="${DATADIR}" DOCDIR="${DOCDIR}" \ + FPROTDIR="${FPROTDIR}" EGDIR="${EGDIR}" + +INSTALLATION_DIRS?= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \ + ${PKGMANDIR}/man8 sbin ${DATADIR} ${DOCDIR}/html \ + ${EGDIR} ${FPROTDIR} + +PLIST_VARS+= license fpscand fpso scanmail +RCD_SCRIPT_SRC.fpscand= ${FP_PKGDIR}/files/fpscand.sh + +.if defined(RCD_SCRIPTS) && !empty(RCD_SCRIPTS:Mfpscand) +PLIST.fpscand= yes +.endif + +.if defined(RCD_SCRIPTS) && !empty(RCD_SCRIPTS:Mscanmail) +PLIST.scanmail= yes +.endif + +.if !empty(MACHINE_PLATFORM:MLinux-*-i386) +PLIST.fpso= yes +.endif + +.if exists(license.key) +CONF_FILES+= ${EGDIR}/license.key ${PKG_SYSCONFDIR}/license.key +PLIST.license= # defined +.endif + +INTERACTIVE_STAGE= fetch +_FETCH_MESSAGE= \ + ${ECHO} "======================================================================"; \ + ${ECHO} ; \ + ${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing"; \ + ${ECHO} " ${COMMENT} must be fetched into:"; \ + ${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \ + ${ECHO} " from"; \ + ${ECHO} " ${DOWNLOAD}."; \ + ${ECHO} " If you install official product, you need your customer"; \ + ${ECHO} " number and get key code from the site."; \ + ${ECHO} ; \ + ${ECHO} "======================================================================" + + +install-common: + ${INSTALL_PROGRAM} ${WRKSRC}/fpscan ${DESTDIR}${PREFIX}/${FPROTDIR} + cd ${DESTDIR}${PREFIX}/bin; ${LN} -fs ${PREFIX}/${FPROTDIR}/fpscan . + ${INSTALL_MAN} ${WRKSRC}/doc/man/fpscan.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/fpupdate ${DESTDIR}${PREFIX}/${FPROTDIR} + ${INSTALL_DATA} ${WRKSRC}/product.data ${DESTDIR}${PREFIX}/${FPROTDIR} + ${INSTALL_DATA} ${WRKSRC}/f-prot.conf.default \ + ${DESTDIR}${PREFIX}/${EGDIR}/f-prot.conf + ${INSTALL_DATA} ${WRKSRC}/${DATA} ${DESTDIR}${PREFIX}/${DATADIR} + ${INSTALL_MAN} ${WRKSRC}/doc/man/f-prot.conf.5 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 + ${INSTALL_MAN} ${WRKSRC}/doc/man/fpupdate.8 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DESTDIR}${PREFIX}/${DOCDIR} + cd ${WRKSRC}/doc/html; pax -rw . ${DESTDIR}${PREFIX}/${DOCDIR}/html + +install-fpscand: + ${INSTALL_PROGRAM} ${WRKSRC}/fpscand ${DESTDIR}${PREFIX}/${FPROTDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/man/fpscand.8 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 +.if defined(PLIST.fpso) && ${PLIST.fpso} == "yes" + ${INSTALL_PROGRAM} ${WRKSRC}/fstools/fpmon \ + ${DESTDIR}${PREFIX}/${FPROTDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/fstools/fp.so \ + ${DESTDIR}${PREFIX}/${FPROTDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/man/fpmon.8 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_MAN} ${WRKSRC}/doc/man/fp.so.8 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 +.endif + +.include "../../security/f-prot-antivirus6/f-prot.mk" diff --git a/security/f-prot-antivirus6/PLIST b/security/f-prot-antivirus6/PLIST new file mode 100644 index 00000000000..54580c2f72a --- /dev/null +++ b/security/f-prot-antivirus6/PLIST @@ -0,0 +1,79 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ +bin/fpscan +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/Anomy/HTMLCleaner.pm +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/Anomy/Log.pm +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/Anomy/MIMEStream.pm +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/Anomy/Sanitizer/FProt/Client.pm +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/Anomy/Sanitizer/FileTypes.pm +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/Anomy/Sanitizer.pm +${PLIST.scanmail}${PERL5_SUB_INSTALLVENDORLIB}/FProt/Client.pm +${PLIST.scanmail}${FPROTDIR}/fp-milter +${PLIST.scanmail}${FPROTDIR}/fp-qmail +${PLIST.fpso}${FPROTDIR}/fp.so +${PLIST.fpso}${FPROTDIR}/fpmon +${FPROTDIR}/fpscan +${PLIST.fpscand}${FPROTDIR}/fpscand +${FPROTDIR}/fpupdate +${FPROTDIR}/product.data +${PLIST.scanmail}${FPROTDIR}/scan-mail.pl +man/man1/fpscan.1 +man/man5/f-prot.conf.5 +${PLIST.scanmail}man/man8/fp-milter.8 +${PLIST.scanmail}man/man8/fp-qmail.8 +${PLIST.fpso}man/man8/fp.so.8 +${PLIST.fpso}man/man8/fpmon.8 +${PLIST.fpscand}man/man8/fpscand.8 +man/man8/fpupdate.8 +${PLIST.scanmail}man/man8/scan-mail.pl.8 +share/doc/f-prot/CHANGES +share/doc/f-prot/LICENSE +share/doc/f-prot/LICENSE-FPAV +share/doc/f-prot/LICENSES-others +share/doc/f-prot/README +share/doc/f-prot/html/add_info.html +share/doc/f-prot/html/appendix_a.html +share/doc/f-prot/html/appendix_b.html +share/doc/f-prot/html/appendix_c.html +share/doc/f-prot/html/auto_updt.html +share/doc/f-prot/html/chmstyle.css +share/doc/f-prot/html/conf_scanmail_bootup.html +share/doc/f-prot/html/fpmon.html +share/doc/f-prot/html/fpmon_conf.html +share/doc/f-prot/html/fpmon_options.html +share/doc/f-prot/html/fprots.html +share/doc/f-prot/html/fpscan.html +share/doc/f-prot/html/fpscan_options.html +share/doc/f-prot/html/fpscand.html +share/doc/f-prot/html/fpscand_conf.html +share/doc/f-prot/html/fpscand_options.html +share/doc/f-prot/html/fpupdate_options.html +share/doc/f-prot/html/images/arrow_left.gif +share/doc/f-prot/html/images/arrow_right.gif +share/doc/f-prot/html/images/banner.gif +share/doc/f-prot/html/images/dazuko.gif +share/doc/f-prot/html/images/fpupdate.gif +share/doc/f-prot/html/images/notusing_fprot_so_v6.gif +share/doc/f-prot/html/images/test_eicar.gif +share/doc/f-prot/html/images/using_fprot_so_v6.gif +share/doc/f-prot/html/index.html +share/doc/f-prot/html/inst_pro.html +share/doc/f-prot/html/loc_files.html +share/doc/f-prot/html/loglevel.html +share/doc/f-prot/html/mailscanner.html +share/doc/f-prot/html/main_feat.html +share/doc/f-prot/html/man_updt.html +share/doc/f-prot/html/milter_scan.html +share/doc/f-prot/html/per_scan.html +share/doc/f-prot/html/postfix_scan.html +share/doc/f-prot/html/prot_samba.html +share/doc/f-prot/html/qmail_scan.html +share/doc/f-prot/html/scan_with_mailscanner.html +share/doc/f-prot/html/sys_req.html +share/doc/f-prot/html/test_eicar.html +share/doc/f-prot/html/test_inst.html +share/doc/f-prot/html/updater.html +${EGDIR}/f-prot.conf +${PLIST.fpscand}share/examples/rc.d/fpscand +${PLIST.scanmail}share/examples/rc.d/scanmail +${PLIST.license}${EGDIR}/license.key +${DATADIR}/antivir.def diff --git a/security/f-prot-antivirus6/f-prot.mk b/security/f-prot-antivirus6/f-prot.mk new file mode 100644 index 00000000000..d97b09484d7 --- /dev/null +++ b/security/f-prot-antivirus6/f-prot.mk @@ -0,0 +1,7 @@ +# $NetBSD: f-prot.mk,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ +# + +DATADIR= share/f-prot +DOCDIR= share/doc/f-prot +EGDIR= share/examples/f-prot +FPROTDIR= f-prot diff --git a/security/f-prot-antivirus6/files/fpmon.sh b/security/f-prot-antivirus6/files/fpmon.sh new file mode 100644 index 00000000000..ea82731b7a9 --- /dev/null +++ b/security/f-prot-antivirus6/files/fpmon.sh @@ -0,0 +1,24 @@ +#!@RCD_SCRIPTS_SHELL@ +# $NetBSD: fpmon.sh,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ + +# PROVIDE: fpmon +# REQUIRE: DAEMON fpscand + +. /etc/rc.subr + +name="fpmon" +rcvar=$name +conf="@PKG_SYSCONFDIR@/f-prot.conf" +command="@PREFIX@/@FPROTDIR@/fpmon" +required_files="${conf} ${command}" +start_cmd="fpmon_start" + +fpmon_start() +{ + if [ -x ${command} ]; then + ${command} ${rc_flags} + fi +} + +load_rc_config $name +run_rc_command "$1" diff --git a/security/f-prot-antivirus6/files/fpscand.sh b/security/f-prot-antivirus6/files/fpscand.sh new file mode 100644 index 00000000000..f97d6a6ebc6 --- /dev/null +++ b/security/f-prot-antivirus6/files/fpscand.sh @@ -0,0 +1,24 @@ +#!@RCD_SCRIPTS_SHELL@ +# $NetBSD: fpscand.sh,v 1.1.1.1 2009/09/22 17:38:33 taca Exp $ + +# PROVIDE: fpscand +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="fpscand" +rcvar=$name +conf="@PKG_SYSCONFDIR@/f-prot.conf" +command="@PREFIX@/@FPROTDIR@/fpscand" +required_files="${conf} ${command}" +start_cmd="fpscand_start" + +fpscand_start() +{ + if [ -x ${command} ]; then + ${command} ${rc_flags} + fi +} + +load_rc_config $name +run_rc_command "$1" |