View | Details | Raw Unified | Return to bug 210643
Collapse All | Expand All

(-)Makefile (-7 / +23 lines)
Lines 1-7 Link Here
1
# Created by: Carsten Larsen <cs@innolan.dk>
1
# $FreeBSD$
2
# $FreeBSD$
2
3
3
PORTNAME=	ntpa
4
PORTNAME=	ntpa
4
PORTVERSION=	0.6.1
5
PORTVERSION=	0.6.2
5
CATEGORIES=	net
6
CATEGORIES=	net
6
MASTER_SITES=	http://suyai.innolan.net/
7
MASTER_SITES=	http://suyai.innolan.net/
7
8
Lines 10-23 Link Here
10
11
11
LICENSE=	MIT
12
LICENSE=	MIT
12
13
13
OPTIONS_DEFINE=	GRAPH PGSQL MYSQL
14
OPTIONS_DEFINE=	WEBFILES GRAPH
14
OPTION_MULTI=	PGSQL MYSQL
15
OPTIONS_DEFAULT=	PGSQL
15
GRAPH_DESC=	Graphs and HTML generation (requires Cairo)
16
OPTIONS_MULTI=		DATABASE
17
OPTIONS_MULTI_DATABASE=	PGSQL MYSQL
18
WEBFILES_IMPLIES=	GRAPH
19
WEBFILES_DESC=	Install web files
20
GRAPH_DESC=	Graph generation (requires Cairo)
16
PGSQL_DESC=	PostgreSQL Connector
21
PGSQL_DESC=	PostgreSQL Connector
17
MYSQL_DESC=	MySQL Connector (GPL)
22
MYSQL_DESC=	MySQL Connector (GPL)
18
23
19
OPTIONS_DEFAULT=	GRAPH PGSQL
20
21
GRAPH_LIB_DEPENDS=	libgdiplus.so:x11-toolkits/libgdiplus \
24
GRAPH_LIB_DEPENDS=	libgdiplus.so:x11-toolkits/libgdiplus \
22
			libcairo.so:graphics/cairo \
25
			libcairo.so:graphics/cairo \
23
			libpng.so:graphics/png
26
			libpng.so:graphics/png
Lines 35-43 Link Here
35
USERS=		ntpa
38
USERS=		ntpa
36
GROUPS=		ntpa
39
GROUPS=		ntpa
37
40
38
post-install:
41
SUB_FILES=	ntpad ntpav ntpac
42
WRKSRC=		${WRKDIR}/anguist-ntpa-9204e1e36b8d
43
44
.include <bsd.port.options.mk>
45
46
pre-install:
47
	@${MKDIR} ${WRKSRC}/script
48
	${MV} ${WRKDIR}/ntpad ${WRKSRC}/script/ntpa
49
	${MV} ${WRKDIR}/ntpav ${WRKSRC}/script/ntpav
50
	${MV} ${WRKDIR}/ntpac ${WRKSRC}/script/ntpac
51
52
post-install-WEBFILES-on:
39
	${MKDIR} ${STAGEDIR}${WWWDIR}
53
	${MKDIR} ${STAGEDIR}${WWWDIR}
