summaryrefslogtreecommitdiff
path: root/community/hping/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/hping/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/hping/PKGBUILD')
-rw-r--r--community/hping/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/hping/PKGBUILD b/community/hping/PKGBUILD
new file mode 100644
index 000000000..41c30b6a4
--- /dev/null
+++ b/community/hping/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 92024 2013-05-30 23:36:53Z seblu $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Kevin Piche <kevin@archlinux.org>
+
+pkgname=hping
+pkgver=3.0.0
+pkgrel=3
+pkgdesc='A command-line oriented TCP/IP packet assembler/analyzer.'
+arch=('i686' 'x86_64')
+url='http://www.hping.org'
+license=('GPL2' 'BSD')
+depends=('libpcap')
+source=("http://www.hping.org/hping3-20051105.tar.gz"
+ 'Makefile.patch'
+ 'bytesex.h.patch')
+md5sums=('ca4ea4e34bcc2162aedf25df8b2d1747'
+ '339a38f86169d1b9344287a85201afbe'
+ '8af8e336819df1447b0c1b879a704be9')
+
+build() {
+ cd "${srcdir}/hping3-20051105"
+
+ [[ "$CARCH" == "x86_64" ]] && patch -Np1 -i ../bytesex.h.patch
+
+ MANPATH=/usr/share/man ./configure --no-tcl
+ make
+}
+
+package() {
+ cd "${srcdir}/hping3-20051105"
+
+ patch -p1 < ../Makefile.patch
+
+ make DESTDIR="${pkgdir}" install
+ install -Dm0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}