aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hping3
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-12-13 19:50:32 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-01-08 20:28:49 +0000
commit97f24b3a2b1fb102c2e70fb692b78fb9aa86e6ed (patch)
tree3c7c7ebf46cabdea484f84f0f7f30d96dd1d0820 /testing/hping3
parentf274ddd29eba16ac83ddbae77a15c56e21ca73f1 (diff)
downloadaports-97f24b3a2b1fb102c2e70fb692b78fb9aa86e6ed.tar.bz2
aports-97f24b3a2b1fb102c2e70fb692b78fb9aa86e6ed.tar.xz
testing/hping3: clarify license
Diffstat (limited to 'testing/hping3')
-rw-r--r--testing/hping3/APKBUILD16
1 files changed, 6 insertions, 10 deletions
diff --git a/testing/hping3/APKBUILD b/testing/hping3/APKBUILD
index c58c0e4a01..c1eb402527 100644
--- a/testing/hping3/APKBUILD
+++ b/testing/hping3/APKBUILD
@@ -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