diff options
author | Richard Ellis <rellis@dp100.com> | 2018-12-27 10:04:56 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-12-27 10:04:56 +0700 |
commit | cd9327515e3aaad28ab2992daeb96f628ec04dba (patch) | |
tree | 001339011d10be5660ccc9efb47437b731802d20 /network/chrony/chrony.SlackBuild | |
parent | e2cfbb6e1cb4f402d04a8ea4ca765c6789e592a7 (diff) |
network/chrony: Updated for version 3.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/chrony/chrony.SlackBuild')
-rw-r--r-- | network/chrony/chrony.SlackBuild | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/network/chrony/chrony.SlackBuild b/network/chrony/chrony.SlackBuild index 572a856cece06..92e3c05de345d 100644 --- a/network/chrony/chrony.SlackBuild +++ b/network/chrony/chrony.SlackBuild @@ -23,10 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=chrony -VERSION=${VERSION:-3.2} +VERSION=${VERSION:-3.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +NTP_USER=${NTP_USER:-chrony} +NTP_GROUP=${NTP_GROUP:-chrony} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -56,9 +59,9 @@ fi set -e -if ! getent group chrony 2>&1 > /dev/null || \ - ! getent passwd chrony 2>&1 > /dev/null; then - echo "You must have a \"chrony\" user and group in order to run this script." +if ! getent group ${NTP_GROUP} 2>&1 > /dev/null || \ + ! getent passwd ${NTP_USER} 2>&1 > /dev/null; then + echo "You must have a \"${NTP_USER}\" user and group in order to run this script." echo "See the included README for a suggested UID/GID." exit 1 fi @@ -85,14 +88,15 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --with-user=chrony + --with-user=${NTP_USER} make make install DESTDIR=$PKG -chown chrony:chrony $PKG/var/lib/chrony +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 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 |