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.

69 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.2.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:=78388b64acec81378b962e66b40e57acd4b18ff17a849bc9308f95d290248c9c
  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_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/sysstat
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Sysstat performance monitoring tools
  26. URL:=http://pagesperso-orange.fr/sebastien.godard/index.html
  27. DEPENDS:=$(INTL_DEPENDS)
  28. endef
  29. define Package/sysstat/description
  30. The sysstat utilities are a collection of performance monitoring tools for
  31. Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
  32. endef
  33. define Package/sysstat/conffiles
  34. /etc/config/sysstat
  35. /etc/sysstat/sysstat.ioconf
  36. /etc/sysstat/sysstat
  37. endef
  38. CONFIGURE_VARS+= \
  39. sa_lib_dir="/usr/lib/sysstat" \
  40. conf_dir="/etc/sysstat"
  41. CONFIGURE_ARGS+= \
  42. --disable-documentation \
  43. --disable-sensors
  44. define Package/sysstat/install
  45. $(INSTALL_DIR) $(1)/usr/lib/sysstat
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
  49. $(INSTALL_DIR) $(1)/etc/sysstat
  50. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat
  53. $(INSTALL_DIR) $(1)/etc/init.d
  54. $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
  55. endef
  56. $(eval $(call BuildPackage,sysstat))