wok view ettercap/receipt @ rev 24974
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 02 11:23:24 2022 +0000 (2022-05-02) |
parents | 5bf9ffd87970 |
children | 20ad21d5532c |
line source
1 # SliTaz package receipt.
3 PACKAGE="ettercap"
4 VERSION="0.8.3.1"
5 CATEGORY="network"
6 SHORT_DESC="A suite for man in the middle attacks on LAN."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.ettercap-project.org"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Ettercap/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="curl geoip libltdl libnet libpanel libpcap libpthread-stubs
15 openssl zlib"
16 BUILD_DEPENDS="cmake curl-dev file geoip-dev libnet-dev libpcap-dev
17 libpthread-stubs libtool ncurses-dev openssl-dev zlib-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir _build
29 cd _build
30 cmake .. \
31 -D CMAKE_INSTALL_PREFIX=/usr \
32 -D ENABLE_GTK=OFF \
33 -D ENABLE_PLUGINS=ON &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
43 cp -a $install/etc $fs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/usr/share/ettercap $fs/usr/share
47 }