Browse Source

n/tornado: Bundled backports.ssl_match_hostname.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
f6a13c467b
  1. 1
      n/tornado/backports.ssl_match_hostname-3.2a3.tar.gz.sha1
  2. 16
      n/tornado/tornado.SlackBuild

1
n/tornado/backports.ssl_match_hostname-3.2a3.tar.gz.sha1

@ -0,0 +1 @@
6b6abbe957cdca15050f9b026f313032f9f583c2 backports.ssl_match_hostname-3.2a3.tar.gz

16
n/tornado/tornado.SlackBuild

@ -23,6 +23,8 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest tornado sourcecode is available at: <http://www.tornadoweb.org/>.
#
# Depends: d/pysetuptools
# Source package infos
NAMESRC=${NAMESRC:-tornado}
@ -32,7 +34,7 @@ WGET=${WGET:-https://pypi.python.org/packages/source/t/tornado/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-tornado}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -60,7 +62,10 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
if [ ! -f backports.ssl_match_hostname-3.2a3.tar.gz ]; then
wget https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.2a3.tar.gz
fi
sha1sum -c $ARCHIVE.sha1 backports.ssl_match_hostname-3.2a3.tar.gz.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -71,6 +76,13 @@ cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Install backports.ssl_match_hostname
tar xf $CWD/backports.ssl_match_hostname-3.2a3.tar.gz
(cd backports.ssl_match_hostname-3.2a3
python setup.py build
python setup.py install --root=$PKG
)
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 PKG-INFO README.rst $PKG/usr/doc/$NAME

Loading…
Cancel
Save