blob: 88875329ab100991a253039d19bae8103fd27b5c (
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# $NetBSD: Makefile.common,v 1.6 2013/03/14 16:35:32 taca Exp $
#
# used by security/f-prot-antivirus6-ms-bin/Makefile
# used by security/f-prot-antivirus6-fs-bin/Makefile
# used by security/f-prot-antivirus6-ws-bin/Makefile
#
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
CONFLICTS+= f-prot-antivirus6-{fs,ms,ws} fprot-workstation-bin-*
VERSION= 6.2.3
# ws, ms, fs
FP_TYPE?= ms
FP_ARCH?= x86.32
FP_OPSYS?= ${OPSYS}
FP_DISTNAME= fp-${FP_OPSYS}.${FP_ARCH}-${FP_TYPE}-${VERSION}
PKGNAME= f-prot-antivirus6-${FP_TYPE}-bin-${VERSION}
RESTRICTED= "Commercial product"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
DOWNLOAD= http://www.f-prot.com/download/
LICENSE= f-prot-antivirus-license
WRKSRC?= ${WRKDIR}/f-prot
NO_BUILD= yes
#NO_CHECKSUM= yes
USE_TOOLS+= pax
DATA= antivir.def
DOCS= README doc/CHANGES doc/LICENSE doc/LICENSE-FPAV \
doc/LICENSES-others
CONF_FILES+= ${EGDIR}/f-prot.conf ${PKG_SYSCONFDIR}/f-prot.conf
FP_PKGDIR= ${.CURDIR}/../f-prot-antivirus6
DEINSTALL_TEMPLATES= ${FP_PKGDIR}/DEINSTALL
INSTALL_TEMPLATES= ${FP_PKGDIR}/INSTALL
MESSAGE_SRC= ${FP_PKGDIR}/MESSAGE
PLIST_SRC= ${FP_PKGDIR}/PLIST
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= f-prot
FILES_SUBST+= DATADIR=${DATADIR} FPROTDIR=${FPROTDIR} \
FP_DATA=${DATA} EGDIR=${EGDIR}
MESSAGE_SUBST+= FPROTDIR="${FPROTDIR}"
PLIST_SUBST+= DATADIR="${DATADIR}" DOCDIR="${DOCDIR}" \
FPROTDIR="${FPROTDIR}" EGDIR="${EGDIR}"
INSTALLATION_DIRS?= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \
${PKGMANDIR}/man8 sbin ${DATADIR} ${DOCDIR}/html \
${EGDIR} ${FPROTDIR}
PLIST_VARS+= license fpscand fpso scanmail
RCD_SCRIPT_SRC.fpscand= ${FP_PKGDIR}/files/fpscand.sh
.if defined(RCD_SCRIPTS) && !empty(RCD_SCRIPTS:Mfpscand)
PLIST.fpscand= yes
.endif
.if defined(RCD_SCRIPTS) && !empty(RCD_SCRIPTS:Mscanmail)
PLIST.scanmail= yes
.endif
.if !empty(MACHINE_PLATFORM:MLinux-*-i386)
PLIST.fpso= yes
.endif
.if exists(license.key)
CONF_FILES+= ${EGDIR}/license.key ${PKG_SYSCONFDIR}/license.key
PLIST.license= # defined
.endif
INTERACTIVE_STAGE= fetch
_FETCH_MESSAGE= \
${ECHO} "======================================================================"; \
${ECHO} ; \
${ECHO} " The file ${DISTNAME}${EXTRACT_SUFX} containing"; \
${ECHO} " ${COMMENT} must be fetched into:"; \
${ECHO} " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"; \
${ECHO} " from"; \
${ECHO} " ${DOWNLOAD}."; \
${ECHO} " If you install official product, you need your customer"; \
${ECHO} " number and get key code from the site."; \
${ECHO} ; \
${ECHO} "======================================================================"
install-common:
${INSTALL_PROGRAM} ${WRKSRC}/fpscan ${DESTDIR}${PREFIX}/${FPROTDIR}
cd ${DESTDIR}${PREFIX}/bin; ${LN} -fs ${PREFIX}/${FPROTDIR}/fpscan .
${INSTALL_MAN} ${WRKSRC}/doc/man/fpscan.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_PROGRAM} ${WRKSRC}/fpupdate ${DESTDIR}${PREFIX}/${FPROTDIR}
${INSTALL_DATA} ${WRKSRC}/product.data ${DESTDIR}${PREFIX}/${FPROTDIR}
${INSTALL_DATA} ${WRKSRC}/f-prot.conf.default \
${DESTDIR}${PREFIX}/${EGDIR}/f-prot.conf
${INSTALL_DATA} ${WRKSRC}/${DATA} ${DESTDIR}${PREFIX}/${DATADIR}
${INSTALL_MAN} ${WRKSRC}/doc/man/f-prot.conf.5 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
${INSTALL_MAN} ${WRKSRC}/doc/man/fpupdate.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DESTDIR}${PREFIX}/${DOCDIR}
cd ${WRKSRC}/doc/html; pax -rw . ${DESTDIR}${PREFIX}/${DOCDIR}/html
install-fpscand:
${INSTALL_PROGRAM} ${WRKSRC}/fpscand ${DESTDIR}${PREFIX}/${FPROTDIR}
${INSTALL_MAN} ${WRKSRC}/doc/man/fpscand.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.if defined(PLIST.fpso) && ${PLIST.fpso} == "yes"
${INSTALL_PROGRAM} ${WRKSRC}/fstools/fpmon \
${DESTDIR}${PREFIX}/${FPROTDIR}
${INSTALL_PROGRAM} ${WRKSRC}/fstools/fp.so \
${DESTDIR}${PREFIX}/${FPROTDIR}
${INSTALL_MAN} ${WRKSRC}/doc/man/fpmon.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_MAN} ${WRKSRC}/doc/man/fp.so.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.endif
.include "../../security/f-prot-antivirus6/f-prot.mk"
|