diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2022-03-03 09:37:28 +0000 |
---|---|---|
committer | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-05 00:17:45 +1300 |
commit | 1b9116cd1dfd47817d1351926a76eeb59a285ddc (patch) | |
tree | 9e8d18637cf595f6365549c086f6106af437941f /network/valknut | |
parent | b45c63eb7b49b093c259b1a1bfe897d88ff5fa60 (diff) |
network/valknut: Removed.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'network/valknut')
-rw-r--r-- | network/valknut/README | 1 | ||||
-rw-r--r-- | network/valknut/dcoptions.patch | 55 | ||||
-rw-r--r-- | network/valknut/doinst.sh | 3 | ||||
-rw-r--r-- | network/valknut/main.patch | 11 | ||||
-rw-r--r-- | network/valknut/slack-desc | 19 | ||||
-rw-r--r-- | network/valknut/valknut.SlackBuild | 117 | ||||
-rw-r--r-- | network/valknut/valknut.info | 10 |
7 files changed, 0 insertions, 216 deletions
diff --git a/network/valknut/README b/network/valknut/README deleted file mode 100644 index 432b9006fe623..0000000000000 --- a/network/valknut/README +++ /dev/null @@ -1 +0,0 @@ -Valknut is an open source cross platform client for the Direct Connect network. diff --git a/network/valknut/dcoptions.patch b/network/valknut/dcoptions.patch deleted file mode 100644 index 1d218cc2ed2db..0000000000000 --- a/network/valknut/dcoptions.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- valknut/dcoptions.cpp.orig 2014-12-02 20:28:59.039798842 +0100 -+++ valknut/dcoptions.cpp 2014-12-02 22:25:06.352312671 +0100 -@@ -808,15 +808,18 @@ - { - PushButton_GETINTERNETIP->setEnabled(false); - -- QHttpRequestHeader header( "GET", "/ip.php" ); -- header.setValue( "Host", "wxdcgui.sourceforge.net" ); -+ //QHttpRequestHeader header( "GET", "/ip.php" ); -+ QHttpRequestHeader header( "GET", "/" ); -+ //header.setValue( "Host", "wxdcgui.sourceforge.net" ); -+ header.setValue( "Host", "www.myip.se" ); - QString useragent = QString("Valknut/") + PACKAGE_VERSION; - //printf("User-Agent=%s\n", useragent.toAscii().constData()); - header.setValue( "User-Agent", useragent ); - - m_pHttp = new QHttp(); - connect( m_pHttp, SIGNAL(done(bool)), this, SLOT(slotGotInternetIP(bool)) ); -- m_pHttp->setHost( "wxdcgui.sourceforge.net" ); -+ //m_pHttp->setHost( "wxdcgui.sourceforge.net" ); -+ m_pHttp->setHost( "www.myip.se" ); - m_pHttp->request( header ); - } - -@@ -834,20 +837,25 @@ - else - { - QString html = QString(m_pHttp->readAll()); -- int start = html.indexOf("<ip>"); -- int end = html.indexOf("</ip>",start); -- -+ -+ int start = html.indexOf("<b>"); -+ // We need the 2nd "bold" (<b>) attribute -+ start = html.indexOf("<b>",start+3); -+ int end = html.indexOf("</b>",start); -+ - if ( ( start == -1 ) || ( end < start ) ) - { - QMessageBox::warning( - this, - tr("Get Internet IP"), -- tr("Unexpected response from ") + "http://wxdcgui.sourceforge.net" -+ tr("Unexpected response from ") + "http://www.myip.se" -+ // tr("Unexpected response from ") + "http://wxdcgui.sourceforge.net" - ); - } - else - { -- start += 10; -+ //start += 10; // wxgui.sourceforge.net -+ start += 21; // www.myip.se - QString ip = html.mid( start, end - start ); - - if ( QHostAddress().setAddress(ip) ) diff --git a/network/valknut/doinst.sh b/network/valknut/doinst.sh deleted file mode 100644 index 5fb28930db0b9..0000000000000 --- a/network/valknut/doinst.sh +++ /dev/null @@ -1,3 +0,0 @@ -if [ -x /usr/bin/update-desktop-database ]; then - /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 -fi diff --git a/network/valknut/main.patch b/network/valknut/main.patch deleted file mode 100644 index 8106bbd384a9a..0000000000000 --- a/network/valknut/main.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- valknut/main.cpp.orig 2013-09-29 13:55:16.194456921 +0200 -+++ valknut/main.cpp 2013-09-29 13:55:30.942159705 +0200 -@@ -338,7 +338,7 @@ - delete dbg; - printf("exit\n"); - delete qApp; -- _exit(0); -+ exit(0); - } - - #ifndef WIN32 diff --git a/network/valknut/slack-desc b/network/valknut/slack-desc deleted file mode 100644 index a922461f1e199..0000000000000 --- a/network/valknut/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -valknut: valknut (Neomodus DC Client) -valknut: -valknut: Valknut is an open source cross platform client for the -valknut: Direct Connect network. -valknut: -valknut: -valknut: -valknut: -valknut: -valknut: Website: http://wxdcgui.sourceforge.net/ -valknut: diff --git a/network/valknut/valknut.SlackBuild b/network/valknut/valknut.SlackBuild deleted file mode 100644 index 6f86a0c63294c..0000000000000 --- a/network/valknut/valknut.SlackBuild +++ /dev/null @@ -1,117 +0,0 @@ -#!/bin/bash - -# Slackware build script for valknut - -# Copyright 2014 Kevin Paulus <goarilla@gmail.com>, Belgium -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=valknut -VERSION=${VERSION:-0.4.9} -BUILD=${BUILD:-2} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# Main patch -patch -p0 < "$CWD"/main.patch valknut/main.cpp - -# Dcoptions (myip) patch -patch -p0 < "$CWD"/dcoptions.patch valknut/dcoptions.cpp - -CFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib"${LIBDIRSUFFIX}" \ - --mandir=/usr/man \ - --sysconfdir=/etc \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR="$PKG" - -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 - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION - -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -rm $PKG/usr/share/valknut/COPYING - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/valknut/valknut.info b/network/valknut/valknut.info deleted file mode 100644 index 5ff1233ab6666..0000000000000 --- a/network/valknut/valknut.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="valknut" -VERSION="0.4.9" -HOMEPAGE="http://wxdcgui.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/project/wxdcgui/valknut-qt4/0.4.9/valknut-0.4.9.tar.bz2" -MD5SUM="c25d68c447cb9deb4262befdde9fccea" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="dclib" -MAINTAINER="Kevin Paulus" -EMAIL="goarilla@gmail.com" |