libraries/cracklib: Added to 12.2 repository

This commit is contained in:
Christopher Walker 2010-05-12 23:30:04 +02:00 committed by Robby Workman
parent d80d4c20df
commit f75af3af66
4 changed files with 120 additions and 0 deletions

13
libraries/cracklib/README Normal file
View file

@ -0,0 +1,13 @@
CrackLib is a library containing a C function (well, lots of functions
really, but you only need to use one of them) which may be used in a
"passwd"-like program.
The idea is simple: try to prevent users from choosing passwords that
could guessed by "Crack" by filtering them out at the source.
An example of its use can be located in the SAMBA examples directory.
The crackcheck program included with SAMBA will use the library to ensure
that the user doesn't pick a weak password.
A larger dictionary can be found here
http://downloads.sourceforge.net/cracklib/cracklib-words-20080507.gz

View file

@ -0,0 +1,80 @@
#!/bin/sh
# Slackware build script for cracklib
# Written by Christopher Walker <kris240376@gmail.com>
PRGNAM=cracklib
VERSION=${VERSION:-2.8.13}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
DICT=${DICT:-cracklib-words-20080507}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-shared \
--disable-static \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
# Install large cracklib dictionary file if it exists
( cd $PKG/usr/share/cracklib
if [ -e $CWD/${DICT}.gz ]; then
zcat $CWD/${DICT}.gz > $PRGNAM-large
elif [ -e $CWD/${DICT} ]; then
cat $CWD/${DICT} > $PRGNAM-large
fi
)
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
#find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ABOUT-NLS AUTHORS COPYING INSTALL NEWS README* \
$PKG/usr/doc/$PRGNAM-$VERSION
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="cracklib"
VERSION="2.8.13"
HOMEPAGE="http://sourceforge.net/projects/cracklib"
DOWNLOAD="http://downloads.sourceforge.net/cracklib/cracklib-2.8.13.tar.gz"
MD5SUM="5beb4c6b3c31c83fc98c4c225b25cd94"
MAINTAINER="Christopher Walker"
EMAIL="kris240376@gmail.com"
APPROVED="rworkman"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
cracklib: cracklib (password crack library)
cracklib:
cracklib: CrackLib is a library containing a C function (well, lots of functions
cracklib: really, but you only need to use one of them) which may be used in a
cracklib: "passwd"-like program.
cracklib:
cracklib: The idea is simple: try to prevent users from choosing passwords that
cracklib: could be guessed by "Crack" by filtering them out, at source.
cracklib:
cracklib:
cracklib: