wok view ettercap/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (11 months ago)
parents 019b8bee1f99
children
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir _build
30 cd _build
31 cmake .. \
32 -D CMAKE_INSTALL_PREFIX=/usr \
33 -D ENABLE_GTK=OFF \
34 -D ENABLE_PLUGINS=ON &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
44 cp -a $install/etc $fs
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/share/ettercap $fs/usr/share
48 }