Browse Source

xap/heybuddy: Upgraded to heybuddy-0.2.3.

slackware-14.2
Damien Goutte-Gattat 11 years ago
parent
commit
63db2f9dc1
  1. 1
      xap/heybuddy/heybuddy-0.2.1.tar.gz.sha1
  2. 18
      xap/heybuddy/heybuddy-0.2.3-ssl-cert-validation.patch
  3. 1
      xap/heybuddy/heybuddy-0.2.3.tgz.sha1
  4. 9
      xap/heybuddy/heybuddy.SlackBuild

1
xap/heybuddy/heybuddy-0.2.1.tar.gz.sha1

@ -1 +0,0 @@
39ac696831b42da6e42dd1a4a71863f3ce659974 heybuddy-0.2.1.tar.gz

18
xap/heybuddy/heybuddy-0.2.3-ssl-cert-validation.patch

@ -0,0 +1,18 @@
diff -Naur heybuddy-0.2.3.orig/CertificateValidatingHTTPSHandler.py heybuddy-0.2.3/CertificateValidatingHTTPSHandler.py
--- heybuddy-0.2.3.orig/CertificateValidatingHTTPSHandler.py 2011-11-28 06:12:18.000000000 +0100
+++ heybuddy-0.2.3/CertificateValidatingHTTPSHandler.py 2012-02-20 23:38:15.285754790 +0100
@@ -52,12 +52,8 @@
self.cert_reqs = ssl.CERT_NONE
def _GetValidHostsForCert(self, cert):
- if 'subjectAltName' in cert:
- return [x[1] for x in cert['subjectAltName']
- if x[0].lower() == 'dns']
- else:
- return [x[0][1] for x in cert['subject']
- if x[0][0].lower() == 'commonname']
+ return [x[0][1] for x in cert['subject']
+ if x[0][0].lower() == 'commonname']
def _ValidateCertificateHostname(self, cert, hostname):
hosts = self._GetValidHostsForCert(cert)

1
xap/heybuddy/heybuddy-0.2.3.tgz.sha1

@ -0,0 +1 @@
812020b60549828c2f327162dc8a34ecb05e2672 heybuddy-0.2.3.tgz

9
xap/heybuddy/heybuddy.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011 Damien Goutte-Gattat
# Copyright (C) 2011,2012 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,8 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-heybuddy}
VERSION=${VERSION:-0.2.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
VERSION=${VERSION:-0.2.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tgz}
WGET=${WGET:-http://launchpad.net/heybuddy/0.2/$VERSION/+download/$ARCHIVE}
# Build infos
@ -68,6 +68,9 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Temporary fix for validation of SSL certificate with subjectAltName
# set to an email address instead of hostname
patch -p 1 < $CWD/heybuddy-0.2.3-ssl-cert-validation.patch
mkdir -p $PKG/usr/share/heybuddy
cp -r *.py README.txt _dev assets locales $PKG/usr/share/heybuddy

Loading…
Cancel
Save