aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorm1kc (Max Musatov)2020-12-24 11:14:11 +0300
committerm1kc (Max Musatov)2020-12-24 11:27:39 +0300
commit1879d42a686a7928ac4f1b328b6048c2e958f82f (patch)
treec8b6f448ce5ef2d87f02ec4459c8b1573c5e4352
parent52f809dd4c3eae9441a0103be7b30e22a2f446d2 (diff)
downloadaur-1879d42a686a7928ac4f1b328b6048c2e958f82f.tar.gz
[3.1-2] Include netatop.service into package
-rw-r--r--.SRCINFO6
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD7
-rw-r--r--netatop-dkms.install2
-rwxr-xr-x[-rw-r--r--]test_setup.sh0
5 files changed, 10 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a83b26ee1fc5..9558a0e2a2d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = netatop-dkms
pkgdesc = Atop network kernel module, enables network statistics in atop
pkgver = 3.1
- pkgrel = 1
+ pkgrel = 2
url = http://www.atoptool.nl/
install = netatop-dkms.install
arch = x86_64
@@ -10,13 +10,15 @@ pkgbase = netatop-dkms
license = GPL
depends = atop
depends = dkms
+ depends = bash
+ depends = zlib
conflicts = netatop
source = http://atoptool.nl/download/netatop-3.1.tar.gz
source = netatop-dkms.conf
source = netatop-dkms.install
sha256sums = 736f43572c31a90748f023f0a5a814bff58d44c0c3f060d776cfd6e6e8435c62
sha256sums = 56e9094e396fcdabadde4db8a9f21945484e4db93359dc22f2fb76436b1b2ea9
- sha256sums = e821aa89ecd62799441f87a1012edf7151c0971950489bb10fec478fb97d515b
+ sha256sums = 0cda5de65ab96445951e39decfc18b50aad90245f661eb58438ac402cd2496b7
pkgname = netatop-dkms
diff --git a/.gitignore b/.gitignore
index a5ae4ace6c67..a148379d82ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
src/
pkg/
-*.xz
+*.pkg.tar.*
*.gz
# inspiration folders
diff --git a/PKGBUILD b/PKGBUILD
index 14c23e5b2b4f..69ee784d2884 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,12 @@
pkgname=netatop-dkms
_pkgname=netatop
pkgver=3.1
-pkgrel=1
+pkgrel=2
pkgdesc="Atop network kernel module, enables network statistics in atop"
url="http://www.atoptool.nl/"
groups=('modules')
license=('GPL')
-depends=('atop' 'dkms')
+depends=('atop' 'dkms' 'bash' 'zlib')
conflicts=('netatop')
makedepends=()
source=("http://atoptool.nl/download/netatop-${pkgver}.tar.gz"
@@ -17,7 +17,7 @@ source=("http://atoptool.nl/download/netatop-${pkgver}.tar.gz"
install="netatop-dkms.install"
sha256sums=('736f43572c31a90748f023f0a5a814bff58d44c0c3f060d776cfd6e6e8435c62'
'56e9094e396fcdabadde4db8a9f21945484e4db93359dc22f2fb76436b1b2ea9'
- 'e821aa89ecd62799441f87a1012edf7151c0971950489bb10fec478fb97d515b')
+ '0cda5de65ab96445951e39decfc18b50aad90245f661eb58438ac402cd2496b7')
arch=('x86_64' 'i686')
prepare() {
@@ -73,6 +73,7 @@ package() {
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
+ install -D netatop.service $pkgdir/usr/lib/systemd/system/netatop.service
# auto-load
mkdir -p $pkgdir/etc/modules-load.d
diff --git a/netatop-dkms.install b/netatop-dkms.install
index f0d8abc4899f..4f6a144d278a 100644
--- a/netatop-dkms.install
+++ b/netatop-dkms.install
@@ -5,7 +5,7 @@ warn_about_headers() {
echo "DKMS will now try to build the netatop module"
echo "against every kernel you have installed. For the build to succeed,"
echo "you must have header packages for every kernel. Header package"
- echo "for the stock kernel is called 'linux-headers', other usually"
+ echo "for the stock kernel is called 'linux-headers', others usually"
echo "follow the same naming scheme."
echo "-------------------------------------------------------------------"
}
diff --git a/test_setup.sh b/test_setup.sh
index 36f1f274b085..36f1f274b085 100644..100755
--- a/test_setup.sh
+++ b/test_setup.sh