diff options
author | sat <sat@FreeBSD.org> | 2006-09-01 15:49:36 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2006-09-01 15:49:36 +0800 |
commit | 6676a8bc371c97788e1460e1a3d2d2724646c440 (patch) | |
tree | aa561fa11a9e6ba97efc4b6eab549da0bf45c0c2 /net-mgmt/bsnmptools | |
parent | 8fa360d8edd6bf93004b13b9e505ba92f5c91af5 (diff) | |
download | freebsd-ports-gnome-6676a8bc371c97788e1460e1a3d2d2724646c440.tar.gz freebsd-ports-gnome-6676a8bc371c97788e1460e1a3d2d2724646c440.tar.zst freebsd-ports-gnome-6676a8bc371c97788e1460e1a3d2d2724646c440.zip |
- Depend on net-mgmt/bsnmpd on 5.x and earlier
Reported by: pointyhat via kris
Diffstat (limited to 'net-mgmt/bsnmptools')
-rw-r--r-- | net-mgmt/bsnmptools/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net-mgmt/bsnmptools/Makefile b/net-mgmt/bsnmptools/Makefile index da5358d8674b..6a0ccbcd36b2 100644 --- a/net-mgmt/bsnmptools/Makefile +++ b/net-mgmt/bsnmptools/Makefile @@ -20,13 +20,19 @@ 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 +.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 @@ -37,4 +43,4 @@ post-extract: post-patch: @${REINPLACE_CMD} -e 's/usr.sbin/tools/' ${WRKSRC}/Makefile -.include <bsd.port.mk> +.include <bsd.port.post.mk> |