aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/bsnmptools/Makefile
blob: 9645a609cf8482095991111fd72cabe5a1396dd9 (plain) (blame)
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
# 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/ CENKES
EXTRACT_SUFX=   .tar

MAINTAINER= carlos.santos@hp.com
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

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.mk>