aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-06-28 11:32:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-28 11:32:43 +0700
commitae5b9cb97ecebd651d71ac48ee0e266b7a937405 (patch)
treeb612df330a2f0278e993ccfac24eb5e5e7e05b39 /libraries
parent0851bdcd41d06fee494df526f045e5b8c9a2c177 (diff)
libraries/libpwquality: Updated for version 1.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libpwquality/Fix_possible_stack_overflow.patch21
-rw-r--r--libraries/libpwquality/libpwquality.SlackBuild12
-rw-r--r--libraries/libpwquality/libpwquality.info8
-rw-r--r--libraries/libpwquality/slack-desc2
4 files changed, 11 insertions, 32 deletions
diff --git a/libraries/libpwquality/Fix_possible_stack_overflow.patch b/libraries/libpwquality/Fix_possible_stack_overflow.patch
deleted file mode 100644
index 8cc9ec6b39309..0000000000000
--- a/libraries/libpwquality/Fix_possible_stack_overflow.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# HG changeset patch
-# User Tomas Mraz <tmraz@redhat.com>
-# Date 1440426008 -7200
-# Node ID a4696cd7cd246f6c34a2d2f1d54d569c5e7ecd84
-# Parent bb4952bec17e830c751d99a85ae1de32e22cf659
-Fix possible stack overflow in pwquality_generate() with data from /dev/urandom.
-
-diff -r bb4952bec17e -r a4696cd7cd24 src/generate.c
---- a/src/generate.c Thu Jul 23 14:11:30 2015 +0200
-+++ b/src/generate.c Mon Aug 24 16:20:08 2015 +0200
-@@ -100,7 +100,7 @@
- int
- pwquality_generate(pwquality_settings_t *pwq, int entropy_bits, char **password)
- {
-- char entropy[PWQ_MAX_ENTROPY_BITS/8 + 1];
-+ char entropy[(PWQ_MAX_ENTROPY_BITS+PWQ_MAX_ENTROPY_BITS/9)/8 + 2];
- char *tmp;
- int maxlen;
- int try = 0;
-
diff --git a/libraries/libpwquality/libpwquality.SlackBuild b/libraries/libpwquality/libpwquality.SlackBuild
index 6299541477dca..13eabf03008b4 100644
--- a/libraries/libpwquality/libpwquality.SlackBuild
+++ b/libraries/libpwquality/libpwquality.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for libpwquality.
#
-# Copyright 2015-2016 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libpwquality
-VERSION=${VERSION:-1.3.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.4.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,8 +60,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,7 +69,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p1 < $CWD/Fix_possible_stack_overflow.patch
+./autogen.sh --prefix=/usr
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
diff --git a/libraries/libpwquality/libpwquality.info b/libraries/libpwquality/libpwquality.info
index 3c335c5d2d7ea..32e87fcaa170d 100644
--- a/libraries/libpwquality/libpwquality.info
+++ b/libraries/libpwquality/libpwquality.info
@@ -1,8 +1,8 @@
PRGNAM="libpwquality"
-VERSION="1.3.0"
-HOMEPAGE="https://fedorahosted.org/libpwquality/"
-DOWNLOAD="http://ftp.osuosl.org/pub/blfs/conglomeration/libpwquality/libpwquality-1.3.0.tar.bz2"
-MD5SUM="2a3d4ba1d11b52b4f6a7f39622ebf736"
+VERSION="1.4.0"
+HOMEPAGE="https://github.com/libpwquality/libpwquality/"
+DOWNLOAD="https://github.com/libpwquality/libpwquality/archive/libpwquality-1.4.0.tar.gz"
+MD5SUM="a4f3e8a15adba9c289349a345fd885ba"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="cracklib"
diff --git a/libraries/libpwquality/slack-desc b/libraries/libpwquality/slack-desc
index 61a36698d9187..dc0b8e0b16b70 100644
--- a/libraries/libpwquality/slack-desc
+++ b/libraries/libpwquality/slack-desc
@@ -13,7 +13,7 @@ libpwquality: quality checking and also scoring them based on their apparent
libpwquality: randomness. The library also provides a function for generating
libpwquality: random passwords with good pronounceability.
libpwquality:
-libpwquality: Home page: https://fedorahosted.org/libpwquality/
+libpwquality: Home page: https://github.com/libpwquality/libpwquality/
libpwquality:
libpwquality:
libpwquality: