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