[Packages] admin/gkrellmd: Update to 2.3.1 (http://lists.openwrt.org/pipermail/openwr...
[openwrt/svn-archive/archive.git] / admin / gkrellmd / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gkrellmd
12 PKG_VERSION:=2.3.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=gkrellm-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://members.dslextreme.com/users/billw/gkrellm/
17 PKG_MD5SUM:=009d8dddd3ce5cc83a4bb4d559ee922d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/gkrellm-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gkrellmd
24 SECTION:=admin
25 CATEGORY:=Administration
26 DEPENDS:=+glib1
27 TITLE:=The GNU Krell Monitors Server
28 URL:=http://gkrellm.net/
29 endef
30
31 define Package/gkrellmd/description
32 Gkrellmd Listens for connections from gkrellm clients. When
33 a gkrellm client connects to a gkrellmd server all builtin
34 monitors collect their data from the server.
35 endef
36
37 define Build/Compile
38 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS)" \
39 LDFLAGS="$(EXTRA_LDFLAGS) " \
40 $(MAKE) -C $(PKG_BUILD_DIR)/server \
41 CC="$(TARGET_CC)" \
42 glib12="yes" \
43 GLIB12_LIB="-L$(STAGING_DIR)/usr/lib -lglib -lgmodule" \
44 GLIB12_INCLUDE="-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include"
45 endef
46
47 define Package/gkrellmd/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/server/$(PKG_NAME) $(1)/usr/bin/
50 $(INSTALL_DIR) $(1)/etc
51 $(INSTALL_CONF) $(PKG_BUILD_DIR)/server/$(PKG_NAME).conf $(1)/etc/
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
54 endef
55
56 $(eval $(call BuildPackage,gkrellmd))