updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / hping-tcl / PKGBUILD
blob1fcafdfcbf695e9f06c5924a9592b700997bde8d
1 # $Id: PKGBUILD 32612 2010-11-15 22:11:14Z lfleischer $
2 # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
3 # Contributor: Kevin Piche <kevin@archlinux.org>
5 pkgname=hping-tcl
6 pkgver=3.0.0
7 pkgrel=1
8 pkgdesc='hping is a command-line oriented TCP/IP packet assembler/analyzer. (built with tcl scripting enabled)'
9 arch=('i686' 'x86_64')
10 url='http://www.hping.org'
11 license=('GPL2' 'BSD')
12 depends=('libpcap' 'tcl')
13 conflicts=('hping')
14 source=("http://www.hping.org/hping3-20051105.tar.gz"
15         'Makefile.patch'
16         'bytesex.h.patch')
17 md5sums=('ca4ea4e34bcc2162aedf25df8b2d1747'
18          '3c6f920201fc980d377408917a28df93'
19          '8af8e336819df1447b0c1b879a704be9')
21 build() {
22   cd "${srcdir}/hping3-20051105"
24   [ "$CARCH" == "x86_64" ] && patch -Np1 -i ../bytesex.h.patch
26   MANPATH=/usr/share/man ./configure
27   make
30 package() {
31   cd "${srcdir}/hping3-20051105"
33   patch -p1 < ../Makefile.patch
35   make DESTDIR="${pkgdir}" install
36   install -Dm0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"