New package: jnettop-0.13.0

This commit is contained in:
Leah Neukirchen 2017-04-24 14:13:13 +02:00
parent c50d6b3287
commit e56b8f00dd

24
srcpkgs/jnettop/template Normal file
View file

@ -0,0 +1,24 @@
# Template file for 'jnettop'
pkgname=jnettop
version=0.13.0
revision=1
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="glib-devel libpcap-devel ncurses-devel"
short_desc="View hosts/ports taking up the most network traffic"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="https://packages.debian.org/sid/net/jnettop"
distfiles="${DEBIAN_SITE}/main/j/${pkgname}/${pkgname}_${version}.orig.tar.gz
${DEBIAN_SITE}/main/j/${pkgname}/${pkgname}_${version}-1.debian.tar.gz"
checksum="e987a1a9325595c8a0543ab61cf3b6d781b4faf72dd0e0e0c70b2cc2ceb5a5a0
5d9b32596039d1f77493403618326f3c15868ced3b7e4849f107cc4754c94c37"
post_extract() {
cd ${build_wrksrc}
cat ../debian/patches/*.patch | patch -Np1
sed -i '/^CFLAGS/d' Makefile.in
sed -i '5308s/.*exit 1.*/:; }/' configure
}