sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (80a7a85f6ec76aaf4034cc1d1c0e66c3d36a8a04)
- From: Vlad Glagolev <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (80a7a85f6ec76aaf4034cc1d1c0e66c3d36a8a04)
- Date: Wed, 18 Apr 2018 23:57:37 +0000
GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:
ChangeLog | 3 +++
utils/atop/DEPENDS | 4 +++-
utils/atop/DETAILS | 10 +++++-----
utils/atop/HISTORY | 4 ++++
utils/netatop/BUILD | 3 +++
utils/netatop/DEPENDS | 1 +
utils/netatop/DETAILS | 15 +++++++++++++++
utils/netatop/FINAL | 1 +
utils/netatop/HISTORY | 3 +++
utils/netatop/INSTALL | 12 ++++++++++++
utils/netatop/init.d/netatop | 23 +++++++++++++++++++++++
11 files changed, 73 insertions(+), 6 deletions(-)
New commits:
commit 80a7a85f6ec76aaf4034cc1d1c0e66c3d36a8a04
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
atop: => 2.3.0
commit d19f87be997e343720fe215497cefb316f292d5a
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
netatop: new spell, atop network kernel module
diff --git a/ChangeLog b/ChangeLog
index 868b691..7705dae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2018-04-18 Vlad Glagolev <stealth AT sourcemage.org>
+ * utils/netatop: new spell, atop network kernel module
+
2018-04-13 Treeve Jelbert <treeve AT sourcemage.org>
* MESON_FUNCTIONS: tweak, prevent generation of dubious .pc files
diff --git a/utils/atop/DEPENDS b/utils/atop/DEPENDS
index c2af731..8e69a2e 100755
--- a/utils/atop/DEPENDS
+++ b/utils/atop/DEPENDS
@@ -1,2 +1,4 @@
depends ncurses &&
-depends zlib
+depends zlib &&
+
+suggest_depends netatop "" "" "for additional network statistics"
diff --git a/utils/atop/DETAILS b/utils/atop/DETAILS
index 3d9703c..16d643e 100755
--- a/utils/atop/DETAILS
+++ b/utils/atop/DETAILS
@@ -1,10 +1,10 @@
SPELL=atop
- VERSION=2.2-3
+ VERSION=2.3.0
SOURCE=$SPELL-$VERSION.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-${VERSION/-1/}
- SOURCE_URL[0]=http://www.atoptool.nl/download/$SOURCE
-
SOURCE_HASH=sha512:34076e35004367bbfd63f3aac1e786dab566633799b5d4f2c4d45f343642d145027f6298aa40d5e83c1356f502e3c51faa58da07cea58f2960bfacd78cf77915
- WEB_SITE=http://www.atconsultancy.nl/atop/home.html
+ SOURCE_URL[0]=https://www.atoptool.nl/download/${SOURCE}
+
SOURCE_HASH=sha512:51cc868545403cab439a66cc38fe9324c6ff7537e6dad5271fa3f0a22cbad471b0e15186d4f78f0080129301ba0a59e0c1cd1cc694bc3a4f982118a8d0cae429
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=https://www.atoptool.nl/
ENTERED=20020725
LICENSE=GPL
KEYWORDS="utils"
diff --git a/utils/atop/HISTORY b/utils/atop/HISTORY
index 3e1cc4c..f2584d6 100644
--- a/utils/atop/HISTORY
+++ b/utils/atop/HISTORY
@@ -1,3 +1,7 @@
+2018-04-18 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS: updated spell to 2.3.0; updated source URL & website
+ * DEPENDS: added netatop suggest dependency
+
2016-09-04 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* DETAILS, INSTALL: version 2.2-3
diff --git a/utils/netatop/BUILD b/utils/netatop/BUILD
new file mode 100755
index 0000000..c628da8
--- /dev/null
+++ b/utils/netatop/BUILD
@@ -0,0 +1,3 @@
+make_single &&
+make KERNELDIR="${INSTALL_ROOT}/usr/src/linux" &&
+make_normal
diff --git a/utils/netatop/DEPENDS b/utils/netatop/DEPENDS
new file mode 100755
index 0000000..fb6a846
--- /dev/null
+++ b/utils/netatop/DEPENDS
@@ -0,0 +1 @@
+depends zlib
diff --git a/utils/netatop/DETAILS b/utils/netatop/DETAILS
new file mode 100755
index 0000000..23ea80e
--- /dev/null
+++ b/utils/netatop/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=netatop
+ VERSION=2.0
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE_URL[0]=https://www.atoptool.nl/download/${SOURCE}
+
SOURCE_HASH=sha512:70ef34502f6904aee4f1808af6ac26d76a391515e578ff40b5b4ebca73c28c917f86e1a9f8690a2900bbbd8e1c18c591546b9888cadc74d6d39c88c704bfe464
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=https://www.atoptool.nl/netatop.php
+ LICENSE[0]=GPL
+ ENTERED=20180418
+ SHORT="atop network kernel module"
+cat << EOF
+netatop is an optional kernel module netatop can be loaded to gather
+statistics about the TCP and UDP packets that have been
+transmitted/received per process and per thread.
+EOF
diff --git a/utils/netatop/FINAL b/utils/netatop/FINAL
new file mode 100755
index 0000000..ce41770
--- /dev/null
+++ b/utils/netatop/FINAL
@@ -0,0 +1 @@
+depmod -a
diff --git a/utils/netatop/HISTORY b/utils/netatop/HISTORY
new file mode 100644
index 0000000..54403a4
--- /dev/null
+++ b/utils/netatop/HISTORY
@@ -0,0 +1,3 @@
+2018-04-18 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, BUILD, INSTALL, FINAL, init.d: created spell,
+ version 2.0
diff --git a/utils/netatop/INSTALL b/utils/netatop/INSTALL
new file mode 100755
index 0000000..8280d92
--- /dev/null
+++ b/utils/netatop/INSTALL
@@ -0,0 +1,12 @@
+local moduledir="${INSTALL_ROOT}/lib/modules/$(get_kernel_version)/extra" &&
+
+if [ ! -d "${moduledir}" ]; then
+ install -vm 755 -d "${moduledir}"
+fi &&
+
+install -vm 644 module/netatop.ko "${moduledir}" &&
+
+install -vm 755 daemon/netatopd "${INSTALL_ROOT}/usr/sbin" &&
+
+install -vm 644 man/netatop.4 "${INSTALL_ROOT}/usr/share/man/man4" &&
+install -vm 644 man/netatopd.8 "${INSTALL_ROOT}/usr/share/man/man8"
diff --git a/utils/netatop/init.d/netatop b/utils/netatop/init.d/netatop
new file mode 100755
index 0000000..96884b7
--- /dev/null
+++ b/utils/netatop/init.d/netatop
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+PROGRAM=/usr/sbin/netatopd
+RUNLEVEL=3
+NEEDS="+network"
+
+. /etc/init.d/smgl_init
+
+start() {
+ modprobe netatop
+
+ _start
+}
+
+stop() {
+ _stop
+
+ rmmod netatop
+}
+
+status() {
+ cat /proc/netatop
+}
- [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (80a7a85f6ec76aaf4034cc1d1c0e66c3d36a8a04), Vlad Glagolev, 04/18/2018
Archive powered by MHonArc 2.6.24.