Skip to content

Commit 1b9b490

Browse files
authored
Merge pull request openwrt#6034 from lnslbrty/package/atop
atop: add new package
2 parents 3c907df + 0e9da38 commit 1b9b490

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

admin/atop/Makefile

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#
2+
# This is free software, licensed under the GNU General Public License v2.
3+
# See /LICENSE for more information.
4+
#
5+
6+
include $(TOPDIR)/rules.mk
7+
8+
PKG_NAME:=atop
9+
PKG_RELEASE:=1
10+
PKG_VERSION:=2.3.0
11+
PKG_LICENSE:=GPL-2.0
12+
PKG_SOURCE_URL:=https://www.atoptool.nl/download/
13+
PKG_HASH:=73e4725de0bafac8c63b032e8479e2305e3962afbe977ec1abd45f9e104eb264
14+
15+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16+
PKG_MAINTAINER:=Toni Uhlig <[email protected]>
17+
18+
include $(INCLUDE_DIR)/package.mk
19+
20+
define Package/atop
21+
SECTION:=admin
22+
CATEGORY:=Administration
23+
TITLE:=System and process monitor for Linux
24+
DEPENDS:=+zlib +libncurses
25+
URL:=https://www.atoptool.nl/
26+
MAINTAINER:=Toni Uhlig <[email protected]>
27+
endef
28+
29+
define Package/atop/description
30+
Atop is an ASCII full-screen performance monitor for
31+
Linux that is capable of reporting the activity of all
32+
processes (even if processes have finished during the
33+
interval), daily logging of system and process activity
34+
for long-term analysis, highlighting overloaded system
35+
resources by using colors, etcetera. At regular
36+
intervals, it shows system-level activity related to the
37+
CPU, memory, swap, disks (including LVM) and network
38+
layers, and for every process (and thread) it shows e.g.
39+
the CPU utilization, memory growth, disk utilization,
40+
priority, username, state, and exit code. In combination
41+
with the optional kernel module netatop, it even shows
42+
network activity per process/thread.
43+
endef
44+
45+
MAKE_FLAGS += \
46+
CFLAGS+="-Wno-misleading-indentation -Wno-unused-const-variable -Wno-format-truncation"
47+
48+
define Package/atop/install
49+
$(INSTALL_DIR) $(1)/usr/bin
50+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/atop $(1)/usr/bin/
51+
endef
52+
53+
$(eval $(call BuildPackage,atop))

0 commit comments

Comments
 (0)