blob: 0143ed7300deac8cd26a760eec31513ec7594611 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor : xav <xav at ethertricks dot net>
set -u
pkgname='sflowtool'
pkgver='6.06'
pkgrel='1'
pkgdesc='CLI utility and scripts for analyzing sFlow data'
arch=('i686' 'x86_64')
url='http://www.inmon.com/technology/sflowTools.php'
license=('custom')
depends=('glibc' 'perl' 'awk')
optdepends=('perl: scripts support')
makedepends=('automake')
#_verwatch=('http://www.inmon.com/technology/sflowTools.php' ".*/${pkgname}-\([0-9\.]\+\)\.tar\.gz" 'l')
_giturl="https://github.com/sflow/${pkgname}"
#_verwatch=("${_giturl}/releases" "${_giturl#*github.com}/archive/v\(.*\)\.tar\.gz" 'l') #rss
_verwatch=("${_giturl}/releases.atom" '\s\+<title>sflowtool\sversion\s\([^<]\+\)</title>.*' 'f') #rss
_srcdir="${pkgname}-${pkgver}"
source=("${pkgname}-${pkgver}.tar.gz::${_giturl}/archive/v${pkgver}.tar.gz"
#"http://www.inmon.com/bin/${pkgname}-${pkgver}.tar.gz"
'http://www.inmon.com/bin/sflowutils.tar.gz'
'LICENSE')
md5sums=('f810d4eae821f94275271c89a0135ab0'
'644ef83ca05c9446ebce60302a03a33b'
'd3dc05048a11e4ca3b5a7940d0552d07')
sha256sums=('3c06d47d2c4e4d4b6302a0966ce32140343e2c64747e57e3a6d74935dea132a9'
'45f6a0f96bdb6a1780694b9a4ef9bbd2fd719b9f7f3355c6af1427631b311d56'
'863b86b7a4fc7632cfc3f9ead7e76f6e7751aca8b64030ff97b3b46f991c6482')
build() {
set -u
cd "${_srcdir}"
if [ ! -s 'Makefile' ]; then
sed -e 's:^#!/bin/awk:#!/usr/bin/awk:g' -i '../utils/ipTrafficMatrix' '../utils/ipTopTalkers'
if [ ! -s 'configure' ]; then
aclocal
autoconf
automake --add-missing
fi
./configure --prefix='/usr' --mandir='/usr/share/man'
fi
make -s
set +u
}
package(){
set -u
cd "${_srcdir}"
make -j1 DESTDIR="${pkgdir}" install
install -d "${pkgdir}/usr/share/${pkgname}"/{utils,contrib}
cp -pR "${srcdir}/utils" "${srcdir}/contrib" "${pkgdir}/usr/share/${pkgname}/"
install -Dpm644 "${srcdir}/README" -t "${pkgdir}/usr/share/${pkgname}/"
install -Dpm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
sed -e 's:\r::g' -i "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
set +u
}
set +u
|