summaryrefslogtreecommitdiff
path: root/security/uvscan/Makefile
blob: a091c73022d90a906caaac16746cef90fb098037 (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
# $NetBSD: Makefile,v 1.48 2012/10/23 18:17:01 asau 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/system_security/servers/virusscan_command_line_scanner_windows_unix.html
COMMENT=		Evaluation version of a DOS/Windows file virus scanner
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}

CONFLICTS=		uvscan-dat-[0-9]*

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 ${EGDATDIR} ${DOCDIR} \
			${UVSCANDIR}

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 ${DESTDIR}${PREFIX}/sbin/update_dat
	${INSTALL_MAN} ${WRKSRC}/uvscan.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_SCRIPT} ${WRKSRC}/uvscan ${DESTDIR}${UVSCANDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/uvscan.sh ${DESTDIR}${PREFIX}/bin/uvscan
	${INSTALL_DATA} ${WRKSRC}/liblnxfv.so.4 ${DESTDIR}${UVSCANDIR}
	${LN} -s liblnxfv.so.4 ${DESTDIR}${UVSCANDIR}/liblnxfv.so
	for file in license.dat messages.dat; do			\
		${INSTALL_DATA} ${WRKSRC}/$${file} ${DESTDIR}${UVSCANDIR};	\
	done
	for file in ${DATFILES}; do					\
		if [ -f ${WRKSRC}/$${file} ]; then			\
			${INSTALL_DATA} ${WRKSRC}/$${file} ${DESTDIR}${EGDATDIR};	\
		fi;							\
	done
	for file in contact.txt e5100upg.pdf license.txt ; do		\
		${INSTALL_DATA} ${WRKSRC}/$${file} ${DESTDIR}${DOCDIR};		\
	done

.include "../../mk/bsd.pkg.mk"