From 0e9da384d473965a083e851dab52b5147982513d Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 10 May 2018 23:25:52 +0200 Subject: [PATCH] atop: add new package Signed-off-by: Toni Uhlig --- admin/atop/Makefile | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 admin/atop/Makefile diff --git a/admin/atop/Makefile b/admin/atop/Makefile new file mode 100644 index 000000000..2d7af098e --- /dev/null +++ b/admin/atop/Makefile @@ -0,0 +1,53 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=atop +PKG_RELEASE:=1 +PKG_VERSION:=2.3.0 +PKG_LICENSE:=GPL-2.0 +PKG_SOURCE_URL:=https://www.atoptool.nl/download/ +PKG_HASH:=73e4725de0bafac8c63b032e8479e2305e3962afbe977ec1abd45f9e104eb264 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_MAINTAINER:=Toni Uhlig + +include $(INCLUDE_DIR)/package.mk + +define Package/atop + SECTION:=admin + CATEGORY:=Administration + TITLE:=System and process monitor for Linux + DEPENDS:=+zlib +libncurses + URL:=https://www.atoptool.nl/ + MAINTAINER:=Toni Uhlig +endef + +define Package/atop/description + Atop is an ASCII full-screen performance monitor for + Linux that is capable of reporting the activity of all + processes (even if processes have finished during the + interval), daily logging of system and process activity + for long-term analysis, highlighting overloaded system + resources by using colors, etcetera. At regular + intervals, it shows system-level activity related to the + CPU, memory, swap, disks (including LVM) and network + layers, and for every process (and thread) it shows e.g. + the CPU utilization, memory growth, disk utilization, + priority, username, state, and exit code. In combination + with the optional kernel module netatop, it even shows + network activity per process/thread. +endef + +MAKE_FLAGS += \ + CFLAGS+="-Wno-misleading-indentation -Wno-unused-const-variable -Wno-format-truncation" + +define Package/atop/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/atop $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,atop))