summaryrefslogtreecommitdiff
path: root/net/braa/Makefile
blob: 218a13f94a7cd6623bea9bb8dc8541fbe60b9b1a (plain) (blame)
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
# New ports collection makefile for:	braa
# Date created:				31.05.2003
# Whom:					Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=	braa
PORTVERSION=	0.3
CATEGORIES=	net
MASTER_SITES=	http://s-tech.elsat.net.pl/braa/

MAINTAINER=	ponomarew@oberon.net
COMMENT=	Network auditing tool

LIB_DEPENDS=	netsnmp.5:${PORTSDIR}/net/net-snmp

USE_REINPLACE=	yes

post-patch:
.for file in Makefile
	@${REINPLACE_CMD} -e \
		's|CFLAGS =|CFLAGS?=${CFLAGS}|g ; \
		s|LDFLAGS =|LDFLAGS?=${LDFLAGS}|g ; \
		s|gcc|${CC}|g ; \
		s|strip $$(OUT)||g' ${WRKSRC}/${file}
.endfor

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
		${PREFIX}/bin/

post-install:
.for i in ${PORTNAME}
	${STRIP_CMD} ${PREFIX}/bin/${i}
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in README
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>