2000-09-22 00:40:21 +02:00
|
|
|
# New ports collection makefile for: uvscan
|
|
|
|
# Date created: 01 Sep 2000
|
|
|
|
# Whom: Kris Kennaway <kris@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= uvscan
|
2006-10-31 01:22:39 +01:00
|
|
|
PORTVERSION= 5.10e
|
2007-04-18 19:18:41 +02:00
|
|
|
PORTREVISION= 2
|
2000-09-22 00:40:21 +02:00
|
|
|
CATEGORIES= security
|
2006-10-31 01:22:39 +01:00
|
|
|
MASTER_SITES= http://download.nai.com/products/evaluation/virusscan/english/cmdline/bsd/v5.10/
|
|
|
|
DISTNAME= vbsd510e
|
2000-09-22 00:40:21 +02:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
2006-11-07 01:05:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Evaluation version of a DOS/Windows/Linux file virus scanner
|
2000-09-22 00:40:21 +02:00
|
|
|
|
2010-05-31 02:12:44 +02:00
|
|
|
BROKEN= Does not fetch
|
|
|
|
|
2006-05-16 17:21:37 +02:00
|
|
|
# misc/compat3x is forbidden, but with FreeBSD 5.1 or later you can use
|
|
|
|
# libmap.conf(5) to map against current libc. This may affect the system
|
|
|
|
# security. Use at your own risk.
|
|
|
|
.include <bsd.port.pre.mk>
|
2006-07-14 21:39:12 +02:00
|
|
|
.if ${ARCH} == "amd64"
|
2006-12-01 00:44:02 +01:00
|
|
|
BROKEN= Incomplete pkg-plist
|
2006-07-14 21:39:12 +02:00
|
|
|
WITHOUT_COMPAT3=1
|
|
|
|
UVSCAN_LIB32= 32
|
|
|
|
USE_LDCONFIG32= ${PREFIX}/lib32
|
|
|
|
LDCONFIG= /sbin/ldconfig -32
|
|
|
|
.else
|
|
|
|
UVSCAN_LIB32=
|
2007-04-18 19:18:41 +02:00
|
|
|
USE_LDCONFIG= YES
|
|
|
|
|
2006-07-14 21:39:12 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-16 17:21:37 +02:00
|
|
|
.if defined(WITHOUT_COMPAT3)
|
|
|
|
.else
|
2001-08-14 19:00:09 +02:00
|
|
|
LIB_DEPENDS+= c.3:${PORTSDIR}/misc/compat3x
|
2006-05-16 17:21:37 +02:00
|
|
|
.endif
|
2004-11-20 20:38:28 +01:00
|
|
|
LIB_DEPENDS+= m.2:${PORTSDIR}/misc/compat4x
|
|
|
|
|
2006-07-14 21:39:12 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2004-11-20 20:38:28 +01:00
|
|
|
NO_BUILD= YES
|
|
|
|
NO_WRKSUBDIR= YES
|
2000-09-22 00:40:21 +02:00
|
|
|
|
|
|
|
LICENSE= shareware
|
|
|
|
RESTRICTED= "restrictive 30 day evaluation license"
|
|
|
|
|
2004-11-21 17:28:34 +01:00
|
|
|
MAN1= uvscan.1
|
|
|
|
|
2006-10-31 01:22:39 +01:00
|
|
|
PORTDOCS= e5100upg.pdf readme.txt
|
2004-11-21 17:28:34 +01:00
|
|
|
|
|
|
|
PROGFILES= contact.txt license.dat license.txt messages.dat \
|
|
|
|
signlic.txt
|
2004-11-20 20:38:28 +01:00
|
|
|
|
2006-07-14 21:39:12 +02:00
|
|
|
PLIST_SUB+= UVSCAN_LIB32=${UVSCAN_LIB32}
|
|
|
|
|
2000-09-22 00:40:21 +02:00
|
|
|
do-configure:
|
|
|
|
${SED} <${FILESDIR}/uvscan.sh >${WRKSRC}/uvscan.sh \
|
|
|
|
-e 's:@@PREFIX@@:${PREFIX}:g'
|
2006-05-09 14:08:51 +02:00
|
|
|
${SED} -e 's:@PREFIX@:${PREFIX}:g' \
|
|
|
|
<${FILESDIR}/update_dat >${WRKDIR}/update_dat
|
2000-09-22 00:40:21 +02:00
|
|
|
|
|
|
|
do-install:
|
2006-05-09 14:08:51 +02:00
|
|
|
${MKDIR} ${PREFIX}/libexec/uvscan
|
2000-09-22 00:40:21 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/uvscan ${PREFIX}/libexec/uvscan
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/uvscan.sh ${PREFIX}/bin/uvscan
|
2004-01-19 13:36:20 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/uvscan_secure ${PREFIX}/bin
|
2006-07-14 21:39:12 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libbsdfv.so.4 ${PREFIX}/lib${UVSCAN_LIB32}/libbsdfv.so.4
|
2004-11-21 17:28:34 +01:00
|
|
|
.for filename in ${PROGFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${filename} ${PREFIX}/libexec/uvscan
|
|
|
|
.endfor
|
|
|
|
.for filename in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${filename} ${MANPREFIX}/man/man1/${filename}
|
2000-09-22 00:40:21 +02:00
|
|
|
.endfor
|
2004-11-20 20:38:28 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-11-21 17:28:34 +01:00
|
|
|
@if ! [ -d ${DOCSDIR} ]; then ${MKDIR} ${DOCSDIR}; fi
|
|
|
|
.for filename in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR}
|
2000-09-22 00:40:21 +02:00
|
|
|
.endfor
|
2004-11-20 20:38:28 +01:00
|
|
|
.endif
|
2006-05-09 14:08:51 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/update_dat ${PREFIX}/sbin
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-09-22 00:40:21 +02:00
|
|
|
|
2004-11-21 17:28:34 +01:00
|
|
|
post-install:
|
2006-07-14 21:39:12 +02:00
|
|
|
${LN} -sf ${PREFIX}/lib${UVSCAN_LIB32}/libbsdfv.so.4 ${PREFIX}/lib${UVSCAN_LIB32}/libbsdfv.so
|
2009-01-06 18:59:31 +01:00
|
|
|
.if defined(WITHOUT_COMPAT3)
|
2006-05-16 17:21:37 +02:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${ECHO_CMD} "This may affect the system security. Use at your own risk."
|
2006-07-14 21:39:12 +02:00
|
|
|
@${ECHO_CMD} "You need to add the following two lines to your libmap${UVSCAN_LIB32}.conf(5):"
|
2006-05-16 17:21:37 +02:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${ECHO_CMD} "[/usr/local/libexec/uvscan/uvscan]"
|
2006-07-14 21:39:12 +02:00
|
|
|
@${ECHO_CMD} "libc.so.3 libc.so.4"
|
2006-05-16 17:21:37 +02:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
.endif
|
2006-10-31 01:22:39 +01:00
|
|
|
.if !defined (PACKAGE_BUILDING)
|
2006-05-16 17:21:37 +02:00
|
|
|
@${ECHO_CMD} "Trying to fetch the current DAT file"
|
2006-05-09 14:08:51 +02:00
|
|
|
${SH} ${PREFIX}/sbin/update_dat
|
2006-10-31 01:22:39 +01:00
|
|
|
.endif
|
2004-11-21 17:28:34 +01:00
|
|
|
|
2006-05-16 17:21:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|