diff options
author | Kent Fritz <fritz.kent@gmail.com> | 2017-06-03 20:11:37 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-06 07:56:14 +0700 |
commit | 417f09168a59788f5f988fdf11ec7d19af2eecfd (patch) | |
tree | 97065595b8fa75bba9cf17f6bc542650f67e2589 /network/hydra/hydra.SlackBuild | |
parent | 6119f2d77c4dca1ff60a1ef11e268ece75284bb7 (diff) | |
download | slackbuilds-417f09168a59788f5f988fdf11ec7d19af2eecfd.tar.gz |
network/hydra: Updated for version 8.5.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/hydra/hydra.SlackBuild')
-rw-r--r-- | network/hydra/hydra.SlackBuild | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/network/hydra/hydra.SlackBuild b/network/hydra/hydra.SlackBuild index c3e8d04b68..56690b31b7 100644 --- a/network/hydra/hydra.SlackBuild +++ b/network/hydra/hydra.SlackBuild @@ -4,14 +4,13 @@ # Updated by Kent Fritz <fritz.kent@gmail.com> PRGNAM=hydra -VERSION=${VERSION:-8.1} +VERSION=${VERSION:-8.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -XHYDRA=${XHYDRA:-1} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,8 +21,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -36,28 +35,31 @@ else LIBDIRSUFFIX="" fi -if [ "$XHYDRA" = "1" ]; then - CONFIG_OPTS="" - MAKE_OPTS="" -else - CONFIG_OPTS="--disable-xhydra" - MAKE_OPTS="XHYDRA_SUPPORT=" -fi - set -e +SRCNAM=thc-$PRGNAM + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +XHYDRA=${XHYDRA:-1} +if [ "$XHYDRA" = "1" ]; then + CONFIG_OPTS="" + MAKE_OPTS="" +else + CONFIG_OPTS="--disable-xhydra" + MAKE_OPTS="XHYDRA_SUPPORT=" +fi echo CONFIG_OPTS is $CONFIG_OPTS ./configure $CONFIG_OPTS --prefix=$PKG/usr @@ -69,7 +71,6 @@ make install mkdir -p $PKG/usr/share/$PRGNAM mv $PKG/usr/etc/* $PKG/usr/share/$PRGNAM rm -rf $PKG/usr/etc - # Fix paths in dpl4hydra.sh sed -i -e "s|^INSTALLDIR=.*|INSTALLDIR=/usr|" $PKG/usr/bin/dpl4hydra.sh sed -i -e "s|^LOCATION=.*|LOCATION=share/$PRGNAM|" $PKG/usr/bin/dpl4hydra.sh |