summaryrefslogtreecommitdiff
path: root/security/fprot-workstation-bin/Makefile
blob: e5746cc478f9b838b99bd9ed851937d7a25c36b5 (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
78
79
80
81
82
83
84
85
# $NetBSD: Makefile,v 1.24 2005/12/29 06:22:09 jlam Exp $
#

DISTNAME=		#defined
PKGNAME=		fprot-workstation-bin-4.6.2
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
DEPENDS+=		unzip-[0-9]*:../../archivers/unzip

PKG_INSTALLATION_TYPES= overwrite pkgviews

ONLY_FOR_PLATFORM=	NetBSD-*-i386 Linux-*-i386 SunOS-*-sparc
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

WRKSRC=			${WRKDIR}/f-prot
NO_BUILD=		yes
USE_TOOLS+=		perl:run

DATDIR=			${PREFIX}/share/fprot-workstation-bin
DOCDIR=			${PREFIX}/share/doc/fprot-workstation-bin
FPDIR=			${PREFIX}/libexec/fprot-workstation-bin
CONF_FILES=		${DATDIR}/MACRO.DEF ${FPDIR}/MACRO.DEF
CONF_FILES+=		${DATDIR}/SIGN.DEF ${FPDIR}/SIGN.DEF
CONF_FILES+=		${DATDIR}/SIGN2.DEF ${FPDIR}/SIGN2.DEF
OWN_DIRS=               ${FPDIR}

.include "../../mk/bsd.prefs.mk"

.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"
MASTER_SITES=		ftp://ftp.f-prot.com/pub/solaris/
DISTNAME=		fp-solaris-sparc-ws-${PKGVERSION}
.endif

DIST_SUBDIR=		${DISTNAME}

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"

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	"Configuring default paths."
SUBST_STAGE.paths=	post-patch
SUBST_FILES.paths=	tools/check-updates.pl
SUBST_SED.paths=	-e "s,XXXFPDIRXXX,${FPDIR}," \
			-e "s,/usr/bin/perl,${PREFIX}/bin/perl,g"

INSTALLATION_DIRS=	bin man/man1 man/man8 sbin

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
	${INSTALL_DATA_DIR} ${DATDIR}
	${INSTALL_DATA} ${WRKSRC}/*.DEF ${DATDIR}
	${INSTALL_DATA_DIR} ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/LICENSE* ${WRKSRC}/README ${WRKSRC}/CHANGES \
		${WRKSRC}/doc_ws/* ${DOCDIR}
	${INSTALL_PROGRAM_DIR} ${FPDIR}
	${INSTALL_DATA} ${WRKSRC}/ENGLISH.TX0 ${FPDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/f-prot ${FPDIR}

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