summaryrefslogtreecommitdiff
path: root/security/fprot-workstation-bin/Makefile
blob: 7a23d9ee971599273fafffca484aeb39cacfe6f5 (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
# $NetBSD: Makefile,v 1.10 2004/05/11 04:03:26 simonb Exp $
#

DISTNAME=		#defined
PKGNAME=		fprot-workstation-bin-4.4.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
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_BUILDLINK3=		yes

.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

post-patch:
	cd ${WRKSRC}/tools && ${MV} check-updates.pl check-updates.pl.bak
	${SED} -e "s,/usr/local/f-prot,${PREFIX}/lib/fprot-workstation-bin,g" \
		-e "s,/usr/bin/perl,${PREFIX}/bin/perl,g"\
		<${WRKSRC}/tools/check-updates.pl.bak \
		>${WRKSRC}/tools/check-updates.pl
	${MV} ${WRKSRC}/f-prot.sh ${WRKSRC}/f-prot.sh.bak
	${SED} -e "s,/usr/local/f-prot,${PREFIX}/lib/fprot-workstation-bin," \
		<${WRKSRC}/f-prot.sh.bak \
		>${WRKSRC}/f-prot.sh

.if ${OPSYS} == "NetBSD"
pre-install:
	${RM} -f ${WRKSRC}/doc_ws/norm_scan.gif
.endif

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} ${PREFIX}/lib/fprot-workstation-bin
	${INSTALL_DATA} ${WRKSRC}/*.DEF ${PREFIX}/lib/fprot-workstation-bin
	${INSTALL_DATA} ${WRKSRC}/ENGLISH.TX0 \
		${PREFIX}/lib/fprot-workstation-bin
	${INSTALL_PROGRAM} ${WRKSRC}/f-prot ${PREFIX}/lib/fprot-workstation-bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fprot-workstation-bin
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${WRKSRC}/CHANGES \
		${PREFIX}/share/doc/fprot-workstation-bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/fprot-workstation-bin
	${INSTALL_DATA} ${WRKSRC}/doc_ws/* \
		${PREFIX}/share/doc/html/fprot-workstation-bin

.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"