b72e3dc214
- Bump portrevision Reported by: pointyhat via kris
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# 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= 1
|
|
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 \
|
|
MK_PROFILE="no"
|
|
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} < 600000
|
|
LIB_DEPENDS= bsnmp.2:${PORTSDIR}/net-mgmt/bsnmpd
|
|
CFLAGS+= -I${LOCALBASE}/lib -L${LOCALBASE}/include
|
|
.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>
|