summaryrefslogtreecommitdiff
path: root/package/gkrellmd
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/gkrellmd
Initial import
Diffstat (limited to 'package/gkrellmd')
-rw-r--r--package/gkrellmd/Config.in9
-rw-r--r--package/gkrellmd/Makefile33
-rw-r--r--package/gkrellmd/files/gkrellmd.init26
-rw-r--r--package/gkrellmd/ipkg/gkrellmd.control5
-rw-r--r--package/gkrellmd/ipkg/gkrellmd.postinst3
5 files changed, 76 insertions, 0 deletions
diff --git a/package/gkrellmd/Config.in b/package/gkrellmd/Config.in
new file mode 100644
index 000000000..836a64d4c
--- /dev/null
+++ b/package/gkrellmd/Config.in
@@ -0,0 +1,9 @@
+config ADK_PACKAGE_GKRELLMD
+ prompt "gkrellmd.......................... The GNU Krell Monitors Server"
+ tristate
+ default n
+ select ADK_PACKAGE_GLIB1
+ help
+ 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.
diff --git a/package/gkrellmd/Makefile b/package/gkrellmd/Makefile
new file mode 100644
index 000000000..badc29b43
--- /dev/null
+++ b/package/gkrellmd/Makefile
@@ -0,0 +1,33 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME= gkrellmd
+PKG_VERSION= 2.2.10
+PKG_RELEASE= 7
+PKG_MD5SUM= 518666ce4c2ef5a7db637683778fe18b
+MASTER_SITES= http://members.dslextreme.com/users/billw/gkrellm/
+DISTFILES= gkrellm-${PKG_VERSION}.tar.gz
+
+WRKDIST=${WRKDIR}/gkrellm-${PKG_VERSION}/server
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,GKRELLMD,gkrellmd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE= auto
+MAKE_FLAGS+= GLIB12_INCLUDE="-I${STAGING_DIR}/usr/include/glib-1.2 -I${STAGING_DIR}/usr/lib/glib/include" \
+ GLIB12_LIB="-L${STAGING_DIR}/usr/lib -lglib -lgmodule" \
+ glib12=1
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_GKRELLMD}/usr/bin
+ ${INSTALL_DIR} ${IDIR_GKRELLMD}/etc/init.d
+ ${INSTALL_BIN} ${WRKBUILD}/gkrellmd ${IDIR_GKRELLMD}/usr/bin/
+ ${INSTALL_DATA} ${WRKSRC}/gkrellmd.conf ${IDIR_GKRELLMD}/etc
+ ${INSTALL_BIN} ./files/gkrellmd.init ${IDIR_GKRELLMD}/etc/init.d/gkrellmd
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/gkrellmd/files/gkrellmd.init b/package/gkrellmd/files/gkrellmd.init
new file mode 100644
index 000000000..a5f3ccf1a
--- /dev/null
+++ b/package/gkrellmd/files/gkrellmd.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#FWINIT 80
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${gkrellmd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ gkrellmd -d
+ ;;
+stop)
+ killall gkrellmd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/gkrellmd/ipkg/gkrellmd.control b/package/gkrellmd/ipkg/gkrellmd.control
new file mode 100644
index 000000000..13f70a4f1
--- /dev/null
+++ b/package/gkrellmd/ipkg/gkrellmd.control
@@ -0,0 +1,5 @@
+Package: gkrellmd
+Priority: optional
+Section: net
+Depends: glib1
+Description: The GNU Krell Monitors Server
diff --git a/package/gkrellmd/ipkg/gkrellmd.postinst b/package/gkrellmd/ipkg/gkrellmd.postinst
new file mode 100644
index 000000000..56b7b06cc
--- /dev/null
+++ b/package/gkrellmd/ipkg/gkrellmd.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf gkrellmd gkrellmd NO