Browse Source

n/certbot: Upgraded to certbot-1.5.0.

current-20200608
parent
commit
3e69f20da8
  1. 1
      n/certbot/certbot-0.40.1.tar.gz.sha256
  2. 1
      n/certbot/certbot-1.5.0.tar.gz.sha256
  3. 28
      n/certbot/certbot.SlackBuild

1
n/certbot/certbot-0.40.1.tar.gz.sha256

@ -1 +0,0 @@
8dc81b3044cf401c55fa36c30893887fcb92657df1d76a8848059683df3b10d1 certbot-0.40.1.tar.gz

1
n/certbot/certbot-1.5.0.tar.gz.sha256

@ -0,0 +1 @@
c52017a4f84137e1312c898d6ae69c5f7977d79d2bd4c2df013cbbf39b6539bf certbot-1.5.0.tar.gz

28
n/certbot/certbot.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018,2019 Damien Goutte-Gattat
# Copyright (C) 2018,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,17 +26,16 @@
# <https://github.com/certbot/certbot>.
#
# Depends: l/python-acme, l/python-configargparse, l/python-configobj
# Depends: l/python-distro, l/python-parsedatetime, l/zope.component
# Depends: l/python-parsedatetime, l/zope.component
# Source package infos
NAMESRC=${NAMESRC:-certbot}
VERSION=${VERSION:-0.40.1}
VERSION=${VERSION:-1.5.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/aa/dd/348260e569f3ce7d7996365fa0efceec926be482702f9b0947929d3d4285/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-certbot}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -46,6 +45,7 @@ TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
PYTHONDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
set -e # Quit if a command returns non-zero
@ -61,8 +61,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -72,18 +71,18 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
mv $PKG/usr/bin/certbot $PKG/usr/bin/certbot-2.7
# And now for Python 3
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGELOG.md CONTRIBUTING.md LICENSE.txt README.rst \
$PKG/usr/doc/$NAME
install -m 644 CHANGELOG.md LICENSE.txt README.rst $PKG/usr/doc/$NAME
# Build HTML docs if possible
export PYTHONPATH=$PKG$PYTHONDIR
if sphinx-build -b html docs $PKG/usr/doc/$NAME/html ; then
rm -rf $PKG/usr/doc/$NAME/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -93,7 +92,6 @@ cat <<EOF > $PKG/install/slack-required
python-acme
python-configargparse
python-configobj
python-distro
python-parsedatetime
zope.component
EOF

Loading…
Cancel
Save