View | Details | Raw Unified | Return to bug 158948 | Differences between
and this patch

Collapse All | Expand All

(-)py-namebench/Makefile (-6 / +20 lines)
Lines 6-38 Link Here
6
#
6
#
7
7
8
PORTNAME=	namebench
8
PORTNAME=	namebench
9
PORTVERSION=	1.0
9
PORTVERSION=	1.3.1
10
PORTREVISION=	1
11
CATEGORIES=	dns python
10
CATEGORIES=	dns python
12
MASTER_SITES=	GOOGLE_CODE
11
MASTER_SITES=	GOOGLE_CODE
13
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
12
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
13
DISTNAME=	${PORTNAME}-${PORTVERSION}-source
14
EXTRACT_SUFX=	.tgz
14
EXTRACT_SUFX=	.tgz
15
15
16
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	An open-source DNS benchmark utility
17
COMMENT=	An open-source DNS benchmark utility
18
18
19
LICENSE=	ASL
20
21
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}Jinja2>=2.5.5:${PORTSDIR}/devel/py-Jinja2 \
22
	${PYTHON_PKGNAMEPREFIX}graphy>=1.0:${PORTSDIR}/graphics/py-graphy \
23
	${PYTHON_PKGNAMEPREFIX}dnspython>=1.9.4:${PORTSDIR}/dns/py-dnspython \
24
	${PYTHON_PKGNAMEPREFIX}httplib2>=0.6.0:${PORTSDIR}/www/py-httplib2 \
25
	${PYTHON_PKGNAMEPREFIX}simplejson>=2.1.6:${PORTSDIR}/devel/py-simplejson
26
27
.if !defined(WITHOUT_X11)
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=2.7.1:${PORTSDIR}/x11-toolkits/py-tkinter
29
.endif
30
19
MAKE_ENV+=	NO_THIRD_PARTY=yes
31
MAKE_ENV+=	NO_THIRD_PARTY=yes
32
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
33
SUB_FILES=	pkg-message
20
34
21
PORTDOCS=	README.txt
35
PORTDOCS=	README.txt
22
36
23
USE_PYTHON=	2.5+
37
USE_PYTHON=	yes
24
USE_PYDISTUTILS=	yes
38
USE_PYDISTUTILS=	yes
25
PYDISTUTILS_INSTALLARGS+=	--install-data=${PREFIX}/share
39
PYDISTUTILS_INSTALLARGS+=	--install-data=${PREFIX}/share
26
40
27
NO_INSTALL_MANPAGES=	yes
41
NO_INSTALL_MANPAGES=	yes
28
42
29
post-patch:
30
	@${REINPLACE_CMD} '/windows/d' ${WRKSRC}/setup.py
31
32
post-install:
43
post-install:
33
.if !defined(NOPORTDOCS)
44
.if !defined(NOPORTDOCS)
34
	@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
45
	@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
35
	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
46
	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
