head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.6 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.4 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.2 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.3.0.52 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.50 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.48 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.46 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.44 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.42 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.40 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.38 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.36 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.34 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.32 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.30 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.28 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.26 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.24 pkgsrc-2008Q1:1.3.0.22 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.20 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.18 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.16 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.14 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.12 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.10 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.8 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.6 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.4 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.2 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.2.0.4 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.2 pkgsrc-2005Q1-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2011.09.16.11.59.00; author obache; state dead; branches; next 1.3; 1.3 date 2005.09.17.21.31.26; author minskim; state Exp; branches; next 1.2; 1.2 date 2005.01.24.18.18.31; author manu; state dead; branches; next 1.1; 1.1 date 2005.01.13.09.27.06; author manu; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.01.13.09.27.06; author manu; state Exp; branches; next ; desc @@ 1.4 log @Hobbit Monitor has been renamed to Xymon. @ text @$NetBSD: patch-aa,v 1.3 2005/09/17 21:31:26 minskim Exp $ --- build/test-rrd.c.orig 2004-12-25 03:40:25.000000000 -0800 +++ build/test-rrd.c @@@@ -20,10 +20,11 @@@@ int main(int argc, char *argv[]) char **calcpr=NULL; int pcount, result, xsize, ysize; + double ymin, ymax; for (pcount = 0; (rrdargs[pcount]); pcount++); rrd_clear_error(); - result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize); + result = rrd_graph(pcount, rrdargs, &calcpr, &xsize, &ysize, NULL, &ymin, &ymax); return 0; } @ 1.3 log @Make this package build with rrdtool-1.2.x. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Hobbit-0.6beta2: bugfixes @ text @d1 14 a14 42 $NetBSD: patch-aa,v 1.1 2005/01/13 09:27:06 manu Exp $ --- configure.orig 2005-01-01 14:38:16.000000000 +0100 +++ configure 2005-01-12 23:58:45.000000000 +0100 @@@@ -13,9 +13,8 @@@@ else echo "This script asks a few questions and builds a Makefile to compile Hobbit" echo "" echo "Are you setting up a Hobbit server (hobbit), or using Hobbit with BB (bb) [hobbit] ?" - read TARGET if test -z "$TARGET" then TARGET="hobbit" fi @@@@ -48,9 +47,11 @@@@ echo "like POP3S, IMAPS, NNTPS and TELNETS. If you have the OpenSSL" echo "library installed, I recommend that you enable this." echo "" echo "Do you want to be able to test SSL-enabled services (y) ?" - read ENABLESSL + if test -z "$ENABLESSL" ; then + read ENABLESSL + fi if test "$ENABLESSL" = "" -o "$ENABLESSL" = "y" then SSLDEF="-DBBGEN_SSL" else @@@@ -69,9 +70,11 @@@@ echo "" echo "Hobbit can use your $LDAPVENDOR LDAP client library to test LDAP servers." echo "" echo "Do you want to be able to test LDAP servers (y) ?" - read ENABLELDAP + if test -z "$ENABLELDAP" ; then + read ENABLELDAP + fi if test "$ENABLELDAP" = "" -o "$ENABLELDAP" = "y" then if test "$LDAPVENDOR" = "OpenLDAP"; then echo "Enable experimental support for LDAP/SSL (OpenLDAP 2.x only) (y) ?" @@@@ -177,57 +180,68 @@@@ echo "Setting up for a Hobbit server" echo ""; echo "" d16 2 a17 171 echo "What userid will be running Hobbit [hobbit] ?" - read BBUSER + if test -z "$BBUSER" ; then + read BBUSER + fi if test -z "$BBUSER" then BBUSER="hobbit" fi - USERDATA=`getent passwd $BBUSER || grep "^${BBUSER}:" /etc/passwd` + USERDATA=`awk -F: -vbbuser=${BBUSER} '($1 == bbuser){print $5}' /etc/passwd` if test $? -eq 0 then echo "Found passwd entry for user $USERDATA" else echo "FAILURE: The user $BBUSER does not exist. Create user and try again." exit 1 + A fi echo ""; echo "" HOMEDIR="`echo $USERDATA|cut -d: -f6`" echo "Where do you want the Hobbit installation [${HOMEDIR}] ?" - read BBTOPDIR + if test -z "$BBTOPDIR" ; then + read BBTOPDIR + fi if test -z "$BBTOPDIR" then BBTOPDIR=${HOMEDIR} fi - if test -d "$BBTOPDIR" - then - echo "OK, will configure to use $BBTOPDIR as the Hobbit toplevel directory" - else - echo "** FAILURE: $BBTOPDIR does not exist. Create it and try again." - exit 1 - fi +# if test -d "$BBTOPDIR" +# then +# echo "OK, will configure to use $BBTOPDIR as the Hobbit toplevel directory" +# else +# echo "** FAILURE: $BBTOPDIR does not exist. Create it and try again." +# exit 1 +# fi echo ""; echo "" echo "What URL will you use for the Hobbit webpages [/hobbit] ? " - read BBHOSTURL + if test -z "$BBHOSTURL"; then + read BBHOSTURL + fi if test -z "$BBHOSTURL" then BBHOSTURL="/hobbit" fi echo ""; echo "" echo "Where to put the Hobbit CGI scripts [$BBTOPDIR/cgi-bin] ? " - read CGIDIR + if test -z "$CGIDIR"; then + read CGIDIR + fi if test -z "$CGIDIR" then CGIDIR=$BBTOPDIR/cgi-bin fi echo ""; echo "" echo "What is the URL for the Hobbit CGI directory [/hobbit-cgi] ? " - read BBCGIURL + if test -z "$BBCGIURL" ; then + read BBCGIURL + fi if test -z "$BBCGIURL" then BBCGIURL="/hobbit-cgi" fi @@@@ -244,29 +258,35 @@@@ echo "'nobody' or 'apache' or 'www-data'" echo "If you dont know, just hit ENTER and we will handle it later." echo "" echo "What group-ID does your webserver use ?" - read HTTPDGID + if test -z "$HTTPDGID" ; then + read HTTPDGID + fi echo ""; echo "" echo "Where to put the Hobbit logfiles [/var/log/hobbit] ? " - read BBLOGDIR + if test -z "$BBLOGDIR" ; then + read BBLOGDIR + fi if test -z "$BBLOGDIR" then BBLOGDIR=/var/log/hobbit fi echo ""; echo "" - echo "What is the name of this host [`uname -n`] ? " - read BBHOSTNAME +# echo "What is the name of this host [`uname -n`] ? " +# read BBHOSTNAME if test -z "$BBHOSTNAME" then BBHOSTNAME=`uname -n` fi echo ""; echo "" echo "What is the IP-address of this host [127.0.0.1] ? " - read BBHOSTIP + if test -z "$BBHOSTIP" ; then + read BBHOSTIP + fi if test -z "$BBHOSTIP" then echo "** NOTE: Using 127.0.0.1 (loopback), but it is probably not what you want **" BBHOSTIP=127.0.0.1 @@@@ -281,9 +301,11 @@@@ MAXMSG=32768 fi echo "Where should I install the Hobbit man-pages (/usr/local/man) ?" - read MANROOT + if test -z "$MANROOT" ; then + read MANROOT + fi if test -z "$MANROOT" then MANROOT=/usr/local/man fi @@@@ -293,9 +315,11 @@@@ echo "graph of the history. It can also show a 1-week, 4-weeks and" echo "1-year graphs, or any combination of these." echo "" echo "Which graphs to show by default (1d/1w/4w/1y/all) [all]" - read BARS + if test -z "$BARS" ; then + read BARS + fi if test "$BARS" = "all" -o "$BARS" = "" then BARSUMS=15 export BARSUMS @@@@ -341,9 +365,11 @@@@ echo "graph instead of the standard Big Brother graph that automatically" echo "resizes to fit your browser window." echo "" echo "Use the new detailed Hobbit history graph (y/n) [y] ? " - read USENEWHIST + if test -z "$USENEWHIST" ; then + read USENEWHIST + fi if test "$USENEWHIST" = "" -o "$USENEWHIST" = "y" then echo " Tell me the display width (in pixels) to use for" echo " the history graph. This could be anything, but to" @@@@ -351,9 +377,11 @@@@ echo " is best to use a multiple of 24." echo " The default value (960) is good on 1024x768 displays" echo "" echo " What width should I use for the graph [960] ? " - read PIXELCOUNT + if test -z "$PIXELCOUNT" ; then + read PIXELCOUNT + fi if test "$PIXELCOUNT" = "" then HISTGRAPHDEF="-DDEFPIXELS=960" export HISTGRAPHDEF @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Hobbitmon is a big brother like network monitoring tool @ text @@