summaryrefslogtreecommitdiffstats
path: root/network/ntpclient
diff options
context:
space:
mode:
author B. Watson2022-01-25 07:22:53 +0100
committer Willy Sudiarto Raharjo2022-01-30 02:35:58 +0100
commit727ef0f8563854df006efb7d53eebf83986cb3d8 (patch)
tree81dae54cd32dbd2e204579ae554fba71ca43d393 /network/ntpclient
parente8e5cd9e7dcd59da0dc4f255dc094c511df867e6 (diff)
downloadslackbuilds-727ef0f8563854df006efb7d53eebf83986cb3d8.tar.gz
network/ntpclient: Fix -current build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ntpclient')
-rw-r--r--network/ntpclient/ntpclient.SlackBuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/network/ntpclient/ntpclient.SlackBuild b/network/ntpclient/ntpclient.SlackBuild
index b7c5796ff7..8c7d328ad9 100644
--- a/network/ntpclient/ntpclient.SlackBuild
+++ b/network/ntpclient/ntpclient.SlackBuild
@@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220125 bkw: Modified by the SlackBuilds.org project.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ntpclient
@@ -80,6 +82,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# 20220125 bkw: fix build for -current (missing include).
+sed -i '/sys\/ioctl\.h/a#include <linux/sockios.h>' $PRGNAM.c
+
+# 20220125 bkw: fix man page typo.
+sed -i 's/^top after/s&/' $PRGNAM.1
+
sed -i "/^CFLAGS += -O2$/d" Makefile
CFLAGS="$SLKCFLAGS" \
make