aboutsummaryrefslogtreecommitdiff
path: root/package/iostat/iostat.mk
blob: 3297b3e172e89c50d07dce36cb2a315fde1a9fc4 (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
################################################################################
#
# iostat
#
################################################################################

IOSTAT_VERSION = 2.2
IOSTAT_SITE = http://www.linuxinsight.com/files
IOSTAT_LICENSE = GPL
IOSTAT_LICENSE_FILES = LICENSE

iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE)

define IOSTAT_BUILD_CMDS
	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef

define IOSTAT_CLEAN_CMDS
	$(MAKE) -C $(@D) clean
endef

define IOSTAT_INSTALL_TARGET_CMDS
	$(INSTALL) -D $(IOSTAT_DIR)/iostat $(TARGET_DIR)/usr/bin/iostat
	$(INSTALL) -D $(IOSTAT_DIR)/iostat.8 \
		$(TARGET_DIR)/usr/share/man/man8/iostat.8
endef

define IOSTAT_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/bin/iostat
	rm -f $(TARGET_DIR)/usr/share/man/man8/iostat.8
endef

$(eval $(generic-package))