Index: head/net/ntpa/Makefile =================================================================== --- head/net/ntpa/Makefile (revision 417778) +++ head/net/ntpa/Makefile (revision 417779) @@ -1,47 +1,63 @@ +# Created by: Carsten Larsen # $FreeBSD$ PORTNAME= ntpa -PORTVERSION= 0.6.1 +PORTVERSION= 0.6.2 CATEGORIES= net MASTER_SITES= http://suyai.innolan.net/ MAINTAINER= cs@innolan.dk COMMENT= NTP data collection and charting LICENSE= MIT -OPTIONS_DEFINE= GRAPH PGSQL MYSQL -OPTION_MULTI= PGSQL MYSQL -GRAPH_DESC= Graphs and HTML generation (requires Cairo) +OPTIONS_DEFINE= WEBFILES GRAPH +OPTIONS_DEFAULT= PGSQL +OPTIONS_MULTI= DATABASE +OPTIONS_MULTI_DATABASE= PGSQL MYSQL +WEBFILES_IMPLIES= GRAPH +WEBFILES_DESC= Install web files +GRAPH_DESC= Graph generation (requires Cairo) PGSQL_DESC= PostgreSQL Connector MYSQL_DESC= MySQL Connector (GPL) -OPTIONS_DEFAULT= GRAPH PGSQL - GRAPH_LIB_DEPENDS= libgdiplus.so:x11-toolkits/libgdiplus \ libcairo.so:graphics/cairo \ libpng.so:graphics/png GRAPH_RUN_DEPENDS= ${LOCALBASE}/share/fonts/webfonts/arial.ttf:x11-fonts/webfonts GRAPH_CONFIGURE_ON= GRAPH MYSQL_CONFIGURE_ON= MYSQL PGSQL_CONFIGURE_ON= PGSQL USES= mono NO_ARCH= yes HAS_CONFIGURE= yes OPTIONS_SUB= yes USE_RC_SUBR= ntpa USERS= ntpa GROUPS= ntpa -post-install: +SUB_FILES= ntpad ntpav ntpac +WRKSRC= ${WRKDIR}/anguist-ntpa-9204e1e36b8d + +.include + +pre-install: + @${MKDIR} ${WRKSRC}/script + ${MV} ${WRKDIR}/ntpad ${WRKSRC}/script/ntpa + ${MV} ${WRKDIR}/ntpav ${WRKSRC}/script/ntpav + ${MV} ${WRKDIR}/ntpac ${WRKSRC}/script/ntpac + +post-install-WEBFILES-on: ${MKDIR} ${STAGEDIR}${WWWDIR} (cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) + +post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) ${INSTALL_MAN} ${WRKSRC}/docs/ntpa.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 ${MKDIR} ${STAGEDIR}/var/log/ntpa ${MKDIR} ${STAGEDIR}/var/run/ntpa .include Index: head/net/ntpa/distinfo =================================================================== --- head/net/ntpa/distinfo (revision 417778) +++ head/net/ntpa/distinfo (revision 417779) @@ -1,3 +1,3 @@ -TIMESTAMP = 1464440774 -SHA256 (ntpa-0.6.1.tar.gz) = 93f6494039d21698de2e512169327caf447ef1143a9e8cc6c1ae304525d7984b -SIZE (ntpa-0.6.1.tar.gz) = 1336869 +TIMESTAMP = 1467206651 +SHA256 (ntpa-0.6.2.tar.gz) = f5d3471dae38f60d6a16b5d7610dc3b57fa80c797bf81bc273309a2515878710 +SIZE (ntpa-0.6.2.tar.gz) = 1314818 Index: head/net/ntpa/files/ntpac.in =================================================================== --- head/net/ntpa/files/ntpac.in (nonexistent) +++ head/net/ntpa/files/ntpac.in (revision 417779) @@ -0,0 +1,2 @@ +#!/bin/sh +exec %%LOCALBASE%%/bin/mono %%LOCALBASE%%/libexec/ntpa/Ntp.Monitor.Cli.exe "$@" Property changes on: head/net/ntpa/files/ntpac.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/ntpa/files/ntpad.in =================================================================== --- head/net/ntpa/files/ntpad.in (nonexistent) +++ head/net/ntpa/files/ntpad.in (revision 417779) @@ -0,0 +1,2 @@ +#!/bin/sh +exec %%LOCALBASE%%/bin/mono %%LOCALBASE%%/libexec/ntpa/Ntp.Analyzer.Cli.exe "$@" Property changes on: head/net/ntpa/files/ntpad.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/ntpa/files/ntpav.in =================================================================== --- head/net/ntpa/files/ntpav.in (nonexistent) +++ head/net/ntpa/files/ntpav.in (revision 417779) @@ -0,0 +1,2 @@ +#!/bin/sh +exec %%LOCALBASE%%/bin/mono %%LOCALBASE%%/libexec/ntpa/Ntp.Analyzer.Validate.Cli.exe "$@" Property changes on: head/net/ntpa/files/ntpav.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/ntpa/pkg-message =================================================================== --- head/net/ntpa/pkg-message (revision 417778) +++ head/net/ntpa/pkg-message (revision 417779) @@ -1,9 +1,6 @@ -ntpa has been installed. -It requires a MySQL or PostgreeSQL user and database configured for it. +************************************************************************ -You can do this with the following MySQL commands: +NTP Analyzer has been installed. If this is the first time remember to +create a MySQL or PostgreeSQL user and database first. -CREATE DATABASE ntpa; -CREATE USER 'ntpau'@'localhost' IDENTIFIED BY 'password'; -GRANT ALL PRIVILEGES ON ntpa.* TO 'ntpau'@'localhost'; -FLUSH PRIVILEGES; +************************************************************************ Index: head/net/ntpa/pkg-plist =================================================================== --- head/net/ntpa/pkg-plist (revision 417778) +++ head/net/ntpa/pkg-plist (revision 417779) @@ -1,77 +1,77 @@ sbin/ntpa sbin/ntpac sbin/ntpav libexec/ntpa/NPlot.dll libexec/ntpa/Ntp.Analyzer.Cli.exe libexec/ntpa/Ntp.Analyzer.Data.dll libexec/ntpa/Ntp.Analyzer.dll libexec/ntpa/Ntp.Analyzer.Import.dll libexec/ntpa/Ntp.Analyzer.Localize.dll libexec/ntpa/Ntp.Analyzer.Log.dll libexec/ntpa/Ntp.Analyzer.Objects.dll libexec/ntpa/Ntp.Analyzer.Process.dll libexec/ntpa/Ntp.Analyzer.Validate.Cli.exe libexec/ntpa/Ntp.Common.dll libexec/ntpa/Ntp.Config.dll libexec/ntpa/Ntp.Data.dll libexec/ntpa/Ntp.Data.Provider.dll libexec/ntpa/Ntp.Interop.dll libexec/ntpa/Ntp.Monitor.Client.dll libexec/ntpa/Ntp.Monitor.Cli.exe libexec/ntpa/Ntp.Monitor.Server.dll libexec/ntpa/Ntp.Process.dll %%MYSQL%%libexec/ntpa/MySql.Data.dll %%PGSQL%%libexec/ntpa/Npgsql.dll %%PGSQL%%libexec/ntpa/de/Npgsql.resources.dll %%PGSQL%%libexec/ntpa/es/Npgsql.resources.dll %%PGSQL%%libexec/ntpa/fi/Npgsql.resources.dll %%PGSQL%%libexec/ntpa/fr/Npgsql.resources.dll %%PGSQL%%libexec/ntpa/ja/Npgsql.resources.dll %%PGSQL%%libexec/ntpa/zh-CN/Npgsql.resources.dll man/man8/ntpa.8.gz @sample(,ntpa,640) %%ETCDIR%%/ntpa.conf.sample @owner www @group www -%%WWWDIR%%/index.html -%%WWWDIR%%/css/bootstrap.css -%%WWWDIR%%/css/bootstrap.css.map -%%WWWDIR%%/css/bootstrap.min.css -%%WWWDIR%%/css/bootstrap.min.css.map -%%WWWDIR%%/css/bootstrap-theme.css -%%WWWDIR%%/css/bootstrap-theme.css.map -%%WWWDIR%%/css/bootstrap-theme.min.css -%%WWWDIR%%/css/bootstrap-theme.min.css.map -%%WWWDIR%%/css/graph.css -%%WWWDIR%%/css/host.css -%%WWWDIR%%/css/peer.css -%%WWWDIR%%/fonts/glyphicons-halflings-regular.eot -%%WWWDIR%%/fonts/glyphicons-halflings-regular.svg -%%WWWDIR%%/fonts/glyphicons-halflings-regular.ttf -%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff -%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff2 -%%WWWDIR%%/js/bootstrap.js -%%WWWDIR%%/js/bootstrap.min.js -%%WWWDIR%%/js/jquery.js -%%WWWDIR%%/js/jquery.min.js -%%WWWDIR%%/js/jquery.min.map -%%WWWDIR%%/js/npm.js +%%WEBFILES%%%%WWWDIR%%/index.html +%%WEBFILES%%%%WWWDIR%%/css/bootstrap.css +%%WEBFILES%%%%WWWDIR%%/css/bootstrap.css.map +%%WEBFILES%%%%WWWDIR%%/css/bootstrap.min.css +%%WEBFILES%%%%WWWDIR%%/css/bootstrap.min.css.map +%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.css +%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.css.map +%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.min.css +%%WEBFILES%%%%WWWDIR%%/css/bootstrap-theme.min.css.map +%%WEBFILES%%%%WWWDIR%%/css/graph.css +%%WEBFILES%%%%WWWDIR%%/css/host.css +%%WEBFILES%%%%WWWDIR%%/css/peer.css +%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.eot +%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.svg +%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.ttf +%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff +%%WEBFILES%%%%WWWDIR%%/fonts/glyphicons-halflings-regular.woff2 +%%WEBFILES%%%%WWWDIR%%/js/bootstrap.js +%%WEBFILES%%%%WWWDIR%%/js/bootstrap.min.js +%%WEBFILES%%%%WWWDIR%%/js/jquery.js +%%WEBFILES%%%%WWWDIR%%/js/jquery.min.js +%%WEBFILES%%%%WWWDIR%%/js/jquery.min.map +%%WEBFILES%%%%WWWDIR%%/js/npm.js @owner @group %%EXAMPLESDIR%%/ntpa.conf %%EXAMPLESDIR%%/ntpa.graph.conf %%EXAMPLESDIR%%/ntpa.inc.conf %%EXAMPLESDIR%%/ntpa.inc.graphs1 %%EXAMPLESDIR%%/ntpa.inc.graphs2 %%EXAMPLESDIR%%/ntpa.inc.menu %%EXAMPLESDIR%%/ntpa.inc.pages1 %%EXAMPLESDIR%%/ntpa.inc.pages2 %%EXAMPLESDIR%%/ntpa.stat2.conf %%EXAMPLESDIR%%/ntpa.stat.conf %%EXAMPLESDIR%%/ntpa.web.conf %%EXAMPLESDIR%%/ntpa.web.small.conf -@dir(www,ntpa,775) %%WWWDIR%% -@dir(www,www,) %%WWWDIR%%/css -@dir(www,www,) %%WWWDIR%%/fonts -@dir(www,www,) %%WWWDIR%%/js +%%WEBFILES%%@dir(www,ntpa,775) %%WWWDIR%% +%%WEBFILES%%@dir(www,www,) %%WWWDIR%%/css +%%WEBFILES%%@dir(www,www,) %%WWWDIR%%/fonts +%%WEBFILES%%@dir(www,www,) %%WWWDIR%%/js @dir(ntpa,ntpa,750) /var/log/ntpa @dir(ntpa,ntpa,755) /var/run/ntpa