summaryrefslogtreecommitdiffstats
path: root/net/dhcperf/Makefile
blob: 2a968f7d4800d840f79e9864182c97084c725211 (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
# New ports collection makefile for:   dhcperf
# Date created:        1 November 2006
# Whom:                Edwin Groothuis (edwin@mavetju.org)
#
# $FreeBSD$
#

PORTNAME=	dhcperf
PORTVERSION=	1.0.0.0
CATEGORIES=	net benchmarks
MASTER_SITES=	ftp://ftp.nominum.com/pub/nominum/${PORTNAME}/${PORTVERSION}/
DISTNAME=	${PORTNAME}-${PORTVERSION}-1-freebsd-5.4-i386

MAINTAINER=	edwin@mavetju.org
COMMENT=	DHCPerf delivers accurate performance metrics of Dynamic Host Configuration Protocol service

ONLY_FOR_ARCHS=	i386
ONLY_FOR_ARCHS_REASON=	Rebuild of i386 package provided by Nominum.
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-1/

PLIST_FILES=	bin/dhcperf \
		share/doc/dhcperf/dcsevaltutorial.pdf \
		share/doc/dhcperf/dhcperf.pdf
PLIST_DIRS=	share/doc/dhcperf
MAN1=		dhcperf.1

.include <bsd.port.pre.mk>

.if ${OSVERSION}<504000
IGNORE=		requires FreeBSD 5.4 or higher
.endif

.if ${OSVERSION}>600000
LIB_DEPENDS=	c.5:${PORTSDIR}/misc/compat5x
.endif

post-extract:
	${TAR} -C ${WRKSRC} -zxvf ${WRKSRC}/dhcperf-1.0.0.0_1.tgz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/usr/local/nom/bin/dhcperf ${PREFIX}/bin/dhcperf
	${INSTALL_DATA} ${WRKSRC}/usr/local/nom/man/man1/dhcperf.1 ${PREFIX}/man/man1
	${MKDIR} ${PREFIX}/share/doc/dhcperf
	${INSTALL_DATA} ${WRKSRC}/usr/local/nom/doc/dhcperf/dcsevaltutorial.pdf ${PREFIX}/share/doc/dhcperf/dcsevaltutorial.pdf
	${INSTALL_DATA} ${WRKSRC}/usr/local/nom/doc/dhcperf/dhcperf.pdf ${PREFIX}/share/doc/dhcperf/dhcperf.pdf

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