summaryrefslogtreecommitdiffstats
path: root/net/NeTraMet/Makefile
blob: 0814aff7300d020375e515db7b037521e4d248f4 (plain)
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
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	NeTraMet
# Date created:		24-Feb-2001
# Whom:			Jimmy Olgeni <olgeni@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	NeTraMet
PORTVERSION=	4.4
PORTREVISION=	2
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.auckland.ac.nz/pub/iawg/NeTraMet/ \
		http://www2.auckland.ac.nz/net/Accounting/
DISTFILES+=	NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX} \
		${NETRAMET_DOCS}
DIST_SUBDIR=	netramet
EXTRACT_ONLY=	NeTraMet${PORTVERSION:S/.//}${EXTRACT_SUFX}

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Implementation of the Internet Accounting Architecture

NETRAMET_DOCS=	usguide.pdf srlguide.pdf ntmref.pdf nm_rc.pdf \
		nifty.pdf fdutil.pdf

WRKSRC=		${WRKDIR}/NeTraMet${PORTVERSION:S/.//}

USE_REINPLACE=	yes
USE_AUTOCONF=	yes
USE_GMAKE=	yes

.if defined(WITH_MOTIF)
USE_MOTIF=	yes
CONFIGURE_ENV+=	MOTIF_LIB="${MOTIFLIB}"
PLIST_SUB=	MOTIF=""
.else
PLIST_SUB=	MOTIF="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e "s|"/etc/mib.txt"|${LOCALBASE}/share/NeTraMet/mibs/mib.txt|g;" ${WRKSRC}/src/snmplib/mib.c

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for FILE in ${NETRAMET_DOCS}
	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud