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