mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/hping3: clarify license
This commit is contained in:
parent
f274ddd29e
commit
97f24b3a2b
@ -6,38 +6,34 @@ pkgrel=2
|
||||
pkgdesc="A ping-like TCP/IP packet assembler/analyzer"
|
||||
url="http://www.hping.org"
|
||||
arch="all"
|
||||
license="GPL"
|
||||
license="GPL2"
|
||||
depends=""
|
||||
makedepends="libpcap-dev"
|
||||
install=
|
||||
install=""
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://www.hping.org/$pkgname-$pkgver.tar.gz
|
||||
hping3-bytesex.patch"
|
||||
hping3-bytesex.patch"
|
||||
|
||||
_builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
sed -i -e 's:net/bpf.h:pcap/bpf.h:' libpcap_stuff.c script.c || return 1
|
||||
|
||||
patch -p0 < "$srcdir"/hping3-bytesex.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
|
||||
./configure --prefix=/usr \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--no-tcl
|
||||
|
||||
--no-tcl || return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
|
||||
install -m755 -D hping3 "$pkgdir"/usr/sbin/hping3
|
||||
ln -s hping3 "$pkgdir"/usr/sbin/hping
|
||||
ln -s hping3 "$pkgdir"/usr/sbin/hping2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user