# Contributor: Leonardo Arena # Maintainer: pkgname=sflowtool pkgver=3.37 pkgrel=1 pkgdesc="Print binary sFlow feed to ASCII, or forward it to other collectors" url="https://github.com/sflow/sflowtool" arch="all" license="Custom" depends= depends_dev= makedepends="$depends_dev autoconf automake" install= subpackages= source="$pkgname-$pkgver.tar.gz::https://github.com/sflow/sflowtool/archive/v$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$builddir" aclocal && autoconf && autoreconf -f -i -Wall,no-obsolete || return 1 } build() { cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 # remove the 2 lines below (and this) if there is no init.d script # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } md5sums="62d75caf6c11200aed2b73743fd37ff7 sflowtool-3.37.tar.gz" sha256sums="5435f767e6379bf8994b2260e0c5feba434fc55cbe2ceee5036cd8b07be74385 sflowtool-3.37.tar.gz" sha512sums="55457f48602ca80af95e856bd85c6b92ebd68a5958ee490bd5f9fb510205d9d5473fc509ee649300591596443f767392154ea59b36606bc5c8e841acd830828f sflowtool-3.37.tar.gz"