wok-6.x view hydra/receipt @ rev 24868
updated lxc and lxc-dev (3.2.1 -> 4.0.12)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 30 17:49:17 2022 +0100 (2022-03-30) |
parents | e3f377fbc5f0 |
children | 505d1daeed6c |
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="http://freeworld.thc.org/releases/$TARBALL"
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 }