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)
This commit is contained in:
Kurt Jaeger 2016-12-18 17:09:44 +00:00
parent a063e6b633
commit f2758c13ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428882
5 changed files with 58 additions and 5 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= ntpa PORTNAME= ntpa
PORTVERSION= 0.7.6 PORTVERSION= 0.7.10
CATEGORIES= net CATEGORIES= net
MASTER_SITES= http://dist.innolan.net/ MASTER_SITES= http://dist.innolan.net/

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1481372685 TIMESTAMP = 1481972002
SHA256 (ntpa-0.7.6.tar.gz) = 0c24c2640dc78edf8bdcb405df02f81835e6938eb5c4ca2780106091d057bfb5 SHA256 (ntpa-0.7.10.tar.gz) = 43784b81a98dcbf685fc9ea9b85864a4c06b74bcb148deb6ff67304020821867
SIZE (ntpa-0.7.6.tar.gz) = 3245250 SIZE (ntpa-0.7.10.tar.gz) = 2565305

View file

@ -93,7 +93,7 @@ ntpa_reload()
_run_rc_notrunning _run_rc_notrunning
return 1 return 1
else else
echo "Reloading ${name}." echo "Reloading ${name} configuration."
rc_pid=`cat ${pidfile}` rc_pid=`cat ${pidfile}`
kill -USR1 $rc_pid kill -USR1 $rc_pid
fi fi

32
net/ntpa/pkg-deinstall Normal file
View file

@ -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

21
net/ntpa/pkg-install Normal file
View file

@ -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