Add gkrellmd (#1453)
[openwrt/svn-archive/archive.git] / admin / gkrellmd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=gkrellmd
4 PKG_VERSION:=2.2.10
5 PKG_RELEASE:=1
6
7 PKG_SOURCE_URL:=http://members.dslextreme.com/users/billw/gkrellm/
8 PKG_SOURCE:=gkrellm-$(PKG_VERSION).tar.bz2
9 PKG_MD5SUM:=57ef0525c0997ac2e7720712811f5a84
10 PKG_CAT:=bzcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/gkrellm-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/gkrellmd
18 SECTION:=admin
19 CATEGORY:=Administration
20 DEPENDS:=+glib1
21 TITLE:=System monitoring daemon
22 URL:=http://gkrellm.net/
23 endef
24
25 define Build/Configure
26 endef
27
28 define Build/Compile
29 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CPPFLAGS) "
30 LDFLAGS="$(EXTRA_LDFLAGS) "
31 $(MAKE) -C $(PKG_BUILD_DIR)/server \
32 CC=$(TARGET_CC) \
33 glib12=yes \
34 GLIB12_LIB="-L$(STAGING_DIR)/usr/lib -lglib -lgmodule" \
35 GLIB12_INCLUDE="-I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include"
36 endef
37
38 define Package/gkrellmd/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(CP) $(PKG_BUILD_DIR)/server/$(PKG_NAME) $(1)/usr/bin/
41
42 $(INSTALL_DIR) $(1)/etc
43 $(CP) $(PKG_BUILD_DIR)/server/$(PKG_NAME).conf $(1)/etc/
44
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/gkrellmd.init $(1)/etc/init.d/gkrellmd
47 endef
48
49 $(eval $(call BuildPackage,gkrellmd))