PKGBUILDs/community/hping/PKGBUILD

40 lines
968 B
Bash
Raw Normal View History

2018-06-02 17:00:33 +00:00
# $Id$
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2012-11-18 01:20:45 +00:00
# Contributor: Kevin Piche <kevin@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2016-01-08 02:36:49 +00:00
# - added ARM and AArch64 to bytesex.h.patch
2012-11-18 01:20:45 +00:00
pkgname=hping
pkgver=3.0.0
2018-06-02 17:00:33 +00:00
pkgrel=4
2012-11-18 01:20:45 +00:00
pkgdesc='A command-line oriented TCP/IP packet assembler/analyzer.'
2018-06-02 17:00:33 +00:00
arch=('x86_64')
2012-11-18 01:20:45 +00:00
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'
2013-05-31 12:16:48 +00:00
'339a38f86169d1b9344287a85201afbe'
2016-01-08 02:36:49 +00:00
'27f390e387b95bc6e7316e4e6616a9a6')
2012-11-18 01:20:45 +00:00
build() {
cd "${srcdir}/hping3-20051105"
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"
}