aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ettercap/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ettercap/APKBUILD')
-rw-r--r--testing/ettercap/APKBUILD49
1 files changed, 25 insertions, 24 deletions
diff --git a/testing/ettercap/APKBUILD b/testing/ettercap/APKBUILD
index c385381d34..2927d0530b 100644
--- a/testing/ettercap/APKBUILD
+++ b/testing/ettercap/APKBUILD
@@ -1,50 +1,51 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=ettercap
-pkgver=0.7.4.1
+pkgver=0.7.6
pkgrel=0
pkgdesc="Comprehensive suite for man in the middle attacks"
url="http://ettercap.sourceforge.net/"
arch="all"
license="GPL"
depends=
-depends_dev="autoconf automake bison flex libnet-dev libpcap-dev libtool
- ncurses-dev openssl-dev pkgconfig"
-makedepends="$depends_dev"
+depends_dev=
+makedepends="$depends_dev autoconf automake bison cmake curl-dev flex
+ ghostscript groff libnet-dev libpcap-dev ncurses-dev openssl-dev"
install=
subpackages="$pkgname-doc"
-source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
- ettercap-0.7.4-autotools.patch"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$pkgname
+_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
- patch -p1 < ../ettercap-0.7.4-autotools.patch
+ mkdir build && cd build
}
build() {
- cd "$_builddir"
- ./autogen.sh
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --disable-gtk \
- --enable-plugins \
- --enable-https
+ cd "$_builddir"/build
+ cmake \
+ -D ENABLE_GTK=OFF \
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D INSTALL_PREFIX=/usr \
+ -D CMAKE_BUILD_TYPE=RELEASE \
+ ../
+ #./configure --prefix=/usr \
+ # --sysconfdir=/etc \
+ # --mandir=/usr/share/man \
+ # --infodir=/usr/share/info \
+ # --disable-gtk \
+ # --enable-plugins \
+ # --enable-https
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$_builddir"/build
make DESTDIR="$pkgdir" install
-
- # remove the 2 lines below (and this) if there is no init.d script
- # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
-md5sums="8e13ff5504b5bb4f1fc6a465d57ce7ea ettercap-0.7.4.1.tar.gz
-ec7418a5c21dcda2edae6e36fe7cad72 ettercap-0.7.4-autotools.patch"
+md5sums="7c5f5e1fd4002afdfd13765ef92866e1 ettercap-0.7.6.tar.gz"
+sha256sums="c9bfcac179964ba449138652655dee0e1db01104ec8937a8064c83ee1b727f27 ettercap-0.7.6.tar.gz"
+sha512sums="1e147278e86341fcf887457e029250fd675b6eb577dccbbbeed5e9b478d4b7ba1fbe5deb1ea39d602809bb48de15fc37e82643680a210a2ad6ea510cea4b68c4 ettercap-0.7.6.tar.gz"