diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2022-02-25 12:47:02 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-27 01:09:51 +0700 |
commit | 2c2e470715920553dbad4a129cf8ec891751fdd1 (patch) | |
tree | 0d5f02647e1e12f5fc3c5c4e4e1cb4628abb6db2 /network/miniupnpd/slackware-version.patch | |
parent | b601bc0a41f7b23c1ddfc0b429802bec1921b46d (diff) | |
download | slackbuilds-2c2e470715920553dbad4a129cf8ec891751fdd1.tar.gz |
network/miniupnpd: Updated for version 2.3.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/miniupnpd/slackware-version.patch')
-rw-r--r-- | network/miniupnpd/slackware-version.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/network/miniupnpd/slackware-version.patch b/network/miniupnpd/slackware-version.patch deleted file mode 100644 index 79bd2bdec6..0000000000 --- a/network/miniupnpd/slackware-version.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- a/genconfig.sh 2018-05-05 10:09:05.942853150 +0200 -+++ b/genconfig.sh 2018-05-05 10:26:38.668441749 +0200 -@@ -274,28 +274,35 @@ - OS_VERSION=`grep ^base_version /etc/product | awk '{ print $3 }'` - OS_URL=https://www.clearos.com/ - fi -- # use lsb_release (Linux Standard Base) when available -- LSB_RELEASE=`which lsb_release` -- if [ 0 -eq $? ]; then -- OS_NAME=`${LSB_RELEASE} -i -s` -- OS_VERSION=`${LSB_RELEASE} -r -s` -- case $OS_NAME in -- Debian) -- OS_URL=http://www.debian.org/ -- OS_VERSION=`${LSB_RELEASE} -c -s` -- ;; -- Ubuntu) -- OS_URL=http://www.ubuntu.com/ -- OS_VERSION=`${LSB_RELEASE} -c -s` -- ;; -- Gentoo) -- OS_URL=http://www.gentoo.org/ -- ;; -- arch) -- OS_URL=http://www.archlinux.org/ -- OS_VERSION=`uname -r` -- ;; -- esac -+ # Slackware specific -+ if [ -f /etc/os-release ]; then -+ OS_NAME=$(cat /etc/os-release | grep ^NAME= | cut -d= -f 2 | sed -e 's/^"//' -e 's/"$//') -+ OS_VERSION=$(cat /etc/os-release | grep ^VERSION= | cut -d= -f 2 | sed -e 's/^"//' -e 's/"$//') -+ OS_URL=$(cat /etc/os-release | grep ^HOME_URL= | cut -d= -f 2 | sed -e 's/^"//' -e 's/"$//') -+ else -+ # otherwise use lsb_release (Linux Standard Base) when available -+ LSB_RELEASE=`which lsb_release` -+ if [ 0 -eq $? ]; then -+ OS_NAME=`${LSB_RELEASE} -i -s` -+ OS_VERSION=`${LSB_RELEASE} -r -s` -+ case $OS_NAME in -+ Debian) -+ OS_URL=http://www.debian.org/ -+ OS_VERSION=`${LSB_RELEASE} -c -s` -+ ;; -+ Ubuntu) -+ OS_URL=http://www.ubuntu.com/ -+ OS_VERSION=`${LSB_RELEASE} -c -s` -+ ;; -+ Gentoo) -+ OS_URL=http://www.gentoo.org/ -+ ;; -+ arch) -+ OS_URL=http://www.archlinux.org/ -+ OS_VERSION=`uname -r` -+ ;; -+ esac -+ fi - fi - echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} - FW=netfilter |