1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/net-mgmt/bsnmptools/Makefile
Andrew Pantyukhin 7e7c80ee26 - Only support 6.x and later
Reported by:	pointyhat via kris
Suggested by:	bz
2006-09-13 07:44:00 +00:00

48 lines
1.3 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= 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>