2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2006/02/05 23:10:43 joerg Exp $
|
2004-01-07 19:47:00 +01:00
|
|
|
#
|
|
|
|
|
2004-04-17 05:57:33 +02:00
|
|
|
DISTNAME= #defined
|
2006-01-26 05:48:26 +01:00
|
|
|
PKGNAME= fprot-workstation-bin-4.6.5
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2004-01-07 19:47:00 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
|
|
|
|
MAINTAINER= ben@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.f-prot.com/products/home_use/bsd/
|
|
|
|
COMMENT= F-prot antivirus for home users
|
|
|
|
|
|
|
|
DEPENDS+= p5-libwww>=5.69:../../www/p5-libwww
|
2004-03-15 16:08:41 +01:00
|
|
|
DEPENDS+= unzip-[0-9]*:../../archivers/unzip
|
2004-01-07 19:47:00 +01:00
|
|
|
|
2004-01-08 00:10:17 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-10-13 22:07:55 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 SunOS-*-sparc
|
2004-01-07 19:47:00 +01:00
|
|
|
RESTRICTED= "Redistribution not permitted"
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
LICENSE= fprot-workstation-license
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/f-prot
|
2004-01-07 19:47:00 +01:00
|
|
|
NO_BUILD= yes
|
2005-07-16 21:10:37 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2004-05-13 20:48:32 +02:00
|
|
|
|
|
|
|
DATDIR= ${PREFIX}/share/fprot-workstation-bin
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/fprot-workstation-bin
|
|
|
|
FPDIR= ${PREFIX}/libexec/fprot-workstation-bin
|
2005-08-19 20:12:36 +02:00
|
|
|
CONF_FILES= ${DATDIR}/MACRO.DEF ${FPDIR}/MACRO.DEF
|
|
|
|
CONF_FILES+= ${DATDIR}/SIGN.DEF ${FPDIR}/SIGN.DEF
|
|
|
|
CONF_FILES+= ${DATDIR}/SIGN2.DEF ${FPDIR}/SIGN2.DEF
|
2004-05-13 20:48:32 +02:00
|
|
|
OWN_DIRS= ${FPDIR}
|
2004-01-07 19:47:00 +01:00
|
|
|
|
2004-04-17 05:57:33 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-10-13 22:11:16 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
MASTER_SITES= ftp://ftp.f-prot.com/pub/bsd/
|
|
|
|
DISTNAME= fp-netbsd-ws-${PKGVERSION}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
MASTER_SITES= ftp://ftp.f-prot.com/pub/linux/
|
|
|
|
DISTNAME= fp-linux-ws-${PKGVERSION}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
2004-10-13 22:07:55 +02:00
|
|
|
MASTER_SITES= ftp://ftp.f-prot.com/pub/solaris/
|
|
|
|
DISTNAME= fp-solaris-sparc-ws-${PKGVERSION}
|
2004-10-13 22:11:16 +02:00
|
|
|
.endif
|
2004-04-17 05:57:33 +02:00
|
|
|
|
2005-02-09 16:21:06 +01:00
|
|
|
DIST_SUBDIR= ${DISTNAME}
|
2004-05-13 20:48:32 +02:00
|
|
|
|
2005-11-21 03:06:50 +01:00
|
|
|
SUBST_CLASSES+= f-prot
|
|
|
|
SUBST_MESSAGE.f-prot= "Configuring f-prot location."
|
|
|
|
SUBST_STAGE.f-prot= post-patch
|
|
|
|
SUBST_FILES.f-prot= f-prot.sh
|
|
|
|
SUBST_SED.f-prot= -e "s,^exec \`.*\`,exec ${FPDIR}/f-prot,g"
|
|
|
|
|
2004-05-13 20:48:32 +02:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= "Configuring default paths."
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2005-11-21 03:06:50 +01:00
|
|
|
SUBST_FILES.paths= tools/check-updates.pl
|
|
|
|
SUBST_SED.paths= -e "s,XXXFPDIRXXX,${FPDIR}," \
|
2004-05-13 20:48:32 +02:00
|
|
|
-e "s,/usr/bin/perl,${PREFIX}/bin/perl,g"
|
2004-01-07 19:47:00 +01:00
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin man/man1 man/man8 sbin
|
|
|
|
|
2004-01-07 19:47:00 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/f-prot.sh ${PREFIX}/bin/f-prot
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/check-updates.pl ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man_pages/check-updates.pl.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man_pages/f-prot.1 ${PREFIX}/man/man1
|
2004-05-13 20:48:32 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DATDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.DEF ${DATDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
2005-11-21 03:06:50 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE* ${WRKSRC}/README ${WRKSRC}/CHANGES \
|
2004-05-13 20:48:32 +02:00
|
|
|
${WRKSRC}/doc_ws/* ${DOCDIR}
|
|
|
|
${INSTALL_PROGRAM_DIR} ${FPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ENGLISH.TX0 ${FPDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/f-prot ${FPDIR}
|
2004-01-07 19:47:00 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|