aboutsummaryrefslogtreecommitdiffstats
path: root/dns/py-namebench/Makefile
blob: b7837a882d2af4a2cf62b1be7eddcf2a2912b50c (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
# New ports collection makefile for:    py-namebench
# Date created:             04 December 2009
# Whom:                 Sahil Tandon <sahil@tandon.net>
#
# $FreeBSD$
#

PORTNAME=   namebench
PORTVERSION=    1.0
CATEGORIES= dns python
MASTER_SITES=   GOOGLE_CODE
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    An open-source DNS benchmark utility

MAKE_ENV+=  NO_THIRD_PARTY=yes

PORTDOCS=   README.txt

USE_PYTHON= 2.4+
USE_PYDISTUTILS=    yes
PYDISTUTILS_INSTALLARGS+=   --install-data=${PREFIX}/share

NO_INSTALL_MANPAGES=    yes

post-patch:
    @${REINPLACE_CMD} '/windows/d' ${WRKSRC}/setup.py

post-install:
.if !defined(NOPORTDOCS)
    @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>