blob: 518fcb3fd8d0ff4f3eda8cdf942ae45403b53404 (
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
|
# Maintainer: Spider.007 <archPackage@spider007.net>
# Contributor: Spider.007 <archPackage@spider007.net>
packager="Spider.007 <archPackage@spider007.net>"
pkgname=netatop
pkgver=3.1
pkgrel=1
pkgdesc="Atop network kernel module, enables network statistics in atop"
url="http://www.atoptool.nl/"
groups=('modules')
license=('GPL')
install='depmod.install'
depends=('atop')
makedepends=('linux-headers')
source=("http://atoptool.nl/download/netatop-$pkgver.tar.gz")
sha256sums=('736f43572c31a90748f023f0a5a814bff58d44c0c3f060d776cfd6e6e8435c62')
arch=('x86_64' 'i386')
build() {
cd $srcdir/$pkgname-$pkgver
make all
}
package() {
cd $srcdir/$pkgname-$pkgver
install -Dm 0744 module/netatop.ko $pkgdir/usr/lib/modules/$(uname -r)/extramodules/netatop.ko
install -D daemon/netatopd $pkgdir/usr/bin/netatopd
install -D man/netatop.4 $pkgdir/usr/share/man/man4/netatop.4
install -D man/netatopd.8 $pkgdir/usr/share/man/man8/netatopd.8
mkdir -p $pkgdir/etc/modules-load.d
echo "netatop" > $pkgdir/etc/modules-load.d/netatop.conf
}
|