From owner-svn-ports-head@freebsd.org Sat May 28 14:46:45 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2453FB4DB97; Sat, 28 May 2016 14:46:45 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DB38A1FAE; Sat, 28 May 2016 14:46:44 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4SEkif1047505; Sat, 28 May 2016 14:46:44 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4SEkhho047496; Sat, 28 May 2016 14:46:43 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201605281446.u4SEkhho047496@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sat, 28 May 2016 14:46:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416000 - in head: . net net/ntpa net/ntpa/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 14:46:45 -0000 Author: madpilot Date: Sat May 28 14:46:43 2016 New Revision: 416000 URL: https://svnweb.freebsd.org/changeset/ports/416000 Log: New port: net/ntpa NTP Analyzer is a tool dedicated to analyze the operation of time servers. NTP Analyzer works by collecting data from the ntp daemon. Graphs and web pages can then be generated to visualize the activities of hosts and peers. WWW: https://bitbucket.org/anguist/ntpa PR: 208940 Submitted by: Carsten Larsen Added: head/net/ntpa/ head/net/ntpa/Makefile (contents, props changed) head/net/ntpa/distinfo (contents, props changed) head/net/ntpa/files/ head/net/ntpa/files/ntpa.in (contents, props changed) head/net/ntpa/pkg-descr (contents, props changed) head/net/ntpa/pkg-message (contents, props changed) head/net/ntpa/pkg-plist (contents, props changed) Modified: head/GIDs head/UIDs head/net/Makefile Modified: head/GIDs ============================================================================== --- head/GIDs Sat May 28 14:46:28 2016 (r415999) +++ head/GIDs Sat May 28 14:46:43 2016 (r416000) @@ -222,6 +222,7 @@ _xsi:*:600: _tss:*:601: _pkcs11:*:602: freeswitch:*:610: +ntpa:*:615: caldavd:*:639: monkeysphere:*:641: aox:*:666: Modified: head/UIDs ============================================================================== --- head/UIDs Sat May 28 14:46:28 2016 (r415999) +++ head/UIDs Sat May 28 14:46:43 2016 (r416000) @@ -227,6 +227,7 @@ _xsi:*:600:600::0:0:XMLSysInfo User:/non _tss:*:601:601:daemon:0:0:TrouSerS user:/var/empty:/usr/sbin/nologin _pkcs11:*:602:602:daemon:0:0:opencryptoki user:/var/empty:/usr/sbin/nologin freeswitch:*:610:610::0:0:Freeswitch user:/nonexistent:/usr/sbin/nologin +ntpa:*:615:615::0:0:NTPa user:/nonexistent:/usr/sbin/nologin _pla:*:636:80::0:0:phpLDAPAdmin Owner:/nonexistent:/usr/sbin/nologin caldavd:*:639:639::0:0:Caldavd user:/var/db/caldavd:/usr/sbin/nologin monkeysphere:*:641:641::0:0:Monkeysphere User:/var/monkeysphere:/usr/local/bin/bash Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sat May 28 14:46:28 2016 (r415999) +++ head/net/Makefile Sat May 28 14:46:43 2016 (r416000) @@ -461,6 +461,7 @@ SUBDIR += ntop SUBDIR += ntp SUBDIR += ntp-devel + SUBDIR += ntpa SUBDIR += ntraceroute SUBDIR += nusoap SUBDIR += nxproxy Added: head/net/ntpa/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntpa/Makefile Sat May 28 14:46:43 2016 (r416000) @@ -0,0 +1,47 @@ +# $FreeBSD$ + +PORTNAME= ntpa +PORTVERSION= 0.6.1 +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) +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: + ${MKDIR} ${STAGEDIR}${WWWDIR} + (cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) + ${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 Added: head/net/ntpa/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntpa/distinfo Sat May 28 14:46:43 2016 (r416000) @@ -0,0 +1,3 @@ +TIMESTAMP = 1464440774 +SHA256 (ntpa-0.6.1.tar.gz) = 93f6494039d21698de2e512169327caf447ef1143a9e8cc6c1ae304525d7984b +SIZE (ntpa-0.6.1.tar.gz) = 1336869 Added: head/net/ntpa/files/ntpa.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntpa/files/ntpa.in Sat May 28 14:46:43 2016 (r416000) @@ -0,0 +1,109 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: ntpa +# REQUIRE: networking +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf to enable ntpa: +# +# ntpa_enable (bool): Set to NO by default. +# Set it to YES to enable ntpa. +# ntpa_config (path): Set to %%PREFIX%%/etc/ntpa/ntpa.conf +# by default. +# ntpa_tempdir (path): Set to /tmp by default. +# ntpa_user (user): Set to ntpa by default. +# +# Run additional instances of ntpa with: +# ln -s ntpa ntpa_name +# + +. /etc/rc.subr + +# taken from security/openvpn. +name="$file" ; + +case "$0" in +/etc/rc*) + # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), + # so get the name of the script from $_file + name="$_file" + ;; +*/service) + # do not use this as $0 + ;; +*) + name="$0" + ;; +esac + +# default name to "ntpa" if guessing failed +# Trailing semicolon for service(8)'s benefit: +name="${name:-ntpa}" ; +name="${name##*/}" +desc="Monitors NTP daemon" +rcvar=${name}_enable + +start_cmd=ntpa_start +stop_cmd=ntpa_stop +reload_cmd=ntpa_reload + +extra_commands=reload + +load_rc_config ${name} + +eval ": \${${name}_enable:=\"NO\"}" +eval ": \${${name}_config:=\"%%PREFIX%%/etc/ntpa/${name}.conf\"}" +eval ": \${${name}_tempdir:=\"/tmp/\"}" +eval ": \${${name}_user:=\"ntpa\"}" + +config="$(eval echo \${${name}_config})" +tempdir="$(eval echo \${${name}_tempdir})" +ntpauser="$(eval echo \${${name}_user})" + +pid_dir=/var/run/ntpa +pidfile="$pid_dir/${name}.pid" + +ntpa_start() +{ + if [ ! -d "$pid_dir" ]; then + install -m 0775 -g $ntpauser -o $ntpauser -d "$pid_dir" + fi + + if [ -f ${pidfile} ]; then + rc_pid=`cat ${pidfile}` + echo 1>&2 "${name} already running? (pid=$rc_pid)." + return 1 + else + echo "Starting ${name}." + su -m ${ntpauser} -c "sh -c '%%PREFIX%%/sbin/ntpa --config ${config} --writepid ${pidfile} --temp ${tempdir} --daemon ${name} &'" + fi +} + +ntpa_reload() +{ + if [ ! -f ${pidfile} ]; then + _run_rc_notrunning + return 1 + else + echo "Reloading ${name}." + rc_pid=`cat ${pidfile}` + kill -USR1 $rc_pid + fi +} + +ntpa_stop() +{ + if [ ! -f ${pidfile} ]; then + _run_rc_notrunning + return 1 + else + echo "Stopping ${name}." + rc_pid=`cat ${pidfile}` + kill -TERM $rc_pid + wait_for_pids ${rc_pid} + fi +} + +run_rc_command "$1" Added: head/net/ntpa/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntpa/pkg-descr Sat May 28 14:46:43 2016 (r416000) @@ -0,0 +1,8 @@ +NTP Analyzer is a tool dedicated to analyze the operation of time +servers. + +NTP Analyzer works by collecting data from the ntp daemon. Graphs +and web pages can then be generated to visualize the activities of +hosts and peers. + +WWW: https://bitbucket.org/anguist/ntpa Added: head/net/ntpa/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntpa/pkg-message Sat May 28 14:46:43 2016 (r416000) @@ -0,0 +1,9 @@ +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: + +CREATE DATABASE ntpa; +CREATE USER 'ntpau'@'localhost' IDENTIFIED BY 'password'; +GRANT ALL PRIVILEGES ON ntpa.* TO 'ntpau'@'localhost'; +FLUSH PRIVILEGES; Added: head/net/ntpa/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/ntpa/pkg-plist Sat May 28 14:46:43 2016 (r416000) @@ -0,0 +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 +@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 +@dir(ntpa,ntpa,750) /var/log/ntpa +@dir(ntpa,ntpa,755) /var/run/ntpa