d7f69e47ce
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set to "YES". This enforces the requirement that bsd.pkg.install.mk be included at the end of a package Makefile. Idea suggested by Julio M. Merino Vidal <jmmv at menta.net>.
78 lines
2.5 KiB
Makefile
78 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2003/01/28 22:04:08 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
|
|
|
|
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
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386
|
|
CHECK_SHLIBS= NO
|
|
|
|
LICENSE= shareware
|
|
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}
|
|
|
|
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
|
|
|
|
USE_PKGINSTALL= yes
|
|
FILES_SUBST+= UVSCANDIR=${UVSCANDIR:Q}
|
|
FILES_SUBST+= DATFILES=${DATFILES:Q}
|
|
|
|
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-build:
|
|
@${SED} ${FILES_SUBST_SED} \
|
|
${FILESDIR}/update_dat.sh > ${WRKDIR}/update_dat
|
|
|
|
do-install:
|
|
${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
|
|
for file in liblnxfv.so.4 liblnxfv.so; do \
|
|
${RM} -f ${PREFIX}/emul/linux/usr/local/lib/$${file}; \
|
|
${LN} -s ${UVSCANDIR}/$${file} \
|
|
${PREFIX}/emul/linux/usr/local/lib; \
|
|
done
|
|
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 "../../emulators/suse_linux/Makefile.application"
|