Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2016 17:09:44 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r428882 - in head/net/ntpa: . files
Message-ID:  <201612181709.uBIH9ica075798@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sun Dec 18 17:09:44 2016
New Revision: 428882
URL: https://svnweb.freebsd.org/changeset/ports/428882

Log:
  net/ntpa: update 0.7.6 -> 0.7.10
  
  - Lookup on known time servers
  - Log management with newsyslog
  - Fixed bug in configuration reload
  - Fixed bug in URIs with mono 2.6
  - Fixed bug in database schema
  - Trim dist package
  
  PR:		215352
  Submitted by:	Carsten Larsen <cs@innolan.dk> (maintainer)

Added:
  head/net/ntpa/pkg-deinstall   (contents, props changed)
  head/net/ntpa/pkg-install   (contents, props changed)
Modified:
  head/net/ntpa/Makefile
  head/net/ntpa/distinfo
  head/net/ntpa/files/ntpa.in

Modified: head/net/ntpa/Makefile
==============================================================================
--- head/net/ntpa/Makefile	Sun Dec 18 16:57:51 2016	(r428881)
+++ head/net/ntpa/Makefile	Sun Dec 18 17:09:44 2016	(r428882)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	ntpa
-PORTVERSION=	0.7.6
+PORTVERSION=	0.7.10
 CATEGORIES=	net
 MASTER_SITES=	http://dist.innolan.net/
 

Modified: head/net/ntpa/distinfo
==============================================================================
--- head/net/ntpa/distinfo	Sun Dec 18 16:57:51 2016	(r428881)
+++ head/net/ntpa/distinfo	Sun Dec 18 17:09:44 2016	(r428882)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1481372685
-SHA256 (ntpa-0.7.6.tar.gz) = 0c24c2640dc78edf8bdcb405df02f81835e6938eb5c4ca2780106091d057bfb5
-SIZE (ntpa-0.7.6.tar.gz) = 3245250
+TIMESTAMP = 1481972002
+SHA256 (ntpa-0.7.10.tar.gz) = 43784b81a98dcbf685fc9ea9b85864a4c06b74bcb148deb6ff67304020821867
+SIZE (ntpa-0.7.10.tar.gz) = 2565305

Modified: head/net/ntpa/files/ntpa.in
==============================================================================
--- head/net/ntpa/files/ntpa.in	Sun Dec 18 16:57:51 2016	(r428881)
+++ head/net/ntpa/files/ntpa.in	Sun Dec 18 17:09:44 2016	(r428882)
@@ -93,7 +93,7 @@ ntpa_reload()
         _run_rc_notrunning
         return 1
     else
-        echo "Reloading ${name}."
+        echo "Reloading ${name} configuration."
         rc_pid=`cat ${pidfile}`
         kill -USR1 $rc_pid
     fi

Added: head/net/ntpa/pkg-deinstall
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/ntpa/pkg-deinstall	Sun Dec 18 17:09:44 2016	(r428882)
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+delnewsyslog() {
+    tmp="/etc/#ntpa$$"
+    sed -e '/^\/var\/log\/ntpa\/ntpa.log /d' /etc/newsyslog.conf >${tmp}
+    cat ${tmp} > /etc/newsyslog.conf
+    rm ${tmp}
+}
+
+newsyslog() {
+    ENTRY=`grep /var/log/ntpa/ntpa.log /etc/newsyslog.conf`
+    DEFAULT='/var/log/ntpa/ntpa.log root:ntpa       660  10    *    @T00  C  /var/run/ntpa/ntpa.pid SIGUSR2'
+    if [ -z "$ENTRY" ]; then
+        exit 0
+    elif [ "$ENTRY" = "$DEFAULT" ]; then
+        delnewsyslog
+    else
+    echo "You have changed the default ntpa entry in \"/etc/newsyslog.conf\"".
+    echo "If you deinstall ntpa permanently, you have to manually remove it"
+    fi
+}
+
+
+case $2 in
+    DEINSTALL)
+        if [ -z "${PACKAGE_BUILDING}" ]; then
+            newsyslog
+        fi
+        ;;
+    POST-DEINSTALL)
+        ;;
+esac

Added: head/net/ntpa/pkg-install
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/ntpa/pkg-install	Sun Dec 18 17:09:44 2016	(r428882)
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+newsyslog() {
+    if grep -q /var/log/ntpa/ntpa.log /etc/newsyslog.conf; then
+        :
+    else
+        cat >> /etc/newsyslog.conf <<EOT
+/var/log/ntpa/ntpa.log root:ntpa       660  10    *    @T00  C  /var/run/ntpa/ntpa.pid SIGUSR2
+EOT
+    fi
+}
+
+case $2 in
+    PRE-INSTALL)
+        ;;      
+    POST-INSTALL)
+        if [ -z "${PACKAGE_BUILDING}" ]; then
+            newsyslog
+        fi
+        ;;
+esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612181709.uBIH9ica075798>