aboutsummaryrefslogtreecommitdiff
path: root/network/wsdd2/wsdd2.SlackBuild
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2022-04-29 00:19:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-30 13:51:52 +0700
commit105af502a937dfdaf11b08e3103191c8932b9084 (patch)
tree367d3af129caa6cf1334d697c2e0edc473a56667 /network/wsdd2/wsdd2.SlackBuild
parente37623fcbac9c1d3a0ef0de603582c6bbb9f0466 (diff)
network/wsdd2: Updated for version 1.8.6.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/wsdd2/wsdd2.SlackBuild')
-rw-r--r--network/wsdd2/wsdd2.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/network/wsdd2/wsdd2.SlackBuild b/network/wsdd2/wsdd2.SlackBuild
index 63bdbe7a856a8..2aad5dad2417f 100644
--- a/network/wsdd2/wsdd2.SlackBuild
+++ b/network/wsdd2/wsdd2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wsdd2
-# Copyright 2020 Tim Dickson Scotland
+# Copyright 2020,2022 Tim Dickson Scotland
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wsdd2
-VERSION=${VERSION:-1.8.3.2}
+VERSION=${VERSION:-1.8.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,12 +81,14 @@ find -L . \
#we are going to have to fix Makefile as we don't want systemd stuff
sed -i "/systemd/d" Makefile
-make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
-make install DESTDIR=$PKG MANINSTALLDIR="usr/man" INSTALLPREFIX="usr"
+#patch the source to remove generally useless warning
+patch wsdd2.c <${CWD}/wsdd2.patch
+#note: hopefully upstream will fix this. https://github.com/Netgear/wsdd2/issues/39
+make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
+make install debug_W=-1 debug_L=-1 DESTDIR=$PKG MANDIR="/usr/man" INSTALLPREFIX="usr"
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
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done