blob: e1b199ce0f9817b0ce01be26445545d74905bfcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# 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"
|