wok-next view hydra/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 8e1b2a143eb3
children d5aab818505e
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="gtk2 openssl xorg-libXdamage apr libssh libmysqlclient \
14 libidn libpostgresqlclient libsvn"
15 BUILD_DEPENDS="openssl-dev apr-dev gtk2-dev libssh-dev libmysqlclient \
16 postgresql-dev subversion-dev libidn-dev mysql-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 $CONFIGURE_ARGS
25 sed -i s/'cp -v'/'cp'/ hydra-gtk/make_xhydra.sh
26 sed -i -e "s|gcc|gcc $( /usr/bin/apr-1-config --cppflags --cflags)|" \
27 -e 's|^XLIBPATHS=|&-L/usr/lib/postgresql |' \
28 -e 's|^XIPATHS= |&-I/usr/include/apr-1 |' Makefile
29 make
30 [ -f hydra ]
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $src/hydra $fs/usr/bin
38 cp -a $src/xhydra $fs/usr/bin
39 }