wok-next view ettercap/receipt @ rev 21379
updated mspdebug (0.17 -> 0.25)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 16:31:49 2020 +0100 (2020-04-16) |
parents | 5e01e6d2531a |
children | 4f9aa059e6fb |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ettercap"
4 VERSION="0.8.2"
5 CATEGORY="network"
6 SHORT_DESC="Multipurpose Network sniffer, analyser, interceptor, logger"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.ettercap-project.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Ettercap/ettercap/releases/download/v$VERSION/$TARBALL"
13 TARBALL_SHA1="04f50925a5f3b2555371075a048ab7bfe3892976"
15 BUILD_DEPENDS="cmake openssl-dev zlib-dev curl-dev libpcap-dev libnet-dev \
16 gtk2-dev"
17 SPLIT="$PACKAGE-gtk:gtk"
19 compile_rules() {
20 case $SET in
21 '') SET_ARGS='-DENABLE_GTK=OFF';;
22 gtk) SET_ARGS='-DENABLE_GTK=ON';;
23 esac
25 mkdir build
26 cd build
27 cmake \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 $SET_ARGS \
30 .. &&
31 make &&
32 make install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 ettercap)
38 copy @std
39 find $fs \( -name '*.png' -o -name '*.svg' \) -delete
40 DEPENDS="libcurl libnet libpcap libpcre ncurses ncurses-libform \
41 ncurses-libmenu ncurses-libpanel openssl zlib"
42 CAT="network|console flavor"
43 CONFIG_FILES="/etc/ettercap/etter.conf"
44 ;;
45 *-gtk)
46 copy @std
47 DEPENDS="glib gtk2 libcurl libnet libpcap libpcre ncurses \
48 ncurses-libform ncurses-libmenu ncurses-libpanel openssl zlib"
49 CAT="network|GTK flavor"
50 PROVIDE="ettercap"
51 CONFIG_FILES="/etc/ettercap/etter.conf"
52 ;;
53 esac
54 }