36
.endif
47
.endif
37
48
49
	${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${PREFIX}/bin
50
	@${CAT} ${PKGMESSAGE}
51
38
.include <bsd.port.mk>
52
.include <bsd.port.mk>
(-)py-namebench/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (namebench-1.0.tgz) = 59af0fea2ce4cb52a3999115ecf77331150cd1ccae36e05e173680bb6d68611c
1
SHA256 (namebench-1.3.1-source.tgz) = 30ccf9e870c1174c6bf02fca488f62bba280203a0b1e8e4d26f3756e1a5b9425
2
SIZE (namebench-1.0.tgz) = 2557100
2
SIZE (namebench-1.3.1-source.tgz) = 1118505
(-)py-namebench/pkg-plist (-22 / +46 lines)
Lines 1-52 Link Here
1
bin/namebench
1
bin/namebench.py
2
bin/namebench.py
2
%%PYTHON_SITELIBDIR%%/libnamebench/__init__.py
3
%%PYTHON_SITELIBDIR%%/libnamebench/__init__.py
3
%%PYTHON_SITELIBDIR%%/libnamebench/base_ui.py
4
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark.py
5
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark_test.py
6
%%PYTHON_SITELIBDIR%%/libnamebench/better_webbrowser.py
7
%%PYTHON_SITELIBDIR%%/libnamebench/charts.py
8
%%PYTHON_SITELIBDIR%%/libnamebench/charts_test.py
9
%%PYTHON_SITELIBDIR%%/libnamebench/cli.py
10
%%PYTHON_SITELIBDIR%%/libnamebench/config.py
11
%%PYTHON_SITELIBDIR%%/libnamebench/conn_quality.py
12
%%PYTHON_SITELIBDIR%%/libnamebench/history_parser.py
13
%%PYTHON_SITELIBDIR%%/libnamebench/mocks.py
14
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver.py
15
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_list.py
16
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_test.py
17
%%PYTHON_SITELIBDIR%%/libnamebench/selectors.py
18
%%PYTHON_SITELIBDIR%%/libnamebench/selectors_test.py
19
%%PYTHON_SITELIBDIR%%/libnamebench/tk.py
20
%%PYTHON_SITELIBDIR%%/libnamebench/util.py
21
%%PYTHON_SITELIBDIR%%/libnamebench/util_test.py
22
%%PYTHON_SITELIBDIR%%/libnamebench/__init__.pyc
4
%%PYTHON_SITELIBDIR%%/libnamebench/__init__.pyc
5
%%PYTHON_SITELIBDIR%%/libnamebench/addr_util.py
6
%%PYTHON_SITELIBDIR%%/libnamebench/addr_util.pyc
7
%%PYTHON_SITELIBDIR%%/libnamebench/base_ui.py
23
%%PYTHON_SITELIBDIR%%/libnamebench/base_ui.pyc
8
%%PYTHON_SITELIBDIR%%/libnamebench/base_ui.pyc
9
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark.py
24
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark.pyc
10
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark.pyc
11
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark_test.py
25
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark_test.pyc
12
%%PYTHON_SITELIBDIR%%/libnamebench/benchmark_test.pyc
13
%%PYTHON_SITELIBDIR%%/libnamebench/better_webbrowser.py
26
%%PYTHON_SITELIBDIR%%/libnamebench/better_webbrowser.pyc
14
%%PYTHON_SITELIBDIR%%/libnamebench/better_webbrowser.pyc
15
%%PYTHON_SITELIBDIR%%/libnamebench/charts.py
27
%%PYTHON_SITELIBDIR%%/libnamebench/charts.pyc
16
%%PYTHON_SITELIBDIR%%/libnamebench/charts.pyc
17
%%PYTHON_SITELIBDIR%%/libnamebench/charts_test.py
28
%%PYTHON_SITELIBDIR%%/libnamebench/charts_test.pyc
18
%%PYTHON_SITELIBDIR%%/libnamebench/charts_test.pyc
19
%%PYTHON_SITELIBDIR%%/libnamebench/cli.py
29
%%PYTHON_SITELIBDIR%%/libnamebench/cli.pyc
20
%%PYTHON_SITELIBDIR%%/libnamebench/cli.pyc
21
%%PYTHON_SITELIBDIR%%/libnamebench/config.py
30
%%PYTHON_SITELIBDIR%%/libnamebench/config.pyc
22
%%PYTHON_SITELIBDIR%%/libnamebench/config.pyc
23
%%PYTHON_SITELIBDIR%%/libnamebench/conn_quality.py
31
%%PYTHON_SITELIBDIR%%/libnamebench/conn_quality.pyc
24
%%PYTHON_SITELIBDIR%%/libnamebench/conn_quality.pyc
32
%%PYTHON_SITELIBDIR%%/libnamebench/history_parser.pyc
25
%%PYTHON_SITELIBDIR%%/libnamebench/data_sources.py
26
%%PYTHON_SITELIBDIR%%/libnamebench/data_sources.pyc
27
%%PYTHON_SITELIBDIR%%/libnamebench/geoip.py
28
%%PYTHON_SITELIBDIR%%/libnamebench/geoip.pyc
29
%%PYTHON_SITELIBDIR%%/libnamebench/health_checks.py
30
%%PYTHON_SITELIBDIR%%/libnamebench/health_checks.pyc
31
%%PYTHON_SITELIBDIR%%/libnamebench/mocks.py
33
%%PYTHON_SITELIBDIR%%/libnamebench/mocks.pyc
32
%%PYTHON_SITELIBDIR%%/libnamebench/mocks.pyc
33
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver.py
34
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver.pyc
34
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver.pyc
35
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_list.py
35
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_list.pyc
36
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_list.pyc
37
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_test.py
36
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_test.pyc
38
%%PYTHON_SITELIBDIR%%/libnamebench/nameserver_test.pyc
39
%%PYTHON_SITELIBDIR%%/libnamebench/reporter.py
40
%%PYTHON_SITELIBDIR%%/libnamebench/reporter.pyc
41
%%PYTHON_SITELIBDIR%%/libnamebench/selectors.py
37
%%PYTHON_SITELIBDIR%%/libnamebench/selectors.pyc
42
%%PYTHON_SITELIBDIR%%/libnamebench/selectors.pyc
43
%%PYTHON_SITELIBDIR%%/libnamebench/selectors_test.py
38
%%PYTHON_SITELIBDIR%%/libnamebench/selectors_test.pyc
44
%%PYTHON_SITELIBDIR%%/libnamebench/selectors_test.pyc
45
%%PYTHON_SITELIBDIR%%/libnamebench/site_connector.py
46
%%PYTHON_SITELIBDIR%%/libnamebench/site_connector.pyc
47
%%PYTHON_SITELIBDIR%%/libnamebench/tk.py
39
%%PYTHON_SITELIBDIR%%/libnamebench/tk.pyc
48
%%PYTHON_SITELIBDIR%%/libnamebench/tk.pyc
49
%%PYTHON_SITELIBDIR%%/libnamebench/url_map.py
50
%%PYTHON_SITELIBDIR%%/libnamebench/url_map.pyc
51
%%PYTHON_SITELIBDIR%%/libnamebench/util.py
40
%%PYTHON_SITELIBDIR%%/libnamebench/util.pyc
52
%%PYTHON_SITELIBDIR%%/libnamebench/util.pyc
53
%%PYTHON_SITELIBDIR%%/libnamebench/util_test.py
41
%%PYTHON_SITELIBDIR%%/libnamebench/util_test.pyc
54
%%PYTHON_SITELIBDIR%%/libnamebench/util_test.pyc
55
%%PYTHON_SITELIBDIR%%/libnamebench/version.py
56
%%PYTHON_SITELIBDIR%%/libnamebench/version.pyc
42
%%PYTHON_SITELIBDIR%%/namebench.py
57
%%PYTHON_SITELIBDIR%%/namebench.py
43
%%PYTHON_SITELIBDIR%%/namebench.pyc
58
%%PYTHON_SITELIBDIR%%/namebench.pyc
44
%%DATADIR%%/namebench.cfg
59
%%DOCSDIR%%/README.txt
60
%%DATADIR%%/config/data_sources.cfg
61
%%DATADIR%%/config/hostname_reference.cfg
62
%%DATADIR%%/config/namebench.cfg
63
%%DATADIR%%/data/alexa-top-2000-domains.txt
64
%%DATADIR%%/data/cache-hit.txt
65
%%DATADIR%%/data/cache-miss.txt
66
%%DATADIR%%/data/cache-mix.txt
45
%%DATADIR%%/templates/ascii.tmpl
67
%%DATADIR%%/templates/ascii.tmpl
46
%%DATADIR%%/templates/html.tmpl
68
%%DATADIR%%/templates/html.tmpl
69
%%DATADIR%%/templates/resolv.conf.tmpl
47
%%DATADIR%%/templates/style.css
70
%%DATADIR%%/templates/style.css
48
%%DATADIR%%/data/alexa-top-10000-global.txt
49
@dirrm %%DATADIR%%/templates
71
@dirrm %%DATADIR%%/templates
50
@dirrm %%DATADIR%%/data
72
@dirrm %%DATADIR%%/data
73
@dirrm %%DATADIR%%/config
51
@dirrm %%DATADIR%%
74
@dirrm %%DATADIR%%
75
@dirrm %%DOCSDIR%%
52
@dirrm %%PYTHON_SITELIBDIR%%/libnamebench
76
@dirrm %%PYTHON_SITELIBDIR%%/libnamebench
(-)py-namebench/files/namebench (+6 lines)
Added Link Here
1
#!/bin/sh
2
3
#namebench fails outside of /usr/local/share/namebench
4
5
cd /usr/local/share/namebench
6
/usr/local/bin/namebench.py
(-)py-namebench/files/pkg-message.in (+3 lines)
Added Link Here
1
2
To have namebench.py run properly, please run the wrapper script:
3
%%PREFIX%%/bin/namebench

Return to bug 158948