games/PyLotRO: Build bump.
Added a patch to allow connection to the LOTRO servers without modifying the system Python install. Added doinst.sh. Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
39484c4cfe
commit
6ed7820369
|
@ -0,0 +1,22 @@
|
|||
--- PyLotROLauncher/PyLotROUtils.py 2012-11-28 20:06:06.000000000 -0600
|
||||
+++ PyLotROLauncher/PyLotROUtils.py 2013-06-04 21:08:53.032626141 -0500
|
||||
@@ -37,6 +37,7 @@
|
||||
# If Python 3.0 is in use use http otherwise httplib
|
||||
if sys.version_info[:2] < (3, 0):
|
||||
from httplib import HTTPConnection, HTTPSConnection
|
||||
+ import ssl, socket
|
||||
from urllib import quote
|
||||
else:
|
||||
from http.client import HTTPConnection, HTTPSConnection
|
||||
@@ -50,7 +51,10 @@
|
||||
else:
|
||||
url = urlIn[8:].split("/")[0]
|
||||
post = urlIn[8:].replace(url, "")
|
||||
- return HTTPSConnection(url), post
|
||||
+ conn = HTTPSConnection(url)
|
||||
+ sock = socket.create_connection((conn.host, conn.port), conn.timeout, conn.source_address)
|
||||
+ conn.sock = ssl.wrap_socket(sock, conn.key_file, conn.cert_file, ssl_version=ssl.PROTOCOL_TLSv1)
|
||||
+ return conn, post
|
||||
|
||||
def GetText(nodelist):
|
||||
rc = ""
|
|
@ -22,8 +22,8 @@
|
|||
|
||||
|
||||
PRGNAM=PyLotRO
|
||||
VERSION=${VERSION:-0.1.15}
|
||||
BUILD=${BUILD:-1}
|
||||
VERSION=${VERSION:-0.1.15}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -50,6 +50,9 @@ rm -rf $PRGNAM-$VERSION
|
|||
unzip $CWD/$PRGNAM-$VERSION.zip
|
||||
mv $PRGNAM $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
patch -p0 < $CWD/HTTPSConnectionFix.patch
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
|
@ -69,6 +72,7 @@ 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
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -2,7 +2,7 @@ PRGNAM="PyLotRO"
|
|||
VERSION="0.1.15"
|
||||
HOMEPAGE="https://sites.google.com/site/leeslinuxblog/installing-lotro-in-wine"
|
||||
DOWNLOAD="https://sites.google.com/site/leeslinuxblog/PyLotRO-0.1.15.zip"
|
||||
MD5SUM="ff7f0baf94290c44263a1618e7e6a116"
|
||||
MD5SUM="0020630b0be1ae8cee075e994c4feb8d"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
Loading…
Reference in New Issue