wok view hydra/receipt @ rev 25734

updated sc-im (-> 0.8.4)
author Hans-G?nter Theisgen
date Thu Aug 22 14:48:42 2024 +0100 (4 months ago)
parents 505d1daeed6c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="hydra"
4 VERSION="7.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="THC password cracker for FTP, HTTP, HTTPS, SMB, etc."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="https://github.com/vanhauser-thc/thc-hydra"
11 WGET_URL="https://gitlab.com/vanhauser-thc/THC-Archive/-/raw/master/Tools/$PACKAGE-$VERSION.tar.gz?inline=false"
13 DEPENDS="gtk+ openssl xorg-libXdamage apr libssh libmysqlclient \
14 libidn libpostgresqlclient libsvn"
15 BUILD_DEPENDS="openssl-dev apr-dev gtk+-dev libssh-dev libmysqlclient \
16 postgresql-dev subversion-dev libidn-dev mysql-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/[A-Za-z_-]*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS
32 sed -i s/'cp -v'/'cp'/ hydra-gtk/make_xhydra.sh
33 sed -i -e "s|gcc|gcc $( /usr/bin/apr-1-config --cppflags --cflags)|" \
34 -e 's|^XLIBPATHS=|&-L/usr/lib/postgresql |' \
35 -e 's|^XIPATHS= |&-I/usr/include/apr-1 |' Makefile
36 make
37 [ -f hydra ]
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin
44 cp -a $src/hydra $fs/usr/bin
45 cp -a $src/xhydra $fs/usr/bin
46 }