aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sflowtool
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2016-09-27 11:20:31 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2016-09-27 11:21:06 +0000
commitf0a8edec4bb64a69c6b5a317dba133ade2ad86f4 (patch)
tree74c590292f20220708d4d68ec914234b946b34ea /testing/sflowtool
parent49eadd11fdb27a80931944db5b3b55fe27424d8c (diff)
downloadaports-f0a8edec4bb64a69c6b5a317dba133ade2ad86f4.tar.bz2
aports-f0a8edec4bb64a69c6b5a317dba133ade2ad86f4.tar.xz
testing/sflowtool: new aport
Print binary sFlow feed to ASCII, or forward it to other collectors
Diffstat (limited to 'testing/sflowtool')
-rw-r--r--testing/sflowtool/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/sflowtool/APKBUILD b/testing/sflowtool/APKBUILD
new file mode 100644
index 0000000000..070db83fde
--- /dev/null
+++ b/testing/sflowtool/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=sflowtool
+pkgver=3.37
+pkgrel=0
+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/$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"