summaryrefslogtreecommitdiff
path: root/iotop/Makefile
blob: 0b27fea16cafdce03be28d5f680d0f543730da7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Copyright (C) 2017 Bjørn Mork <bjorn@mork.no>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=iotop
PKG_VERSION:=0.6
PKG_RELEASE:=1
PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://guichaz.free.fr/iotop/files/
PKG_MD5SUM:=080fbb494566b5291a2a27cf6c203562

PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING

include $(INCLUDE_DIR)/package.mk
$(call include_mk, python-package.mk)

define Package/iotop
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Simple top-like I/O monitor
  URL:=http://guichaz.free.fr/iotop/
  DEPENDS:=+python
endef

define Package/iotop/description
 iotop does for I/O usage what top(1) does for CPU usage. It watches I/O
 usage information output by the Linux kernel and displays a table of
 current I/O usage by processes on the system. It is handy for answering
 the question "Why is the disk churning so much?".
endef

define Build/Compile
	$(call Build/Compile/PyMod,,\
		install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
	)
endef

$(eval $(call PyPackage,iotop))
$(eval $(call BuildPackage,iotop))