blob: 5a8ee6f57b23c9550fe4aa342d9cb5209c6810e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# $NetBSD: Makefile,v 1.44 2007/09/04 19:43:15 jlam Exp $
DISTNAME= vlp4510e
PKGNAME= uvscan-5.10
PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://download.nai.com/products/evaluation/virusscan/english/cmdline/linux/v5.10/
EXTRACT_SUFX= .tar.Z
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mcafee.com/us/enterprise/products/anti_virus/file_servers_desktops/virusscan_command_line_scanner_windows_unix.html
COMMENT= Evaluation version of a DOS/Windows file virus scanner
CONFLICTS= uvscan-dat-[0-9]*
LICENSE= uvscan-license
RESTRICTED= restrictive 30 day evaluation license
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= compat
WRKSRC= ${WRKDIR}
BUILD_DIRS= # empty
DOCDIR= ${PREFIX}/share/doc/uvscan
EGDATDIR= ${PREFIX}/share/examples/uvscan
UVSCANDIR= ${PREFIX}/libexec/uvscan
DATFILES= clean.dat internet.dat names.dat scan.dat pkgdesc.ini
FILES_SUBST+= UVSCANDIR=${UVSCANDIR:Q}
FILES_SUBST+= DATFILES=${DATFILES:Q}
CONF_FILES= ${EGDATDIR}/clean.dat ${UVSCANDIR}/clean.dat
CONF_FILES+= ${EGDATDIR}/names.dat ${UVSCANDIR}/names.dat
CONF_FILES+= ${EGDATDIR}/scan.dat ${UVSCANDIR}/scan.dat
REQD_DIRS= ${UVSCANDIR}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 sbin
USE_TOOLS+= gtar:run
SUBST_CLASSES+= paths
SUBST_FILES.paths= update_dat.sh uvscan.sh
SUBST_VARS.paths= AWK BASENAME CP DATFILES ECHO GTAR MKDIR MV \
PREFIX RM SED UVSCANDIR
SUBST_STAGE.paths= post-patch
post-extract:
${CP} ${FILESDIR}/update_dat.sh ${WRKSRC}/update_dat.sh
${CP} ${FILESDIR}/uvscan.sh ${WRKSRC}/uvscan.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/update_dat.sh ${PREFIX}/sbin/update_dat
${INSTALL_MAN} ${WRKSRC}/uvscan.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_SCRIPT} ${WRKSRC}/uvscan ${UVSCANDIR}
${INSTALL_SCRIPT} ${WRKSRC}/uvscan.sh ${PREFIX}/bin/uvscan
${INSTALL_DATA} ${WRKSRC}/liblnxfv.so.4 ${UVSCANDIR}
${LN} -s liblnxfv.so.4 ${UVSCANDIR}/liblnxfv.so
for file in license.dat messages.dat; do \
${INSTALL_DATA} ${WRKSRC}/$${file} ${UVSCANDIR}; \
done
${INSTALL_DATA_DIR} ${EGDATDIR}
for file in ${DATFILES}; do \
if [ -f ${WRKSRC}/$${file} ]; then \
${INSTALL_DATA} ${WRKSRC}/$${file} ${EGDATDIR}; \
fi; \
done
${INSTALL_DATA_DIR} ${DOCDIR}
for file in contact.txt e5100upg.pdf license.txt ; do \
${INSTALL_DATA} ${WRKSRC}/$${file} ${DOCDIR}; \
done
.include "../../mk/bsd.pkg.mk"
|