summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds[AT]schoepfer[DOT]info>2016-07-31 08:06:39 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-03 07:27:52 +0700
commit186154b0c9fd6568dda6366563f763e47fd2b732 (patch)
tree299a98e5e1fc5f454deeac8f4191475939582b1e /system
parent1ad371de67d5d4ce83c550da72e342017af285cd (diff)
downloadslackbuilds-186154b0c9fd6568dda6366563f763e47fd2b732.tar.gz
system/letsencrypt.sh: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/letsencrypt.sh/letsencrypt.sh.SlackBuild15
-rw-r--r--system/letsencrypt.sh/letsencrypt.sh.info2
2 files changed, 9 insertions, 8 deletions
diff --git a/system/letsencrypt.sh/letsencrypt.sh.SlackBuild b/system/letsencrypt.sh/letsencrypt.sh.SlackBuild
index 780d2192c2..6c1e1221ba 100644
--- a/system/letsencrypt.sh/letsencrypt.sh.SlackBuild
+++ b/system/letsencrypt.sh/letsencrypt.sh.SlackBuild
@@ -31,16 +31,16 @@ ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf letsencrypt.sh-0.2.0
-tar vxf $CWD/v0.2.0.tar.gz
-cd letsencrypt.sh-0.2.0
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,9 +70,10 @@ cat << EOF > $PKG/etc/logrotate.d/$PRGNAM
EOF
# Docs
-mkdir -p $PKG/usr/doc/letsencrypt.sh-$VERSION
-mv docs/* $PKG/usr/doc/letsencrypt.sh-$VERSION/
-mv CHANGELOG LICENSE README.md $PKG/usr/doc/letsencrypt.sh-$VERSION/
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv docs/* $PKG/usr/doc/$PRGNAM-$VERSION/
+mv CHANGELOG LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff --git a/system/letsencrypt.sh/letsencrypt.sh.info b/system/letsencrypt.sh/letsencrypt.sh.info
index e644042f15..df95e1808f 100644
--- a/system/letsencrypt.sh/letsencrypt.sh.info
+++ b/system/letsencrypt.sh/letsencrypt.sh.info
@@ -1,7 +1,7 @@
PRGNAM="letsencrypt.sh"
VERSION="0.2.0"
HOMEPAGE="https://github.com/lukas2511/letsencrypt.sh/"
-DOWNLOAD="https://github.com/lukas2511/letsencrypt.sh/archive/v0.2.0.tar.gz"
+DOWNLOAD="https://github.com/lukas2511/letsencrypt.sh/archive/v0.2.0/letsencrypt.sh-v0.2.0.tar.gz"
MD5SUM="74974ab79d6879b92ba353bbf3d1257e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""