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.

66 lines
1.8 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:=11.0.4
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=http://perso.orange.fr/sebastien.godard/
  15. PKG_HASH:=9a721992e70883c1b9a09d9977501662587b909a014ac0eaa397d30a963acc53
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/sysstat
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Sysstat performance monitoring tools
  22. URL:=http://pagesperso-orange.fr/sebastien.godard/index.html
  23. endef
  24. define Package/sysstat/description
  25. The sysstat utilities are a collection of performance monitoring tools for
  26. Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
  27. endef
  28. define Package/sysstat/conffiles
  29. /etc/sysstat/sysstat.ioconf
  30. /etc/sysstat/sysstat
  31. endef
  32. CONFIGURE_VARS+= \
  33. sa_lib_dir="/usr/lib/sysstat" \
  34. sa_dir="/var/log/sysstat" \
  35. conf_dir="/etc/sysstat"
  36. CONFIGURE_ARGS+= \
  37. --disable-documentation \
  38. --disable-largefile \
  39. --disable-sensors \
  40. --disable-nls
  41. define Package/sysstat/install
  42. $(INSTALL_DIR) $(1)/usr/lib/sysstat
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
  46. $(INSTALL_DIR) $(1)/etc/sysstat
  47. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
  52. endef
  53. $(eval $(call BuildPackage,sysstat))