diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-09 21:30:54 +0700 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-01-09 20:18:25 +0000 |
commit | 97eb668bfd49d20e32fcc188400ff337982ff5c4 (patch) | |
tree | b66788cfa726985a8a24211a566509dc79d8886d /libraries/cracklib | |
parent | d7b75355bc2764894859e9bfec983b930e69b020 (diff) |
libraries/cracklib: Fix cracklib-check.
/usr/share/cracklib/pw_dict.pwd.gz: No such file or directory.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/cracklib')
-rw-r--r-- | libraries/cracklib/cracklib.SlackBuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/cracklib/cracklib.SlackBuild b/libraries/cracklib/cracklib.SlackBuild index a6ebe7d1c4489..5bab9933a97a4 100644 --- a/libraries/cracklib/cracklib.SlackBuild +++ b/libraries/cracklib/cracklib.SlackBuild @@ -30,14 +30,14 @@ PRGNAM=cracklib VERSION=${VERSION:-2.9.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} DICT=${DICT:-cracklib-words-$VERSION} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -48,8 +48,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mcpu=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mcpu=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -106,6 +106,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS INSTALL NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/* +sh ./util/cracklib-format dicts/cracklib-small \ + | sh ./util/cracklib-packer $PKG/usr/share/cracklib/pw_dict + mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |