You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sysstat
  9. PKG_VERSION:=12.4.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://pagesperso-orange.fr/sebastien.godard/
  13. PKG_HASH:=3701b2c1883d50eb384d7b95ce5b6df0a71fdcb3c23f96cb58098d1bcffa018f
  14. PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:sysstat_project:sysstat
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/sysstat
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=Sysstat performance monitoring tools
  27. URL:=http://pagesperso-orange.fr/sebastien.godard/index.html
  28. DEPENDS:=$(INTL_DEPENDS)
  29. endef
  30. define Package/sysstat/description
  31. The sysstat utilities are a collection of performance monitoring tools for
  32. Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
  33. endef
  34. define Package/sysstat/conffiles
  35. /etc/config/sysstat
  36. /etc/sysstat/sysstat.ioconf
  37. /etc/sysstat/sysstat
  38. endef
  39. CONFIGURE_VARS+= \
  40. sa_lib_dir="/usr/lib/sysstat" \
  41. conf_dir="/etc/sysstat"
  42. CONFIGURE_ARGS+= \
  43. --disable-documentation \
  44. --disable-sensors
  45. define Package/sysstat/install
  46. $(INSTALL_DIR) $(1)/usr/lib/sysstat
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
  50. $(INSTALL_DIR) $(1)/etc/sysstat
  51. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat
  54. $(INSTALL_DIR) $(1)/etc/init.d
  55. $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
  56. endef
  57. $(eval $(call BuildPackage,sysstat))