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.6.4
  10. PKG_RELEASE:=1
  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://pagesperso-orange.fr/sebastien.godard/
  15. PKG_HASH:=6aa6398b200f09a2874fffc9c31eb943aea64d707a4afe5f5f1751d876157b09
  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))