summaryrefslogtreecommitdiff
path: root/security/uvscan/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2002-08-07 05:42:12 +0000
committerjlam <jlam>2002-08-07 05:42:12 +0000
commit0ee731f839c318bb9b323851bd98eb3015ab9782 (patch)
tree9ee40362de39f23fe0c1595bb669367f854f64a0 /security/uvscan/Makefile
parentbf5631248bc6fe06c3ba056ed8c5558c68b9cd7a (diff)
downloadpkgsrc-0ee731f839c318bb9b323851bd98eb3015ab9782.tar.gz
Merge security/uvscan-dat into security/uvscan. The uvscan-dat package is
out-of-date very frequently, and it's sole purpose seems to be to provide the uvscan package with the update_dat script so that uvscan can keep up-to-date with the latest virus definitions. A MESSAGE file has been added to security/uvscan that recommends running "update_dat" to update the virus definitions database to the most recent version after installation. The update_dat script has also been rewritten to allow the new syntax "update -f <DATFILE>" to update from an already- downloaded DATFILE, so users will still be able to do bulk downloads to removable media on a machine with a fat connection and be able to compile and install a usable uvscan package on another machine. Bump the PKGREVISION on uvscan to 1 and mark the CONFLICT with the obsolete uvscan-dat packages.
Diffstat (limited to 'security/uvscan/Makefile')
-rw-r--r--security/uvscan/Makefile37
1 files changed, 29 insertions, 8 deletions
diff --git a/security/uvscan/Makefile b/security/uvscan/Makefile
index 3c44260326c..7e51cc60bb9 100644
--- a/security/uvscan/Makefile
+++ b/security/uvscan/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2002/04/04 12:29:50 tron Exp $
+# $NetBSD: Makefile,v 1.14 2002/08/07 05:42:13 jlam Exp $
DISTNAME= vlnx416e
PKGNAME= uvscan-4.16.0
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/evaluation/virusscan/english/cmdline/linux/version_4.16/
EXTRACT_SUFX= .tar.Z
@@ -10,11 +11,11 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.mcafeeb2b.com/products/virusscan/default.asp
COMMENT= evaluation version of a DOS/Windows file virus scanner
+CONFLICTS= uvscan-dat-[0-9]*
+
DEPENDS+= suse_compat>=6.1:../../emulators/${SUSE_DIR_PREFIX}_compat
-DEPENDS+= uvscan-dat>=4171:../../security/uvscan-dat
ONLY_FOR_PLATFORM= NetBSD-*-i386
-NO_BUILD= YES
CHECK_SHLIBS= NO
LICENSE= shareware
@@ -26,18 +27,32 @@ NO_SRC_ON_CDROM= ${RESTRICTED}
WRKSRC= ${WRKDIR}
DOCDIR= ${PREFIX}/share/doc/uvscan
+DATDIR= ${PREFIX}/share/uvscan
UVSCANDIR= ${PREFIX}/libexec/uvscan
+DATFILES= clean.dat internet.dat names.dat scan.dat readme.txt
+
+FILES_SUBST+= UVSCANDIR=${UVSCANDIR:Q}
+FILES_SUBST+= DATFILES=${DATFILES:Q}
+
+DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
+SUPPORT_FILES= ${DATDIR}/clean.dat ${UVSCANDIR}/clean.dat
+SUPPORT_FILES+= ${DATDIR}/names.dat ${UVSCANDIR}/names.dat
+SUPPORT_FILES+= ${DATDIR}/scan.dat ${UVSCANDIR}/scan.dat
+SUPPORT_FILES+= ${DATDIR}/readme.txt ${UVSCANDIR}/readme.txt
+OWN_DIRS= ${UVSCANDIR}
-do-configure:
- ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
- ${FILESDIR}/uvscan.sh > ${WRKDIR}/uvscan.sh
+do-build:
+ @${SED} ${FILES_SUBST_SED} \
+ ${FILESDIR}/update_dat.sh > ${WRKDIR}/update_dat
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/uvscan.sh ${PREFIX}/bin/uvscan
+ ${INSTALL_SCRIPT} ${WRKDIR}/update_dat ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/uvscan.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM_DIR} ${UVSCANDIR}
${INSTALL_SCRIPT} ${WRKSRC}/uvscan ${UVSCANDIR}
+ ${RM} -f ${PREFIX}/bin/uvscan
+ ${LN} -sf ../${UVSCANDIR:S/${PREFIX}\///}/uvscan ${PREFIX}/bin/uvscan
${INSTALL_DATA} ${WRKSRC}/liblnxfv.so.4 ${UVSCANDIR}
${RM} -f ${UVSCANDIR}/liblnxfv.so
${LN} -s liblnxfv.so.4 ${UVSCANDIR}/liblnxfv.so
@@ -49,10 +64,16 @@ do-install:
for file in license.dat messages.dat; do \
${INSTALL_DATA} ${WRKSRC}/$${file} ${UVSCANDIR}; \
done
+ ${INSTALL_DATA_DIR} ${DATDIR}
+ for file in ${DATFILES}; do \
+ if [ -f ${WRKSRC}/$${file} ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/$${file} ${DATDIR}; \
+ fi; \
+ done
${INSTALL_DATA_DIR} ${DOCDIR}
for file in contact.txt license.txt unxadmin.pdf; do \
${INSTALL_DATA} ${WRKSRC}/$${file} ${DOCDIR}; \
done
+.include "../../mk/bsd.pkg.install.mk"
.include "../../emulators/suse_linux/Makefile.application"
-