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, 12 insertions, 4 deletions
diff --git a/source/n/ntp/ntp.SlackBuild b/source/n/ntp/ntp.SlackBuild
index e68125b8e..4433a4b35 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, 2020 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2017, 2018, 2020, 2023 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:-8}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -56,6 +56,9 @@ else
SLKCFLAGS="-O2"
fi
+# GCC 14 "fix":
+SLKCFLAGS="$SLKCFLAGS -Wno-error=int-conversion"
+
TMP=${TMP:-/tmp}
PKG=$TMP/package-ntp
@@ -66,8 +69,6 @@ rm -rf ntp-${VERSION}*
tar xvf $CWD/ntp-${VERSION}*.tar.?z* || exit 1
cd ntp-${VERSION}* || exit 1
-zcat $CWD/ntp.nano.diff.gz | patch -p1 --verbose || exit 1
-
chown -R root:root .
find . \
\( -perm 2777 -o -perm 2755 -o -perm 2775 \) \
@@ -127,6 +128,13 @@ cat $CWD/ntp.logrotate > $PKG/etc/logrotate.d/ntp.new
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.ntpd > $PKG/etc/rc.d/rc.ntpd.new
+# Add ntpdate man page from Debian:
+# src: https://packages.debian.org/stretch/ntpdate
+cp -a $CWD/ntpdate.8.gz $PKG/usr/man/man8
+chown root:root $PKG/usr/man/man8/ntpdate.8.gz
+chmod 644 $PKG/usr/man/man8/ntpdate.8.gz
+gzip -d $PKG/usr/man/man8/ntpdate.8.gz
+
mv $PKG/usr/doc/ntp-$VERSION/*.html $PKG/usr/doc/ntp-$VERSION/html || exit 1
cp -a \
COPYRIGHT NEWS README* TODO WHERE-TO-START \