Skip to content

Instantly share code, notes, and snippets.

@philgood
Created July 6, 2018 08:16
Show Gist options
  • Save philgood/d2f6031151e3f774ad7e103e5bf0a916 to your computer and use it in GitHub Desktop.
Save philgood/d2f6031151e3f774ad7e103e5bf0a916 to your computer and use it in GitHub Desktop.
ifstat 1.1 - A tool to report network interfaces bandwith just like vmstat/iostat do for other system counters
pkgname=ifstat
pkgver=1.1
pkgrel=1
pkgdesc="A tool to report network interfaces bandwith just like vmstat/iostat do for other system counters"
arch=('i686' 'x86_64')
url="http://gael.roualland.free.fr/ifstat/"
license=('GPL')
#install=ifstat.install
source=("http://gael.roualland.free.fr/ifstat/ifstat-$pkgver.tar.gz"
)
md5sums=('b655642c33a626cfe976792fbcd9b6e1'
)
prepare() {
cd "$pkgname-$pkgver"
}
build() {
cd "$pkgname-$pkgver"
./autogen.sh
./configure --prefix=/usr --without-snmp
make
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 ifstat $pkgdir/usr/local/bin/ifstat
install -Dm644 ifstat.1 $pkgdir/usr/share/man/man1/ifstat.1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment