summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpider.007 / Sjon2015-06-09 10:54:43 +0200
committerLukas Fleischer2015-06-19 14:22:22 +0200
commit5ea070b52395857dd2724b80f904dde927cfc3cc (patch)
tree80ea6974c4028077324cfdea6c3bb88a4f287c1d
downloadaur-5ea070b52395857dd2724b80f904dde927cfc3cc.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
-rw-r--r--depmod.install2
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0cb82342d48
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by makepkg 4.2.0
+# Thu Jan 22 17:36:59 UTC 2015
+pkgbase = netatop
+ pkgdesc = Atop network kernel module, enables network statistics in atop
+ pkgver = 0.5
+ pkgrel = 1
+ url = http://www.atoptool.nl/
+ install = depmod.install
+ arch = x86_64
+ arch = i386
+ groups = modules
+ license = GPL
+ makedepends = linux-headers
+ depends = atop
+ source = http://atoptool.nl/download/netatop-0.5.tar.gz
+ sha256sums = cfac73cc346f949f1d31a63cf3c06b94e67fdaef9b14c7af4e7fd115a03f856a
+
+pkgname = netatop
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aeee367411d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Spider.007 <archPackage@spider007.net>
+# Contributor: Spider.007 <archPackage@spider007.net>
+packager="Spider.007 <archPackage@spider007.net>"
+pkgname=netatop
+pkgver=0.5
+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=('cfac73cc346f949f1d31a63cf3c06b94e67fdaef9b14c7af4e7fd115a03f856a')
+arch=('x86_64' 'i386')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make all
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ if [[ `uname -r` =~ ^([0-9]\.[0-9]+)\.[0-9]+-[0-9]+(-.*)$ ]]
+ then
+ install -Dm 0744 module/netatop.ko $pkgdir/usr/lib/modules/extramodules-${BASH_REMATCH[1]}${BASH_REMATCH[2]}/netatop.ko
+ else
+ echo "Could not parse version `uname -r`; please report" >&2
+ exit 1
+ fi
+
+ 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
+}
diff --git a/depmod.install b/depmod.install
new file mode 100644
index 00000000000..99ea19d4dd2
--- /dev/null
+++ b/depmod.install
@@ -0,0 +1,2 @@
+post_install(){ depmod -a ; }
+post_upgrade(){ depmod -a ; }