summaryrefslogtreecommitdiff
path: root/libraries/miniupnpc/slackware-version.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2011-12-17 22:10:44 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-17 22:10:44 -0600
commit140fa35076f6274b38119441d4083f875c70a5a4 (patch)
tree2b2bedf177594c4780dddf21c1c5d0fa06be6cc9 /libraries/miniupnpc/slackware-version.patch
parent654558a4b3a68182900bf4466599cbd8ebd681d7 (diff)
downloadslackbuilds-140fa35076f6274b38119441d4083f875c70a5a4.tar.gz
libraries/miniupnpc: Added (UPnP Control Point library)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/miniupnpc/slackware-version.patch')
-rw-r--r--libraries/miniupnpc/slackware-version.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/libraries/miniupnpc/slackware-version.patch b/libraries/miniupnpc/slackware-version.patch
new file mode 100644
index 0000000000..36dc146d82
--- /dev/null
+++ b/libraries/miniupnpc/slackware-version.patch
@@ -0,0 +1,28 @@
+diff -Naur miniupnpc-1.6.orig/updateminiupnpcstrings.sh miniupnpc-1.6/updateminiupnpcstrings.sh
+--- miniupnpc-1.6.orig/updateminiupnpcstrings.sh 2011-01-27 17:50:40.000000000 +0000
++++ miniupnpc-1.6/updateminiupnpcstrings.sh 2011-12-04 20:55:22.313144966 +0000
+@@ -14,19 +14,11 @@
+ OS_NAME=Debian
+ OS_VERSION=`cat /etc/debian_version`
+ fi
+-# use lsb_release (Linux Standard Base) when available
+-LSB_RELEASE=`which lsb_release`
+-if [ 0 -eq $? -a -x "${LSB_RELEASE}" ]; then
+- OS_NAME=`${LSB_RELEASE} -i -s`
+- OS_VERSION=`${LSB_RELEASE} -r -s`
+- case $OS_NAME in
+- Debian)
+- #OS_VERSION=`${LSB_RELEASE} -c -s`
+- ;;
+- Ubuntu)
+- #OS_VERSION=`${LSB_RELEASE} -c -s`
+- ;;
+- esac
++
++# Slackware specific stuff.
++if [ -f /etc/slackware-version ]; then
++ OS_NAME=`cat /etc/slackware-version | cut -d' ' -f1`
++ OS_VERSION=`cat /etc/slackware-version | cut -d' ' -f2`
+ fi
+
+ # on AmigaOS 3, uname -r returns "unknown", so we use uname -v