diff options
Diffstat (limited to 'testing/ettercap/APKBUILD')
-rw-r--r-- | testing/ettercap/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/ettercap/APKBUILD b/testing/ettercap/APKBUILD new file mode 100644 index 0000000000..c385381d34 --- /dev/null +++ b/testing/ettercap/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=ettercap +pkgver=0.7.4.1 +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" +install= +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + ettercap-0.7.4-autotools.patch" + + +_builddir="$srcdir"/$pkgname + +prepare() { + cd "$_builddir" + patch -p1 < ../ettercap-0.7.4-autotools.patch +} + +build() { + cd "$_builddir" + ./autogen.sh + ./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" + 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" |