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.

62 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2007-2018 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:=gkrellmd
  9. PKG_VERSION:=2.3.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=gkrellm-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://gkrellm.srcbox.net/releases
  13. PKG_HASH:=8b9ec8baadcd5830c6aff04ba86dc9ed317a15c1c3787440bd1e680fb2fcd766
  14. PKG_MAINTAINER:=Peter Denison <openwrt@marshadder.org>
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/gkrellm-$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/gkrellmd
  19. SECTION:=admin
  20. CATEGORY:=Administration
  21. DEPENDS:=+glib2
  22. TITLE:=The GNU Krell Monitors Server
  23. URL:=http://gkrellm.net/
  24. endef
  25. define Package/gkrellmd/description
  26. Gkrellmd listens for connections from gkrellm clients. When
  27. a gkrellm client connects to a gkrellmd server all builtin
  28. monitors collect their data from the server.
  29. endef
  30. define Package/gkrellmd/conffiles
  31. /etc/$(PKG_NAME).conf
  32. endef
  33. define Build/Compile
  34. CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
  35. LDFLAGS="$(EXTRA_LDFLAGS) " \
  36. $(MAKE) -C $(PKG_BUILD_DIR)/server \
  37. CC="$(TARGET_CC)" \
  38. glib2="yes" \
  39. without-libsensors="yes" \
  40. GLIB2_LIB="$(TARGET_LDFLAGS) -lglib-2.0 -lgmodule-2.0" \
  41. GLIB2_INCLUDE="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include"
  42. endef
  43. define Package/gkrellmd/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/server/$(PKG_NAME) $(1)/usr/bin/
  46. $(INSTALL_DIR) $(1)/etc
  47. $(INSTALL_CONF) $(PKG_BUILD_DIR)/server/$(PKG_NAME).conf $(1)/etc/
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  50. endef
  51. $(eval $(call BuildPackage,gkrellmd))