summaryrefslogtreecommitdiff
path: root/community/nemesis/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/nemesis/PKGBUILD')
-rw-r--r--community/nemesis/PKGBUILD33
1 files changed, 14 insertions, 19 deletions
diff --git a/community/nemesis/PKGBUILD b/community/nemesis/PKGBUILD
index 53e81480a..c299d0158 100644
--- a/community/nemesis/PKGBUILD
+++ b/community/nemesis/PKGBUILD
@@ -1,18 +1,18 @@
-# $Id: PKGBUILD 11512 2010-02-12 23:38:30Z spupykin $
+# $Id: PKGBUILD 44947 2011-04-13 08:59:35Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=nemesis
pkgver=1.4
-pkgrel=3
+pkgrel=4
pkgdesc="command-line network packet crafting and injection utility"
arch=(i686 x86_64)
url="http://nemesis.sourceforge.net/"
-license=('GPL')
-depends=(glibc)
+license=('BSD')
+depends=()
options=('!libtool')
-source=(http://downloads.sourceforge.net/sourceforge/nemesis/nemesis-$pkgver.tar.gz \
- http://archlinux-stuff.googlecode.com/files/libnet-1.0.2a.tar.gz \
+source=(http://downloads.sourceforge.net/sourceforge/nemesis/nemesis-$pkgver.tar.gz
+ http://archlinux-stuff.googlecode.com/files/libnet-1.0.2a.tar.gz
nemesis-proto_tcp.c.diff)
md5sums=('acd7de57798a7f90f445f80d4d4a6e61'
'ddf53f0f484184390e8c2a1bd0853667'
@@ -20,28 +20,23 @@ md5sums=('acd7de57798a7f90f445f80d4d4a6e61'
build() {
# build libnet
- cd ${startdir}/src/Libnet-1.0.2a
-
+ cd $srcdir/Libnet-1.0.2a
# very dirty hack
sed -i 's#malloc(p_size)#malloc(p_size*2)#' src/libnet_packet_mem.c
-
- [ $NOEXTRACT -eq 1 ] || ./configure --prefix=$srcdir/libnet
- make || return 1
- make MAN_PREFIX=$srcdir/libnet/usr/man/man3 install || return 1
+ [ -f Makefile ] || ./configure --prefix=$srcdir/libnet
+ make
+ make MAN_PREFIX=$srcdir/libnet/usr/man/man3 install
# build nemesis
- cd ${startdir}/src/nemesis-$pkgver
-
+ cd $srcdir/nemesis-$pkgver
export PATH="$srcdir/libnet/bin:$PATH"
export CFLAGS="-D__GLIBC__=0 -I$srcdir/libnet/include -DLIBNET_LIL_ENDIAN"
export LDFLAGS="-L$srcdir/libnet/lib"
-
patch -Np1 <$srcdir/nemesis-proto_tcp.c.diff
-
- [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --mandir=/usr/share/man \
+ [ -f Makefile ] || ./configure --prefix=/usr --mandir=/usr/share/man \
--with-libnet-includes=$srcdir/libnet/include \
--with-libnet-libraries=$srcdir/libnet/lib
- make || return 1
+ make
make DESTDIR=$pkgdir install
+ install -D -m0644 LICENSE $pkgdir/usr/share/licenses/nemesis/LICENSE
}
-