diff options
author | root <root@rshg054.dnsready.net> | 2011-08-06 23:14:28 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-06 23:14:28 +0000 |
commit | 7f2d7bd11daf0c654d4147cb91f9913bc587c276 (patch) | |
tree | f52f5e0fbbf78b3f77f034aa9fcb06346e363ed0 /extra/ettercap | |
parent | 6eacc0759bca4167f2dcd67ce43bca78cb2a06ca (diff) |
Sat Aug 6 23:14:27 UTC 2011
Diffstat (limited to 'extra/ettercap')
-rw-r--r-- | extra/ettercap/PKGBUILD | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/extra/ettercap/PKGBUILD b/extra/ettercap/PKGBUILD index c247ae6a9..f24789350 100644 --- a/extra/ettercap/PKGBUILD +++ b/extra/ettercap/PKGBUILD @@ -1,36 +1,46 @@ -# $Id: PKGBUILD 75608 2010-04-01 23:02:08Z giovanni $ +# $Id: PKGBUILD 134559 2011-08-05 19:15:39Z giovanni $ +# Maintainer: # Contributor: Tom Newsom <Jeepster@gmx.co.uk> -# Maintainer: Kevin Piche <kevin@archlinux.org> pkgname=ettercap pkgver=NG_0.7.3 _origver=NG-0.7.3 -pkgrel=15 +pkgrel=16 pkgdesc="A network sniffer/interceptor/logger for ethernet LANs - console" arch=('i686' 'x86_64') url="http://ettercap.sourceforge.net/" license=('GPL') -depends=('ncurses' 'openssl' 'libpcap>=1.0.0' 'zlib' 'pcre' 'libtool>=2.2.4' 'libnet') -makedepends=('libnet') +depends=('ncurses' 'openssl' 'libpcap' 'zlib' 'pcre' 'libtool' 'libnet') +makedepends=('libnet' 'pkgconfig') options=(!libtool) -source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$_origver.tar.gz - 01_pointers_and_ints_dont_mix.diff) +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_origver}.tar.gz" + 01_pointers_and_ints_dont_mix.diff) md5sums=('28fb15cd024162c55249888fe1b97820' 'ad235cd90aaa3e168575d06efac4d862') build() { cd ${srcdir}/${pkgname}-${_origver} + unset LDFLAGS - export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" - patch -Np1 -i ${srcdir}/01_pointers_and_ints_dont_mix.diff || return 1 + libtoolize --force --copy + aclocal + autoconf - ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --enable-plugins \ - --enable-https --disable-gtk - make || return 1 - make DESTDIR=$pkgdir install || return 1 - cd plug-ins - make || return 1 - make DESTDIR=${pkgdir} install || return 1 - chmod 755 ${pkgdir}/usr/lib/ettercap/* - chmod 755 ${pkgdir}/usr/bin/ettercap + patch -Np1 -i ${srcdir}/01_pointers_and_ints_dont_mix.diff + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --datarootdir=/usr/share \ + --enable-plugins \ + --enable-https \ + --disable-gtk + sed -i 's/LTDL_SHLIB_EXT/\".so\"/' src/ec_plugins.c + make +} + +package() { + cd ${srcdir}/${pkgname}-${_origver} + + make DESTDIR=${pkgdir} install } |