summaryrefslogtreecommitdiffstats
path: root/source/n/ntp/ntp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/ntp/ntp.SlackBuild')
-rwxr-xr-xsource/n/ntp/ntp.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/source/n/ntp/ntp.SlackBuild b/source/n/ntp/ntp.SlackBuild
index cbf7c3db5..2031b2a57 100755
--- a/source/n/ntp/ntp.SlackBuild
+++ b/source/n/ntp/ntp.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2017, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=ntp
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -97,13 +97,11 @@ CFLAGS="$SLKCFLAGS" \
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
-# Since the Makefile's install pays no heed to the --bindir settings,
-# we'll move things to where they've always been ourselves:
-mv $PKG/usr/bin/* $PKG/usr/sbin
-rmdir $PKG/usr/bin
-
-# This might only be an empty directory:
-rmdir $PKG/usr/lib/pkgconfig
+# KDE Plasma 5 seems to want ntpdate in /usr/bin unless you have systemd:
+mkdir -p $PKG/usr/bin
+( cd $PKG/usr/bin
+ ln -sf ../sbin/ntpdate .
+)
# This should be empty. Try to remove it, and error out if it's not actually empty:
rmdir $PKG/usr/libexec || exit 1