aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network/ucarp/getopt.patch12
-rw-r--r--network/ucarp/ucarp.SlackBuild14
2 files changed, 24 insertions, 2 deletions
diff --git a/network/ucarp/getopt.patch b/network/ucarp/getopt.patch
new file mode 100644
index 000000000000..c6221ac22096
--- /dev/null
+++ b/network/ucarp/getopt.patch
@@ -0,0 +1,12 @@
+diff -ru ucarp-1.5.2.orig/src/ucarp_p.h ucarp-1.5.2/src/ucarp_p.h
+--- ucarp-1.5.2.orig/src/ucarp_p.h 2009-05-27 21:39:23.000000000 +0000
++++ ucarp-1.5.2/src/ucarp_p.h 2020-02-09 17:57:05.816000000 +0000
+@@ -1,7 +1,7 @@
+ #ifndef __CARP_P_H__
+ #define __CARP_P_H__ 1
+
+-static const char *GETOPT_OPTIONS = "i:s:v:p:Pa:hb:k:x:nu:d:r:zf:BoSM";
++static const char *GETOPT_OPTIONS = "i:s:v:p:Pa:hb:k:x:nu:d:r:zf:Bo:SM";
+
+ static struct option long_options[] = {
+ { "interface", 1, NULL, 'i' },
diff --git a/network/ucarp/ucarp.SlackBuild b/network/ucarp/ucarp.SlackBuild
index 2e23d888a63c..815e891e4029 100644
--- a/network/ucarp/ucarp.SlackBuild
+++ b/network/ucarp/ucarp.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ucarp
-# Copyright 2017 Wayne Cuddy, Fairfax, VA (USA)
+# Copyright 2020 Wayne Cuddy, Fairfax, VA (USA)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,9 +22,17 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# 2017
+# Initial release.
+#
+# 2020-02-10
+# Patch release to correct a bug that prevents the '-o' flag from working.
+#
+
PRGNAM=ucarp
VERSION=${VERSION:-1.5.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +77,8 @@ 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 {} \;
+patch -p1 <$CWD/getopt.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \