blob: 9d07b1f1255fcafd96bfaf8bc9966fe3172e7539 (
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
|
# New ports collection makefile for: bdc
# Date created: 4 December 2004
# Whom: Adi Pircalabu <apircalabu@bitdefender.com>
#
# $FreeBSD$
#
PORTNAME= bdc
PORTVERSION= 7.0.1
PORTREVISION= 2
CATEGORIES= security
#MASTER_SITES= # http://download.bitdefender.com/freebsd/${BDREL}/final/
DISTNAME= ${PORTNAME}-${PORTVERSION}.2-fbsd${BDREL}
MAINTAINER= itetcu@FreeBSD.org
COMMENT= BitDefender Console Antivirus for FreeBSD
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
ONLY_FOR_ARCHS= i386
RESTRICTED= License prohibits redistribution
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 600000
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
.endif
.if ${OSVERSION} < 502001
IGNORE= requires FreeBSD 5.2.1 or later
.else
BDREL= 5
.endif
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
ECHO_MSG= /usr/bin/printf
IGNORE= :\n\
You have to fetch ${DISTNAME}${EXTRACT_SUFX} manually after\n\
reading and agreeing to the license at:\n\
http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Antivirus_Scanner_for_Unices/Unix/Old/EN/freebsd/Ver_${BDREL}/\n\
A direct link to the distribution file:\n\
http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Antivirus_Scanner_for_Unices/Unix/Old/EN/freebsd/Ver_${BDREL}/bdc-7.0.1.2-fbsd${BDREL}.tar.gz\n\
Once the file has been downloaded move it to\n\
${DISTDIR} and restart the build.\n
.endif
do-install:
@cd ${WRKDIR} && ${TAR} -cf - bdc | ${TAR} -xf - -C ${PREFIX}/
@${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/bdc
@${CHMOD} -R a=rX,u+w ${PREFIX}/bdc/
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g ; \
s|%%PORTNAME%%|${PORTNAME}|g' \
< ${PKGDIR}/pkg-message > ${PKGMESSAGE}
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
< ${FILESDIR}/bdc > ${PREFIX}/bin/bdc
@${CHMOD} +x ${PREFIX}/bin/bdc
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|