diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-13 00:34:27 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:34:27 +0200 |
commit | 1a8efa5836f3cee78e06ba3a4a40b68721b9e708 (patch) | |
tree | aafc6824867204d7e9488b444958c561fa07c355 /misc/ophcrack/ophcrack.SlackBuild | |
parent | 51bd2b834aea4bcfbae0c0754dc790a0433f29f1 (diff) |
misc/ophcrack: Updated for version 3.3.1
Diffstat (limited to 'misc/ophcrack/ophcrack.SlackBuild')
-rw-r--r-- | misc/ophcrack/ophcrack.SlackBuild | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/misc/ophcrack/ophcrack.SlackBuild b/misc/ophcrack/ophcrack.SlackBuild index c4be94beeeae..f4a994550112 100644 --- a/misc/ophcrack/ophcrack.SlackBuild +++ b/misc/ophcrack/ophcrack.SlackBuild @@ -3,7 +3,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=ophcrack -VERSION=${VERSION:-3.3.0} +VERSION=${VERSION:-3.3.1} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -13,7 +13,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -GUI=${GUI:-yes} GRAPH=${GRAPH:-no} if [ "$ARCH" = "i486" ]; then @@ -42,13 +41,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -if [ "$GUI" != "yes" ]; then - GUI_STATUS="--disable-gui" -else - GUI_STATUS="--enable-gui" -fi - -if [ "$GUI" == "yes" ] && [ "$GRAPH" == "yes" ]; then +if [ "$GRAPH" == "yes" ]; then GRAPH_STATUS="--enable-graph" else GRAPH_STATUS="--disable-graph" @@ -59,9 +52,9 @@ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --enable-debug=no \ + --enable-gui \ + $GRAPH_STATUS \ --build=$ARCH-slackware-linux \ - $GUI_STATUS \ - $GRAPH_STATUS make make install DESTDIR=$PKG @@ -76,12 +69,10 @@ make install DESTDIR=$PKG mkdir -p $PKG/usr/man/man1 gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz -if [ "$GUI" = "yes" ]; then - # Make a desktop menu entry - mkdir -p $PKG/usr/share/{applications,pixmaps} - cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop - cat src/gui/pixmaps/os.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm -fi +# Make a desktop menu entry +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cat src/gui/pixmaps/os.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -94,4 +85,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |