From 628b43929166c29c8616f413bdcb58f6d2327d92 Mon Sep 17 00:00:00 2001 From: sat Date: Sun, 27 Aug 2006 19:31:55 +0000 Subject: Add port net-mgmt/bsnmptools: Snmp client-side tools WWW: http://wiki.freebsd.org/BsnmpTools Author: Shteryana Shopova --- net-mgmt/Makefile | 1 + net-mgmt/bsnmptools/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ net-mgmt/bsnmptools/distinfo | 3 +++ net-mgmt/bsnmptools/pkg-descr | 4 ++++ 4 files changed, 48 insertions(+) create mode 100644 net-mgmt/bsnmptools/Makefile create mode 100644 net-mgmt/bsnmptools/distinfo create mode 100644 net-mgmt/bsnmptools/pkg-descr diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index d2ea1fbc9666..1fbdeedf9db4 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -29,6 +29,7 @@ SUBDIR += braa SUBDIR += bsd-airtools SUBDIR += bsnmpd + SUBDIR += bsnmptools SUBDIR += bwm-ng SUBDIR += cdpd SUBDIR += cdpr diff --git a/net-mgmt/bsnmptools/Makefile b/net-mgmt/bsnmptools/Makefile new file mode 100644 index 000000000000..da5358d8674b --- /dev/null +++ b/net-mgmt/bsnmptools/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: bsnmptools +# Date created: 28 August 2006 +# Whom: Andrew Pantyukhin +# +# $FreeBSD$ +# + +PORTNAME= bsnmptools +PORTVERSION= 0.0.20060818 +DISTVERSION= 20060818-01 +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 +CFLAGS= -I${WRKSRC}/lib -L${WRKSRC}/lib +#LDFLAGS= -L/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 + +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 diff --git a/net-mgmt/bsnmptools/distinfo b/net-mgmt/bsnmptools/distinfo new file mode 100644 index 000000000000..b78d9eb6fb30 --- /dev/null +++ b/net-mgmt/bsnmptools/distinfo @@ -0,0 +1,3 @@ +MD5 (bsnmptools-20060818-01.tar) = 2970135f69b0b50a6f0a2cdb25fd92c6 +SHA256 (bsnmptools-20060818-01.tar) = 0537938014c5af4eb33fe37ff4807f144cce1c3d60699e2eed477c4b8a506020 +SIZE (bsnmptools-20060818-01.tar) = 40407 diff --git a/net-mgmt/bsnmptools/pkg-descr b/net-mgmt/bsnmptools/pkg-descr new file mode 100644 index 000000000000..d23639465a24 --- /dev/null +++ b/net-mgmt/bsnmptools/pkg-descr @@ -0,0 +1,4 @@ +Snmp client-side tools + +WWW: http://wiki.freebsd.org/BsnmpTools +Author: Shteryana Shopova -- cgit