wok annotate ettercap/receipt @ rev 25694
dropbear: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 21 14:12:01 2024 +0000 (6 months ago) |
parents | 019b8bee1f99 |
children |
rev | line source |
---|---|
pascal@11221 | 1 # SliTaz package receipt. |
pascal@11221 | 2 |
pascal@11221 | 3 PACKAGE="ettercap" |
Hans-G?nter@24521 | 4 VERSION="0.8.3.1" |
pascal@11221 | 5 CATEGORY="network" |
Hans-G?nter@22705 | 6 SHORT_DESC="A suite for man in the middle attacks on LAN." |
pascal@11221 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15202 | 8 LICENSE="GPL2" |
Hans-G?nter@22705 | 9 WEB_SITE="https://www.ettercap-project.org" |
Hans-G?nter@22705 | 10 |
pascal@11221 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22705 | 12 WGET_URL="https://github.com/Ettercap/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@11221 | 13 |
Hans-G?nter@24522 | 14 DEPENDS="curl geoip libltdl libnet libpanel libpcap libpthread-stubs |
Hans-G?nter@24522 | 15 openssl zlib" |
Hans-G?nter@22705 | 16 BUILD_DEPENDS="cmake curl-dev file geoip-dev libnet-dev libpcap-dev |
Hans-G?nter@22705 | 17 libpthread-stubs libtool ncurses-dev openssl-dev zlib-dev" |
pascal@14508 | 18 |
pascal@25599 | 19 # What is the latest version available today? |
pascal@24055 | 20 current_version() |
pascal@24055 | 21 { |
pascal@24055 | 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25599 | 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 24 } |
pascal@24055 | 25 |
pascal@11221 | 26 # Rules to configure and make the package. |
pascal@11221 | 27 compile_rules() |
pascal@11221 | 28 { |
Hans-G?nter@24521 | 29 mkdir _build |
Hans-G?nter@24521 | 30 cd _build |
Hans-G?nter@24521 | 31 cmake .. \ |
Hans-G?nter@24521 | 32 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@24521 | 33 -D ENABLE_GTK=OFF \ |
Hans-G?nter@24521 | 34 -D ENABLE_PLUGINS=ON && |
Hans-G?nter@22705 | 35 make && |
Hans-G?nter@22705 | 36 make DESTDIR=$DESTDIR install |
pascal@11221 | 37 } |
pascal@11221 | 38 |
pascal@11221 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11221 | 40 genpkg_rules() |
pascal@11221 | 41 { |
pascal@11221 | 42 mkdir -p $fs/usr/share |
Hans-G?nter@22705 | 43 |
Hans-G?nter@22705 | 44 cp -a $install/etc $fs |
Hans-G?nter@22705 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22705 | 46 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22705 | 47 cp -a $install/usr/share/ettercap $fs/usr/share |
pascal@11221 | 48 } |