blob: 5b724f6be5914e38623d481186d631425e5a4f77 (
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
|
# New ports collection makefile for: bsnmptools
# Date created: 28 August 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= bsnmptools
PORTVERSION= 0.0.20060818
DISTVERSION= 20060818-01
PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://www.ringlet.net/~shteryana/snmp/ CSME
EXTRACT_SUFX= .tar
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Snmp client tools
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ARGS= SHLIB_MAJOR=0 INCLUDEDIR=${PREFIX}/include LIBDIR=${PREFIX}/lib \
MANDIR=${MANPREFIX}/man/man NO_MANCOMPRESS=yes BINDIR=${PREFIX}/bin \
NO_PROFILE=yes
CFLAGS= -I${WRKSRC}/lib -L${WRKSRC}/lib
PLIST_FILES= ${BIN_FILES:S,^,bin/,} include/${PORTNAME}.h include/bsnmptc.h \
lib/lib${PORTNAME}.a lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0
BIN_FILES= bsnmpget bsnmpset bsnmpwalk
MAN1= ${BIN_FILES:S/$/.1/}
MAN3= ${PORTNAME}.3
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600029
IGNORE= does not compile on FreeBSD before 6.x
.endif
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
@${MV} ${WRKSRC}/lib/libbsnmptools/libbsnmptools ${WRKSRC}/tlib
@${MV} ${WRKSRC}/usr.sbin/bsnmpd/tools ${WRKSRC}/
@${RM} -rf ${WRKSRC}/lib ${WRKSRC}/usr.sbin ${WRKSRC}/tools/Makefile.inc
@${MV} ${WRKSRC}/tlib ${WRKSRC}/lib
post-patch:
@${REINPLACE_CMD} -e 's/usr.sbin/tools/' ${WRKSRC}/Makefile
.include <bsd.port.post.mk>
|