pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/hobbitclient Update hobbit client from 0.3 to 4.2....
details: https://anonhg.NetBSD.org/pkgsrc/rev/2223b96d18bb
branches: trunk
changeset: 529250:2223b96d18bb
user: gendalia <gendalia%pkgsrc.org@localhost>
date: Tue May 29 04:58:06 2007 +0000
description:
Update hobbit client from 0.3 to 4.2.0 + allinone.patch
Changes:
http://www.hobbitmon.com/hobbiton/2006/08/msg00321.html
* Full client support. The Hobbit clients now support monitoring
of cpu-, disk- and memory-utilisation, as well as system logfiles,
network ports and traffic, processes, file- and directory sizes,
system clock synchronization, and much more. When a problem is
detected on a host, the client data is automatically saved so
it is available for later troubleshooting - even if the host
has completely crashed.
diffstat:
net/hobbitclient/DESCR | 3 +-
net/hobbitclient/Makefile | 69 ++++++++++++++++++++++++++++-----
net/hobbitclient/PLIST | 44 +++++++++++++++++++-
net/hobbitclient/distinfo | 13 +++--
net/hobbitclient/files/hobbitclient.sh | 19 +++++++++
net/hobbitclient/patches/patch-aa | 15 -------
net/hobbitclient/patches/patch-ab | 30 ++++++++++++++
7 files changed, 155 insertions(+), 38 deletions(-)
diffs (228 lines):
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/DESCR
--- a/net/hobbitclient/DESCR Tue May 29 03:00:44 2007 +0000
+++ b/net/hobbitclient/DESCR Tue May 29 04:58:06 2007 +0000
@@ -1,2 +1,1 @@
-hobbitclient is a free-software client for the Hobbit monitor or Big Brother.
-It is written in C with OS-dependant back-ends.
+hobbitclient is a free-software client for the Hobbit monitor.
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/Makefile
--- a/net/hobbitclient/Makefile Tue May 29 03:00:44 2007 +0000
+++ b/net/hobbitclient/Makefile Tue May 29 04:58:06 2007 +0000
@@ -1,18 +1,63 @@
-# $NetBSD: Makefile,v 1.4 2006/06/09 16:14:37 minskim Exp $
+# $NetBSD: Makefile,v 1.5 2007/05/29 04:58:06 gendalia Exp $
#
-DISTNAME= hobbitclient-0.3
-CATEGORIES= security
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hobbitmon/}
-EXTRACT_SUFX= .tgz
+DISTNAME= hobbit-4.2.0
+PKGNAME= hobbitclient-4.2.0
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hobbitmon/}
+
+MAINTAINER= gendalia%NetBSD.org@localhost
+HOMEPAGE= http://hobbitmon.sourceforge.net/
+COMMENT= Free-software client for the Hobbit monitor
+
+PATCHFILES+=allinone.patch
+SITES.allinone.patch=http://www.hobbitmon.com/hobbitsw/patches/
+
+HAS_CONFIGURE= YES
+USE_TOOLS+= gmake
+#INSTALL_TARGET=
+
+.include "../../mk/bsd.prefs.mk"
+
+BBUSER?= hobbit
+BBGROUP?= hobbit
+BBTOPDIR?= ${PREFIX}/hobbit
+BBLOGDIR?= ${VARBASE}/log/hobbit
+BBSERVERNAME?= "`uname -n`"
+BBSERVERIP?= 127.0.0.1
+CONFTYPE?= "server"
+BUILD_DEFS+= VARBASE
+BUILD_DEFS+= BBSERVERNAME
+BUILD_DEFS+= BBSERVERIP
-MAINTAINER= manu%NetBSD.org@localhost
-HOMEPAGE= http://hobbitmon.sourceforge.net/
-COMMENT= Client for Hobbit Monitor or Big brother
+RCD_SCRIPTS+= hobbitclient
+PKG_GROUPS= ${BBGROUP}
+PKG_USERS= ${BBUSER:Q}:${BBGROUP:Q}
+
+PKG_GECOS.${BBUSER}= Hobbit monitor
+PKG_HOME.${BBUSER}= ${BBTOPDIR}
+
+CONFIGURE_ARGS+="--client"
-GNU_CONFIGURE= yes
-USE_TOOLS+= yacc
-BUILD_TARGET= hobbitc
+CONFIGURE_ENV+= TARGET=hobbit
+CONFIGURE_ENV+= BBHOSTNAME="${BBSERVERNAME}"
+CONFIGURE_ENV+= BBUSER=${BBUSER:Q}
+CONFIGURE_ENV+= BBTOPDIR=${BBTOPDIR:Q}
+CONFIGURE_ENV+= BBLOGDIR=${BBLOGDIR:Q}
+CONFIGURE_ENV+= BBHOSTIP=${BBSERVERIP:Q}
+CONFIGURE_ENV+= MANROOT=${PREFIX}/${PKGMANDIR}/
+CONFIGURE_ENV+= CONFTYPE="${CONFTYPE}"
-.include "../../devel/sysexits/buildlink3.mk"
+USE_TOOLS+= awk:run cat:run cp:run
+USE_TOOLS+= cut:run date:run egrep:run
+USE_TOOLS+= expr:run find:run grep:run
+USE_TOOLS+= head:run id:run ls:run
+USE_TOOLS+= mv:run rm:run sed:run
+USE_TOOLS+= sort:run tail:run touch:run
+USE_TOOLS+= tr:run wc:run
+
+MAKE_ENV+= MAKE=${MAKE_PROGRAM:Q}
+MAKE_ENV+= PKGDIR=${PREFIX:Q}
+MAKE_ENV+= ${TOOLS_ENV}
+
.include "../../mk/bsd.pkg.mk"
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/PLIST
--- a/net/hobbitclient/PLIST Tue May 29 03:00:44 2007 +0000
+++ b/net/hobbitclient/PLIST Tue May 29 04:58:06 2007 +0000
@@ -1,4 +1,40 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/16 08:51:46 manu Exp $
-etc/hobbitc.conf
-bin/hobbitc
-man/man8/hobbitc.8
+@comment $NetBSD: PLIST,v 1.2 2007/05/29 04:58:06 gendalia Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/05/29 04:58:06 gendalia Exp $
+hobbit/client/bin/bb
+hobbit/client/bin/bbcmd
+hobbit/client/bin/bbdigest
+hobbit/client/bin/bbhostgrep
+hobbit/client/bin/bbhostshow
+hobbit/client/bin/clientupdate
+hobbit/client/bin/hobbitlaunch
+hobbit/client/bin/logfetch
+hobbit/client/bin/msgcache
+hobbit/client/bin/${LOWER_OPSYS}-meminfo
+hobbit/client/bin/orcahobbit
+hobbit/client/etc/clientlaunch.cfg
+hobbit/client/etc/hobbitclient.cfg
+hobbit/client/etc/localclient.cfg
+hobbit/client/bin/hobbitclient-aix.sh
+hobbit/client/bin/hobbitclient-darwin.sh
+hobbit/client/bin/hobbitclient-freebsd.sh
+hobbit/client/bin/hobbitclient-hp-ux.sh
+hobbit/client/bin/hobbitclient-irix.sh
+hobbit/client/bin/hobbitclient-linux.sh
+hobbit/client/bin/hobbitclient-netbsd.sh
+hobbit/client/bin/hobbitclient-openbsd.sh
+hobbit/client/bin/hobbitclient-osf1.sh
+hobbit/client/bin/hobbitclient-sco_sv.sh
+hobbit/client/bin/hobbitclient-sunos.sh
+hobbit/client/bin/hobbitclient.sh
+hobbit/client/runclient.sh
+share/examples/rc.d/hobbitclient
+@exec ${MKDIR} %D/hobbit/client/tmp
+@dirrm hobbit/client/tmp
+@exec ${MKDIR} %D/hobbit/client/logs
+@dirrm hobbit/client/logs
+@exec ${MKDIR} %D/hobbit/client/ext
+@dirrm hobbit/client/ext
+@dirrm hobbit/client/etc
+@dirrm hobbit/client/bin
+@dirrm hobbit/client
+@dirrm hobbit
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/distinfo
--- a/net/hobbitclient/distinfo Tue May 29 03:00:44 2007 +0000
+++ b/net/hobbitclient/distinfo Tue May 29 04:58:06 2007 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.3 2006/06/01 22:15:18 joerg Exp $
+$NetBSD: distinfo,v 1.4 2007/05/29 04:58:06 gendalia Exp $
-SHA1 (hobbitclient-0.3.tgz) = cc7b31e6e6ba3ae81d5e16c808fbcbf8af98527c
-RMD160 (hobbitclient-0.3.tgz) = 481727fae95ae4ff4979a481a5106b241f53b766
-Size (hobbitclient-0.3.tgz) = 50675 bytes
-SHA1 (patch-aa) = 776d9f25d4c5c164da20bb2a029394d61263cd83
+SHA1 (allinone.patch) = 16631a912955fcf57e86d923522e6dde899cdcd8
+RMD160 (allinone.patch) = 52773fbb89f67e7a53782da9a4c3a05e42452914
+Size (allinone.patch) = 287659 bytes
+SHA1 (hobbit-4.2.0.tar.gz) = 9a784696f6d7211f60f07d575cb1142bbf4661d2
+RMD160 (hobbit-4.2.0.tar.gz) = d3633c32f4fa7961d1069df2eb39104e9c891be2
+Size (hobbit-4.2.0.tar.gz) = 2341167 bytes
+SHA1 (patch-ab) = 8be66af4b877958f2bc64e18494c67a73acd4360
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/files/hobbitclient.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hobbitclient/files/hobbitclient.sh Tue May 29 04:58:06 2007 +0000
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+#
+# PROVIDE: hobbitclient
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="hobbitclient"
+rcvar="$name"
+command="@PREFIX@/hobbit/client/runclient.sh"
+
+start_cmd="$command start"
+restart_cmd="$command restart"
+stop_cmd="$command stop"
+status_cmd="$command status"
+
+load_rc_config "$name"
+run_rc_command "$1"
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/patches/patch-aa
--- a/net/hobbitclient/patches/patch-aa Tue May 29 03:00:44 2007 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2006/06/01 22:15:18 joerg Exp $
-
---- conf_load.h.orig 2006-06-01 22:11:36.000000000 +0000
-+++ conf_load.h
-@@ -34,6 +34,10 @@
-
- #define DEFAULT_CONF "hobbitc.conf"
-
-+#if defined(__DragonFly__) && !defined(LOGIN_NAME_MAX)
-+#define LOGIN_NAME_MAX MAXLOGNAME
-+#endif
-+
- struct disk_limit {
- char dl_mount[MAXPATHLEN + 1];
- int dl_yellow;
diff -r 88b71938bd89 -r 2223b96d18bb net/hobbitclient/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hobbitclient/patches/patch-ab Tue May 29 04:58:06 2007 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1 2007/05/29 04:58:07 gendalia Exp $
+
+--- build/bb-commands.sh.orig 2007-04-14 00:20:21.000000000 -0500
++++ build/bb-commands.sh
+@@ -9,6 +9,11 @@
+
+ findbin() {
+ MYP="`echo ${PATH} | sed -e 's/:/ /g'`"
++ eval _var=\"\${${ENVNAME}}\"
++ if test -n "$_var"; then
++ echo "$_var"
++ return
++ fi
+
+ for D in $MYP
+ do
+@@ -31,11 +36,13 @@ do
+ done
+
+ # WC is special
++ENVNAME=WC
+ PGM=`findbin wc | head -n 1`
+ echo "WC=\"${PGM} -l\""
+ echo "WCC=\"${PGM}\""
+
+ # DFCMD is an alias for DF
++ENVNAME=DF
+ PGM=`findbin df | head -n 1`
+ echo "# DF,DFCMD and PS are for compatibility only, NOT USED by the Hobbit client"
+ echo "DF=\"${PGM} -Pk\""
Home |
Main Index |
Thread Index |
Old Index