40
	(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
54
	(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
55
56
post-install:
41
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
57
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
42
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
58
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
43
	${INSTALL_MAN} ${WRKSRC}/docs/ntpa.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
59
	${INSTALL_MAN} ${WRKSRC}/docs/ntpa.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1464440774
1
SHA256 (ntpa-0.6.2.tar.gz) = f5d3471dae38f60d6a16b5d7610dc3b57fa80c797bf81bc273309a2515878710
2
SHA256 (ntpa-0.6.1.tar.gz) = 93f6494039d21698de2e512169327caf447ef1143a9e8cc6c1ae304525d7984b
2
SIZE (ntpa-0.6.2.tar.gz) = 1314818
3
SIZE (ntpa-0.6.1.tar.gz) = 1336869
3
TIMESTAMP = 1467051490
(-)files/ntpac.in (+2 lines)
Line 0 Link Here
1
#!/bin/sh
2
exec %%LOCALBASE%%/bin/mono %%LOCALBASE%%/libexec/ntpa/Ntp.Monitor.Cli.exe "$@"
(-)files/ntpad.in (+2 lines)
Line 0 Link Here
1
#!/bin/sh
2
exec %%LOCALBASE%%/bin/mono %%LOCALBASE%%/libexec/ntpa/Ntp.Analyzer.Cli.exe "$@"
(-)files/ntpav.in (+2 lines)
Line 0 Link Here
1
#!/bin/sh
2
exec %%LOCALBASE%%/bin/mono %%LOCALBASE%%/libexec/ntpa/Ntp.Analyzer.Validate.Cli.exe "$@"
(-)pkg-message (-7 / +4 lines)
Lines 1-9 Link Here
1
ntpa has been installed.
1
************************************************************************
2
It requires a MySQL or PostgreeSQL user and database configured for it.
3
2
4
You can do this with the following MySQL commands:
3
NTP Analyzer has been installed. If this is the first time remember to
4
create a MySQL or PostgreeSQL user and database first.
5
5
6
CREATE DATABASE ntpa;
6
************************************************************************
7
CREATE USER 'ntpau'@'localhost' IDENTIFIED BY 'password';
8
GRANT ALL PRIVILEGES ON ntpa.* TO 'ntpau'@'localhost';
9
FLUSH PRIVILEGES;
(-)pkg-plist (-23 / +23 lines)
Lines 32-60 Link Here
32
@sample(,ntpa,640) %%ETCDIR%%/ntpa.conf.sample
32
@sample(,ntpa,640) %%ETCDIR%%/ntpa.conf.sample
33
@owner www
33
@owner www
34
@group www
34
@group www
35
%%WWWDIR%%/index.html
35
%%WEBFILES%%%%WWWDIR%%/index.html
36
%%WWWDIR%%/css/bootstrap.css
36
%%WEBFILES%%%%WWWDIR%%/css/bootstrap.css
37
%%WWWDIR%%/css/bootstrap.css.map
37
%%WEBFILES%%%%WWWDIR%%/css/bootstrap.css.map
38
%%WWWDIR%%/css/bootstrap.min.css
38
%%WEBFILES%%%%WWWDIR%%/css/bootstrap.min.css
39
%%WWWDIR%%/css/bootstrap.min.css.map
39
%%WEBFILES%%%%WWWDIR%%/css/bootstrap.min.css.map
40
%%WWWDIR%%/css/bootstrap-theme.css
40
%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.css
41
%%WWWDIR%%/css/bootstrap-theme.css.map
41
%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.css.map
42
%%WWWDIR%%/css/bootstrap-theme.min.css
42
%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.min.css
43
%%WWWDIR%%/css/bootstrap-theme.min.css.map
43
%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.min.css.map
44
%%WWWDIR%%/css/graph.css
44
%%WEBFILES%%%%WWWDIR%%/css/graph.css
45
%%WWWDIR%%/css/host.css
45
%%WEBFILES%%%%WWWDIR%%/css/host.css
46
%%WWWDIR%%/css/peer.css
46
%%WEBFILES%%%%WWWDIR%%/css/peer.css
47
%%WWWDIR%%/fonts/glyphicons-halflings-regular.eot
47
%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.eot
48
%%WWWDIR%%/fonts/glyphicons-halflings-regular.svg
48
%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.svg
49
%%WWWDIR%%/fonts/glyphicons-halflings-regular.ttf
49
%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.ttf
50
%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff
50
%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff
51
%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff2
51
%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff2
52
%%WWWDIR%%/js/bootstrap.js
52
%%WEBFILES%%%%WWWDIR%%/js/bootstrap.js
53
%%WWWDIR%%/js/bootstrap.min.js
53
%%WEBFILES%%%%WWWDIR%%/js/bootstrap.min.js
54
%%WWWDIR%%/js/jquery.js
54
%%WEBFILES%%%%WWWDIR%%/js/jquery.js
55
%%WWWDIR%%/js/jquery.min.js
55
%%WEBFILES%%%%WWWDIR%%/js/jquery.min.js
56
%%WWWDIR%%/js/jquery.min.map
56
%%WEBFILES%%%%WWWDIR%%/js/jquery.min.map
57
%%WWWDIR%%/js/npm.js
57
%%WEBFILES%%%%WWWDIR%%/js/npm.js
58
@owner
58
@owner
59
@group
59
@group
60
%%EXAMPLESDIR%%/ntpa.conf
60
%%EXAMPLESDIR%%/ntpa.conf

Return to bug 210643