aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorRichard Ellis <rellis@dp100.com>2019-12-15 05:24:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-15 05:24:05 +0700
commite6077d43fb0decd570ad2d86777af9e269e19eeb (patch)
tree4e72fba4e23833cfdc042db0523f62149dc3c9c3 /network
parented2efacdce4a9db08da3c9e2f57b242f1bafed83 (diff)
network/chrony: Updated for version 3.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/chrony/chrony.SlackBuild4
-rw-r--r--network/chrony/chrony.info6
-rw-r--r--network/chrony/rc.chrony9
3 files changed, 12 insertions, 7 deletions
diff --git a/network/chrony/chrony.SlackBuild b/network/chrony/chrony.SlackBuild
index 92e3c05de345d..9c31e913e21ab 100644
--- a/network/chrony/chrony.SlackBuild
+++ b/network/chrony/chrony.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=chrony
-VERSION=${VERSION:-3.4}
+VERSION=${VERSION:-3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -96,7 +96,7 @@ make install DESTDIR=$PKG
chown ${NTP_USER}:${NTP_GROUP} $PKG/var/lib/chrony
install -D -m 0644 $CWD/chrony.conf $PKG/etc/chrony.conf.new
install -D -m 0644 $CWD/rc.chrony $PKG/etc/rc.d/rc.chrony.new
-sed -i "s%@NTP_USER@%${NTP_USER}%g" $PKG/etc/rc.d/rc.chrony.new
+sed -i "s%^NTP_USER=@NTP_USER@%NTP_USER=${NTP_USER}%g" $PKG/etc/rc.d/rc.chrony.new
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/network/chrony/chrony.info b/network/chrony/chrony.info
index 19b3264d153c7..fe031f7529ad5 100644
--- a/network/chrony/chrony.info
+++ b/network/chrony/chrony.info
@@ -1,8 +1,8 @@
PRGNAM="chrony"
-VERSION="3.4"
+VERSION="3.5"
HOMEPAGE="https://chrony.tuxfamily.org/"
-DOWNLOAD="https://download.tuxfamily.org/chrony/chrony-3.4.tar.gz"
-MD5SUM="7170e750469c198fc6784047d6f71144"
+DOWNLOAD="https://download.tuxfamily.org/chrony/chrony-3.5.tar.gz"
+MD5SUM="5f66338bc940a9b51eede8f391e7bed3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/network/chrony/rc.chrony b/network/chrony/rc.chrony
index fc74d34ae2513..fdff2facbdab2 100644
--- a/network/chrony/rc.chrony
+++ b/network/chrony/rc.chrony
@@ -1,13 +1,18 @@
#!/bin/sh
+NTP_USER=@NTP_USER@
+
+# place local customizations in /etc/default/chrony
+[ -r /etc/default/chrony ] && . /etc/default/chrony
+
################################################################################
chronyd_start() {
################################################################################
if [ -n "$(pidof chronyd)" ]; then
echo "chronyd seems to be already running."
else
- echo "Starting chronyd: /usr/sbin/chronyd -u @NTP_USER@"
- /usr/sbin/chronyd -u @NTP_USER@
+ echo "Starting chronyd: /usr/sbin/chronyd -u $NTP_USER $CHRONYD_ARGS"
+ /usr/sbin/chronyd -u $NTP_USER $CHRONYD_ARGS
fi
}