diff options
Diffstat (limited to 'community/dsniff')
-rw-r--r-- | community/dsniff/PKGBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/community/dsniff/PKGBUILD b/community/dsniff/PKGBUILD index d7bcb0f4a..e0a357243 100644 --- a/community/dsniff/PKGBUILD +++ b/community/dsniff/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 61947 2012-01-11 15:21:36Z stephane $ +# $Id: PKGBUILD 91568 2013-05-24 09:42:47Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: ViNS <gladiator@fastwebnet.it> pkgname=dsniff pkgver=2.4b1 -pkgrel=21 +pkgrel=22 pkgdesc="Collection of tools for network auditing and penetration testing" url="http://www.monkey.org/~dugsong/dsniff/" arch=('i686' 'x86_64' 'mips64el') @@ -15,22 +15,26 @@ source=("http://www.monkey.org/~dugsong/${pkgname}/beta/$pkgname-$pkgver.tar.gz" md5sums=('2f761fa3475682a7512b0b43568ee7d6' 'fbc9f62f9ab2f98f24f53ad497c1ce5d') -build() { +prepare() { cd $srcdir/$pkgname-2.4 patch -N < "${srcdir}"/dsniff_2.4b1+debian-18.diff for i in *.dpatch; do patch -N < "$i" done + sed -i 's|${CC-cc} -E|${CC-cc} -O2 -E|g' configure +} - LDFLAGS="-lresolv -lglib-2.0 -lgthread-2.0 $LDFLAGS" ./configure --prefix=/usr - make +build() { + cd $srcdir/$pkgname-2.4 + LDFLAGS="-lresolv -lglib-2.0 -lgthread-2.0 $LDFLAGS" ./configure \ + --prefix=/usr --sbindir=/usr/bin + make -j1 } package() { cd "$srcdir"/$pkgname-2.4 - make prefix="$pkgdir"/usr install + make install_prefix="$pkgdir" install install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE - install -d "$pkgdir"/usr/share mv "$pkgdir"/usr/man "$pkgdir"/usr/share/ } |