diff options
author | spz <spz@pkgsrc.org> | 2010-03-16 00:23:46 +0000 |
---|---|---|
committer | spz <spz@pkgsrc.org> | 2010-03-16 00:23:46 +0000 |
commit | f9a5fa67b785463b0a8c68b6f96cb32bf545d433 (patch) | |
tree | 60607f10f8d39928a2306962854d0d1ddf156bd0 /net | |
parent | b69247865c58c03fa993445f7491f7650342ec96 (diff) | |
download | pkgsrc-f9a5fa67b785463b0a8c68b6f96cb32bf545d433.tar.gz |
setting vital info like the hostname environment variable in the
startup script makes xymonclient work so amazingly better than without :-}
Diffstat (limited to 'net')
-rw-r--r-- | net/xymonclient/Makefile | 4 | ||||
-rw-r--r-- | net/xymonclient/files/xymonclient.sh | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/net/xymonclient/Makefile b/net/xymonclient/Makefile index 4744629ec9c..d22e1aa8fe1 100644 --- a/net/xymonclient/Makefile +++ b/net/xymonclient/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.3 2010/02/18 06:40:06 spz Exp $ +# $NetBSD: Makefile,v 1.4 2010/03/16 00:23:46 spz Exp $ # DISTNAME= xymon-4.3.0-beta2 PKGNAME= xymonclient-4.3.0b2 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hobbitmon/} diff --git a/net/xymonclient/files/xymonclient.sh b/net/xymonclient/files/xymonclient.sh index fb177c7603a..d78e91ca513 100644 --- a/net/xymonclient/files/xymonclient.sh +++ b/net/xymonclient/files/xymonclient.sh @@ -45,6 +45,13 @@ xymon_precmd() ln -s @BBLOGDIR@ $HOBBITCLIENTHOME/logs fi touch ${xymon_pidfile} && chown ${xymonclient_user} ${xymon_pidfile} + + MACHINEDOTS="`uname -n`" + export MACHINEDOTS + BBOSTYPE="`uname -s | tr '[ABCDEFGHIJKLMNOPQRSTUVWXYZ/]' '[abcdefghijklmnopqrstuvwxyz_]'`" + export BBOSTYPE + BBOSSCRIPT="hobbitclient-$BBOSTYPE.sh" + export BBOSSCRIPT } start_precmd="xymon_precmd" |