mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
23 lines
871 B
Bash
23 lines
871 B
Bash
# $Id: PKGBUILD 27825 2009-02-26 09:04:34Z eric $
|
|
# Maintainer: Kevin Piche <kevin@archlinux.org>
|
|
pkgname=hping
|
|
pkgver=3.0.0
|
|
pkgrel=1
|
|
pkgdesc="hping is a command-line oriented TCP/IP packet assembler/analyzer."
|
|
arch=(i686 x86_64)
|
|
url="http://www.hping.org"
|
|
license=('GPL2' 'BSD')
|
|
depends=('glibc' 'libpcap')
|
|
source=(http://www.hping.org/hping3-20051105.tar.gz Makefile.patch bytesex.h.patch)
|
|
md5sums=('ca4ea4e34bcc2162aedf25df8b2d1747' '3c6f920201fc980d377408917a28df93'\
|
|
'8af8e336819df1447b0c1b879a704be9')
|
|
|
|
build() {
|
|
cd $srcdir/hping3-20051105
|
|
[ "$CARCH" == "x86_64" ] && (patch -Np1 -i ../bytesex.h.patch || return 1)
|
|
MANPATH=/usr/share/man ./configure --no-tcl || return 1
|
|
patch -p1 < ../Makefile.patch || return 1
|
|
make || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|