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.

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