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.

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