aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKarim Kanso <kaz.kanso@gmail.com>2019-04-28 08:30:45 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-30 10:47:14 +0000
commit2730238571a7b71fbe398b64112d95d99bf22ee1 (patch)
tree058c15c32e8215d40b9991162f113883300dcdbb /testing
parentc66ec7eacfc6c233ce3d77e8716580599b21ee03 (diff)
downloadaports-2730238571a7b71fbe398b64112d95d99bf22ee1.tar.bz2
aports-2730238571a7b71fbe398b64112d95d99bf22ee1.tar.xz
testing/ettercap: new apport
www.ettercap-project.org Multipurpose sniffer/interceptor/logger for switched LAN
Diffstat (limited to 'testing')
-rw-r--r--testing/ettercap/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/ettercap/APKBUILD b/testing/ettercap/APKBUILD
new file mode 100644
index 0000000000..5a0d9cc01d
--- /dev/null
+++ b/testing/ettercap/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Karim Kanso <kaz.kanso@gmail.com>
+# Maintainer: Karim Kanso <kaz.kanso@gmail.com>
+pkgname=ettercap
+pkgver=0.8.2_git20190428
+_gitrev=5fb604823c6063676ebdf7cac66b7807acb4f7ed
+pkgrel=0
+pkgdesc="Multipurpose sniffer/interceptor/logger for switched LAN"
+url="https://www.ettercap-project.org/"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="cmake make gcc musl-dev ncurses-dev curl-dev libpcap-dev
+ libnet-dev pcre-dev flex bison linux-headers geoip-dev
+ check-dev"
+subpackages="$pkgname-doc"
+source="ettercap-$pkgver.zip::https://github.com/Ettercap/ettercap/archive/$_gitrev.zip"
+builddir="$srcdir"/$pkgname-$_gitrev
+
+build() {
+ mkdir build
+ cd build
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ -DENABLE_GTK=OFF \
+ -DINSTALL_DESKTOP=OFF \
+ -DBUNDLED_LIBS=OFF \
+ -DENABLE_TESTS=ON \
+ ..
+ make
+}
+
+check() {
+ cd build
+ make test
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="7196d6e39a0cfb471d118e2158932ff5ee566e7f5d8dbfd9bc1f74aa0f6ad5c5cb3f513f921a22100298b225a36d396c694c5249091e12ac628c5a6ffe2a40ac ettercap-0.8.2_git20190428.zip"