wok annotate hydra/receipt @ rev 25075

created recipe for alsa-ucm-conf
author Hans-G?nter Theisgen
date Tue Jun 14 07:07:03 2022 +0100 (2022-06-14)
parents b569b85b0fb9
children 20ad21d5532c
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"
pascal@14997 8 LICENSE="GPL3"
pankso@974 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pascal@20673 10 WEB_SITE="https://github.com/vanhauser-thc/thc-hydra"
pascal@25026 11 WGET_URL="https://gitlab.com/vanhauser-thc/THC-Archive/-/raw/master/Tools/$PACKAGE-$VERSION.tar.gz?inline=false"
pankso@974 12
pascal@13182 13 DEPENDS="gtk+ openssl xorg-libXdamage apr libssh libmysqlclient \
pascal@13182 14 libidn libpostgresqlclient libsvn"
pascal@13182 15 BUILD_DEPENDS="openssl-dev apr-dev gtk+-dev libssh-dev libmysqlclient \
pascal@13182 16 postgresql-dev subversion-dev libidn-dev mysql-dev"
pascal@13181 17
pascal@24308 18 # What is the latest version available today?
pascal@24308 19 current_version()
pascal@24308 20 {
pascal@24308 21 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24308 22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 23 }
pascal@24308 24
pankso@974 25 # Rules to configure and make the package.
pankso@974 26 compile_rules()
pankso@974 27 {
pankso@974 28 cd $src
pankso@974 29 ./configure \
pankso@974 30 --prefix=/usr \
pankso@974 31 $CONFIGURE_ARGS
pankso@974 32 sed -i s/'cp -v'/'cp'/ hydra-gtk/make_xhydra.sh
pascal@7442 33 sed -i -e "s|gcc|gcc $( /usr/bin/apr-1-config --cppflags --cflags)|" \
pascal@7442 34 -e 's|^XLIBPATHS=|&-L/usr/lib/postgresql |' \
pascal@7442 35 -e 's|^XIPATHS= |&-I/usr/include/apr-1 |' Makefile
pankso@974 36 make
pascal@1491 37 [ -f hydra ]
pankso@974 38 }
pankso@974 39
pankso@974 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@974 41 genpkg_rules()
pankso@974 42 {
pankso@974 43 mkdir -p $fs/usr/bin
pankso@974 44 cp -a $src/hydra $fs/usr/bin
pankso@974 45 cp -a $src/xhydra $fs/usr/bin
pankso@974 46 }