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.2.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://pagesperso-orange.fr/sebastien.godard/
  13. PKG_HASH:=8edb0e19b514ac560a098a02933a4735b881296d61014db89bf80f05dd7a4732
  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. sa_dir="/var/log/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))