wok view hydra/receipt @ rev 25226
updated python-pynacl (1.3.0 -> 1.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 16:46:32 2022 +0100 (2022-07-13) |
parents | b569b85b0fb9 |
children | 20ad21d5532c |
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 '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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 }