wok-current annotate hydra/receipt @ rev 13181

Up hydra (7.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 02 14:57:07 2012 +0200 (2012-08-02)
parents 107829ecc5d8
children e6d69f8e05ad
rev   line source
pankso@974 1 # SliTaz package receipt.
pankso@974 2
pankso@974 3 PACKAGE="hydra"
pascal@13181 4 VERSION="7.3"
pankso@974 5 CATEGORY="system-tools"
pankso@974 6 SHORT_DESC="THC password cracker for FTP, HTTP, HTTPS, SMB, etc."
pankso@974 7 MAINTAINER="pankso@slitaz.org"
pankso@974 8 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pankso@974 9 WEB_SITE="http://freeworld.thc.org/thc-hydra"
pankso@974 10 WGET_URL="http://freeworld.thc.org/releases/$TARBALL"
pankso@974 11
pascal@13181 12 DEPENDS="gtk+ openssl xorg-libXdamage apr"
pascal@13181 13 BUILD_DEPENDS="openssl-dev apr-dev gtk+-dev"
pascal@13181 14
pankso@974 15 # Rules to configure and make the package.
pankso@974 16 compile_rules()
pankso@974 17 {
pankso@974 18 mv $PACKAGE-$VERSION-src $PACKAGE-$VERSION
pankso@974 19 cd $src
pankso@974 20 ./configure \
pankso@974 21 --prefix=/usr \
pankso@974 22 $CONFIGURE_ARGS
pankso@974 23 sed -i s/'cp -v'/'cp'/ hydra-gtk/make_xhydra.sh
pascal@7442 24 sed -i -e "s|gcc|gcc $( /usr/bin/apr-1-config --cppflags --cflags)|" \
pascal@7442 25 -e 's|^XLIBPATHS=|&-L/usr/lib/postgresql |' \
pascal@7442 26 -e 's|^XIPATHS= |&-I/usr/include/apr-1 |' Makefile
pankso@974 27 make
pascal@1491 28 [ -f hydra ]
pankso@974 29 }
pankso@974 30
pankso@974 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@974 32 genpkg_rules()
pankso@974 33 {
pankso@974 34 mkdir -p $fs/usr/bin
pankso@974 35 cp -a $src/hydra $fs/usr/bin
pankso@974 36 cp -a $src/xhydra $fs/usr/bin
pankso@974 37 }