summaryrefslogtreecommitdiff
path: root/net/hobbitmon
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2005-01-13 09:27:06 +0000
committermanu <manu@pkgsrc.org>2005-01-13 09:27:06 +0000
commit1ea3380387f77169ae2a190e310c54c25275eea1 (patch)
treee5b0933b371801c8ada44c5db92818b9f3f1cf8d /net/hobbitmon
parentf4b53e320141dfd56134547e5e5f65e39c73abfb (diff)
downloadpkgsrc-1ea3380387f77169ae2a190e310c54c25275eea1.tar.gz
Hobbitmon is a big brother like network monitoring tool
Diffstat (limited to 'net/hobbitmon')
-rw-r--r--net/hobbitmon/DESCR14
-rw-r--r--net/hobbitmon/Makefile73
-rw-r--r--net/hobbitmon/PLIST234
-rw-r--r--net/hobbitmon/distinfo12
-rw-r--r--net/hobbitmon/patches/patch-aa214
-rw-r--r--net/hobbitmon/patches/patch-ab13
-rw-r--r--net/hobbitmon/patches/patch-ac13
-rw-r--r--net/hobbitmon/patches/patch-ad12
-rw-r--r--net/hobbitmon/patches/patch-af12
-rw-r--r--net/hobbitmon/patches/patch-ag18
-rw-r--r--net/hobbitmon/patches/patch-ah13
-rw-r--r--net/hobbitmon/patches/patch-ai11
12 files changed, 639 insertions, 0 deletions
diff --git a/net/hobbitmon/DESCR b/net/hobbitmon/DESCR
new file mode 100644
index 00000000000..0727d1486cf
--- /dev/null
+++ b/net/hobbitmon/DESCR
@@ -0,0 +1,14 @@
+Hobbit is the successor to the bbgen toolkit, which
+has been available as an add-on to Big Brother since late 2002.
+The name change was decided upon when Hobbit acquired enough
+functionality to be a stand-alone product. The tools that formed
+the bbgen toolkit are still present in Hobbit and are quite
+important for it, so if you have used bbgen before, Hobbit
+will seem quite familiar.
+
+Hobbit monitors your hosts, your network services, and anything else
+you configure it to do via extensions. Hobbit will
+periodically generate requests to network services - http, ftp,
+smtp and so on - and record if the service is responding as
+expected. Through the use of agents installed on the servers,
+you can also monitor local disk utilisation, logfiles and processes.
diff --git a/net/hobbitmon/Makefile b/net/hobbitmon/Makefile
new file mode 100644
index 00000000000..f514ab127a3
--- /dev/null
+++ b/net/hobbitmon/Makefile
@@ -0,0 +1,73 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+#
+
+DISTNAME= hobbit-4.0beta4
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hobbitmon/}
+
+MAINTAINER= manu@NetBSD.org
+HOMEPAGE= http://hobbitmon.sourceforge.net/
+COMMENT= Network services monitor a la Big Brother
+
+DEPENDS+= fping>2:../../net/fping
+
+USE_BUILDLINK3= YES
+HAS_CONFIGURE= YES
+USE_GNU_TOOLS+= make
+USE_PKGINSTALL=YES
+
+.include "../../mk/bsd.prefs.mk"
+
+BBUSER?= hobbit
+BBGROUP?= hobbit
+BBTOPDIR?= ${PREFIX}/hobbit
+BBLOGDIR?= /var/log/hobbit
+BBHOSTURL?= /hobbit
+CGIDIR?= ${BBTOPDIR}/cgi-bin
+BBCGIURL?= /cgi-bin
+BBHOSTIP?= 127.0.0.1
+
+PKG_GROUPS= ${BBGROUP}
+PKG_USERS= ${BBUSER}:${BBGROUP}::Hobbit\\ monitor:${BBTOPDIR}
+
+CONFIGURE_ENV+= TARGET=hobbit
+CONFIGURE_ENV+= FPING=${PREFIX}/sbin/fping
+CONFIGURE_ENV+= RRDINC=${PREFIX}/include
+CONFIGURE_ENV+= RRDLIB=${PREFIX}/lib/librrd.a
+CONFIGURE_ENV+= PNGLIB=${PREFIX}/lib/libpng.a
+CONFIGURE_ENV+= LDAPINC=${PREFIX}/include
+CONFIGURE_ENV+= LDAPLIB=${PREFIX}/lib
+CONFIGURE_ENV+= OSSLINC=${PREFIX}/include
+CONFIGURE_ENV+= OSSLLIB=${PREFIX}/lib
+CONFIGURE_ENV+= PCREINC=${PREFIX}/include
+CONFIGURE_ENV+= PCRELIB=${PREFIX}/lib
+CONFIGURE_ENV+= ENABLESSL=y
+CONFIGURE_ENV+= ENABLELDAP=y
+CONFIGURE_ENV+= BBUSER=${BBUSER}
+CONFIGURE_ENV+= BBTOPDIR=${BBTOPDIR}
+CONFIGURE_ENV+= BBHOSTURL=${BBHOSTURL}
+CONFIGURE_ENV+= CGIDIR=${CGIDIR}
+CONFIGURE_ENV+= BBCGIURL=${BBCGIURL}
+CONFIGURE_ENV+= HTTPDGID=${APACHE_GROUP}
+CONFIGURE_ENV+= BBLOGDIR=${BBLOGDIR}
+CONFIGURE_ENV+= BBHOSTIP=${BBHOSTIP}
+CONFIGURE_ENV+= MANROOT=${PREFIX}/man
+CONFIGURE_ENV+= BARS=all
+CONFIGURE_ENV+= USENEWHIST=y
+CONFIGURE_ENV+= PIXELCOUNT=560
+
+do-install:
+ cd ${WRKSRC} ; \
+ if ${TEST} -f ${BBTOPDIR}/server/etc/bb-hosts ; then \
+ ${GMAKE} install ; \
+ else \
+ ${GMAKE} setup ; \
+ fi
+
+.include "../../databases/rrdtool/buildlink3.mk"
+.include "../../databases/openldap/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/hobbitmon/PLIST b/net/hobbitmon/PLIST
new file mode 100644
index 00000000000..21f26292c82
--- /dev/null
+++ b/net/hobbitmon/PLIST
@@ -0,0 +1,234 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+man/man1/bbhostshow.1
+man/man1/bbhostgrep.1
+man/man1/bbdigest.1
+man/man1/bbcmd.1
+man/man1/bb.1
+man/man1/bb-ack.cgi.1
+man/man1/bbgen.1
+man/man1/bbcombotest.1
+man/man1/bb-snapshot.cgi.1
+man/man1/bb-replog.cgi.1
+man/man1/bb-rep.cgi.1
+man/man1/bb-hostsvc.cgi.1
+man/man1/bb-hist.cgi.1
+man/man1/bb-findhost.cgi.1
+man/man1/bb-eventlog.cgi.1
+man/man1/bb-csvinfo.cgi.1
+man/man1/bbmessage.cgi.1
+man/man1/bbtest-net.1
+man/man1/bbretest-net.sh.1
+man/man1/hobbitgraph.cgi.1
+man/man5/hobbitserver.cfg.5
+man/man5/hobbitlaunch.cfg.5
+man/man5/bb-hosts.5
+man/man5/bbcombotest.cfg.5
+man/man5/bb-services.5
+man/man5/hobbitgraph.cfg.5
+man/man7/hobbit.7
+man/man8/hobbitlaunch.8
+man/man8/bbproxy.8
+man/man8/hobbitd_larrd.8
+man/man8/hobbitd_history.8
+man/man8/hobbitd_filestore.8
+man/man8/hobbitd_channel.8
+man/man8/hobbitd_alert.8
+man/man8/hobbitd.8
+hobbit/server/bin/bbcmd
+hobbit/server/bin/hobbitlaunch
+hobbit/server/bin/bb
+hobbit/server/bin/bbdigest
+hobbit/server/bin/bbhostshow
+hobbit/server/bin/bbhostgrep
+hobbit/server/bin/bbgen
+hobbit/server/bin/bb-larrdcolumn
+hobbit/server/bin/bb-webpage
+hobbit/server/bin/bb-ack.cgi
+hobbit/server/bin/bb-hostsvc.cgi
+hobbit/server/bin/bb-csvinfo.cgi
+hobbit/server/bin/bb-findhost.cgi
+hobbit/server/bin/bb-eventlog.cgi
+hobbit/server/bin/bb-snapshot.cgi
+hobbit/server/bin/bb-hist.cgi
+hobbit/server/bin/bb-replog.cgi
+hobbit/server/bin/bb-rep.cgi
+hobbit/server/bin/bb-infocolumn
+hobbit/server/bin/bbtest-net
+hobbit/server/bin/bbproxy
+hobbit/server/bin/hobbitd
+hobbit/server/bin/starthobbit.sh
+hobbit/server/bin/hobbitd_sample
+hobbit/server/bin/hobbitd_larrd
+hobbit/server/bin/hobbitd_alert
+hobbit/server/bin/hobbitd_history
+hobbit/server/bin/hobbitd_filestore
+hobbit/server/bin/hobbitd_channel
+hobbit/server/bin/hobbitgraph.cgi
+hobbit/server/etc/bb-services
+hobbit/server/etc/hobbitgraph.cfg
+hobbit/server/etc/columndoc.csv
+hobbit/server/etc/hobbit-apache.conf
+hobbit/server/etc/hobbitserver.cfg
+hobbit/server/etc/bb-hosts
+hobbit/server/etc/hobbit-alerts.cfg
+hobbit/server/etc/hobbitlaunch.cfg
+hobbit/server/ext/bbcombotest
+hobbit/server/ext/bbretest-net.sh
+hobbit/server/web/acknowledge_header
+hobbit/server/web/acknowledge_footer
+hobbit/server/web/acknowledge_form
+hobbit/server/web/findhost_header
+hobbit/server/web/findhost_footer
+hobbit/server/web/findhost_form
+hobbit/server/web/report_header
+hobbit/server/web/report_footer
+hobbit/server/web/report_form
+hobbit/server/web/bbrep_footer
+hobbit/server/web/info_footer
+hobbit/server/web/bbnk_footer
+hobbit/server/web/bbrep_header
+hobbit/server/web/graphs_footer
+hobbit/server/web/info_header
+hobbit/server/web/bbnk_header
+hobbit/server/web/bb2_header
+hobbit/server/web/bb2_footer
+hobbit/server/web/histlog_footer
+hobbit/server/web/graphs_header
+hobbit/server/web/hostsvc_footer
+hobbit/server/web/maint_footer
+hobbit/server/web/hist_footer
+hobbit/server/web/histlog_header
+hobbit/server/web/hostsvc_header
+hobbit/server/web/bb_footer
+hobbit/server/web/replog_footer
+hobbit/server/web/bb_header
+hobbit/server/web/maint_header
+hobbit/server/web/columndoc_footer
+hobbit/server/web/hist_header
+hobbit/server/web/replog_header
+hobbit/server/web/columndoc_header
+hobbit/server/www/gifs/bbfindhost1.gif
+hobbit/server/www/gifs/bbfindhost2.gif
+hobbit/server/www/gifs/unknown-recent.gif
+hobbit/server/www/gifs/clear.gif
+hobbit/server/www/gifs/green.gif
+hobbit/server/www/gifs/yellow.gif
+hobbit/server/www/gifs/red.gif
+hobbit/server/www/gifs/purple-recent.gif
+hobbit/server/www/gifs/bkg-clear.gif
+hobbit/server/www/gifs/bkg-green.gif
+hobbit/server/www/gifs/README
+hobbit/server/www/gifs/purple.gif
+hobbit/server/www/gifs/bkg-blue.gif
+hobbit/server/www/gifs/blue-recent.gif
+hobbit/server/www/gifs/red-recent.gif
+hobbit/server/www/gifs/blue.gif
+hobbit/server/www/gifs/yellow-ack.gif
+hobbit/server/www/gifs/green-recent.gif
+hobbit/server/www/gifs/arrow.gif
+hobbit/server/www/gifs/purple-ack.gif
+hobbit/server/www/gifs/red-ack.gif
+hobbit/server/www/gifs/yellow-recent.gif
+hobbit/server/www/gifs/bkg-red.gif
+hobbit/server/www/gifs/bkg-yellow.gif
+hobbit/server/www/gifs/clear-recent.gif
+hobbit/server/www/gifs/bkg-purple.gif
+hobbit/server/www/help/bb-findhost.html
+hobbit/server/www/help/manpages/man1/bb-eventlog.cgi.1.html
+hobbit/server/www/help/manpages/man1/bb-rep.cgi.1.html
+hobbit/server/www/help/manpages/man1/bbmessage.cgi.1.html
+hobbit/server/www/help/manpages/man1/bbtest-net.1.html
+hobbit/server/www/help/manpages/man1/bb-ack.cgi.1.html
+hobbit/server/www/help/manpages/man1/bb-findhost.cgi.1.html
+hobbit/server/www/help/manpages/man1/bb-hist.cgi.1.html
+hobbit/server/www/help/manpages/man1/bb-csvinfo.cgi.1.html
+hobbit/server/www/help/manpages/man1/bbcombotest.1.html
+hobbit/server/www/help/manpages/man1/bb-hostsvc.cgi.1.html
+hobbit/server/www/help/manpages/man1/bbcmd.1.html
+hobbit/server/www/help/manpages/man1/bbdigest.1.html
+hobbit/server/www/help/manpages/man1/bbhostgrep.1.html
+hobbit/server/www/help/manpages/man1/bbhostshow.1.html
+hobbit/server/www/help/manpages/man1/bb.1.html
+hobbit/server/www/help/manpages/man1/bbgen.1.html
+hobbit/server/www/help/manpages/man1/bbretest-net.sh.1.html
+hobbit/server/www/help/manpages/man1/bb-replog.cgi.1.html
+hobbit/server/www/help/manpages/man1/hobbitgraph.cgi.1.html
+hobbit/server/www/help/manpages/man1/bb-snapshot.cgi.1.html
+hobbit/server/www/help/manpages/man5/hobbitlaunch.cfg.5.html
+hobbit/server/www/help/manpages/man5/hobbitgraph.cfg.5.html
+hobbit/server/www/help/manpages/man5/hobbitserver.cfg.5.html
+hobbit/server/www/help/manpages/man5/bb-hosts.5.html
+hobbit/server/www/help/manpages/man5/bb-services.5.html
+hobbit/server/www/help/manpages/man5/bbcombotest.cfg.5.html
+hobbit/server/www/help/manpages/man7/hobbit.7.html
+hobbit/server/www/help/manpages/man8/hobbitd_channel.8.html
+hobbit/server/www/help/manpages/man8/hobbitd.8.html
+hobbit/server/www/help/manpages/man8/hobbitd_filestore.8.html
+hobbit/server/www/help/manpages/man8/hobbitd_larrd.8.html
+hobbit/server/www/help/manpages/man8/hobbitd_history.8.html
+hobbit/server/www/help/manpages/man8/hobbitd_alert.8.html
+hobbit/server/www/help/manpages/man8/bbproxy.8.html
+hobbit/server/www/help/manpages/man8/hobbitlaunch.8.html
+hobbit/server/www/help/manpages/index.html
+hobbit/server/www/help/about.html
+hobbit/server/www/help/hobbitmain.png
+hobbit/server/www/help/hobbit-bbhosts.png
+hobbit/server/www/help/hobbit-apacheconf.txt
+hobbit/server/www/help/configure.txt
+hobbit/server/www/help/known-issues.html
+hobbit/server/www/help/install.html
+hobbit/server/www/help/hobbit-tips.html
+hobbit/server/www/help/hobbit-config.html
+hobbit/server/www/help/hobbit-bigbrother.html
+hobbit/server/www/help/hobbit-alerts.html
+hobbit/server/www/help/bb-to-hobbit.html
+hobbit/server/www/help/hobbitprocs.png
+hobbit/server/www/menu/menu_items.js
+hobbit/server/www/menu/menu_tpl.js
+hobbit/server/www/menu/menu.css
+hobbit/server/www/menu/README
+hobbit/server/www/menu/menu.js
+hobbit/server/www/menu/menu_items.js.DIST
+hobbit/server/starthobbit.sh
+hobbit/cgi-bin/bb-rep.sh
+hobbit/cgi-bin/bb-histlog.sh
+hobbit/cgi-bin/bb-hostsvc.sh
+hobbit/cgi-bin/bbmessage.cgi
+hobbit/cgi-bin/bb-csvinfo.sh
+hobbit/cgi-bin/bb-findhost.sh
+hobbit/cgi-bin/bb-eventlog.sh
+hobbit/cgi-bin/bb-snapshot.sh
+hobbit/cgi-bin/bb-hist.sh
+hobbit/cgi-bin/bb-replog.sh
+hobbit/cgi-bin/hobbitcolumn.sh
+hobbit/cgi-bin/maint.pl
+hobbit/cgi-bin/hobbitgraph.sh
+hobbit/cgi-bin/bb-ack.sh
+@dirrm hobbit/server/bin
+@dirrm hobbit/server/etc
+@dirrm hobbit/server/ext
+@dirrm hobbit/server/tmp
+@dirrm hobbit/server/web
+@dirrm hobbit/server/www/gifs
+@dirrm hobbit/server/www/help/manpages/man1
+@dirrm hobbit/server/www/help/manpages/man5
+@dirrm hobbit/server/www/help/manpages/man7
+@dirrm hobbit/server/www/help/manpages/man8
+@dirrm hobbit/server/www/help/manpages
+@dirrm hobbit/server/www/help
+@dirrm hobbit/server/www/html
+@dirrm hobbit/server/www/menu
+@dirrm hobbit/server/www/notes
+@dirrm hobbit/server/www/rep
+@dirrm hobbit/server/www/wml
+@dirrm hobbit/server/www
+@dirrm hobbit/server
+@dirrm hobbit/data/acks
+@dirrm hobbit/data/data
+@dirrm hobbit/data/disabled
+@dirrm hobbit/data/hist
+@dirrm hobbit/data/histlogs
+@dirrm hobbit/data/logs
+@dirrm hobbit/data/rrd
+@dirrm hobbit/data
+@dirrm hobbit/cgi-bin
diff --git a/net/hobbitmon/distinfo b/net/hobbitmon/distinfo
new file mode 100644
index 00000000000..c80336663f1
--- /dev/null
+++ b/net/hobbitmon/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+
+SHA1 (hobbit-4.0beta4.tar.gz) = a08d9f9f66a4682010b52b37044ed56e8bbcdee9
+Size (hobbit-4.0beta4.tar.gz) = 877211 bytes
+SHA1 (patch-aa) = e6b4ec53db64820dbb412c51ca1c982cb5682488
+SHA1 (patch-ab) = 56c15c5a0ae06ba11a57db4afa54b581cdae6be1
+SHA1 (patch-ac) = 45978593d7842e57bcc208a82f78e817322152ff
+SHA1 (patch-ad) = e14f9b6c0f45ac8ef86f2ee1019a21c1fa976a0f
+SHA1 (patch-af) = ac26bffb8f079d8352c76b6aef71103f2cd2e720
+SHA1 (patch-ag) = 4451bb8bf64bb241f8fc4f689b9bf6a975981137
+SHA1 (patch-ah) = e2df4e6cfafdb701473137f735572b89ab8a56fa
+SHA1 (patch-ai) = b0af1ab453e7f6170362a676f04eab2b07284e22
diff --git a/net/hobbitmon/patches/patch-aa b/net/hobbitmon/patches/patch-aa
new file mode 100644
index 00000000000..d7425b21059
--- /dev/null
+++ b/net/hobbitmon/patches/patch-aa
@@ -0,0 +1,214 @@
+$NetBSD: patch-aa,v 1.1.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 ""
+
+ 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
diff --git a/net/hobbitmon/patches/patch-ab b/net/hobbitmon/patches/patch-ab
new file mode 100644
index 00000000000..3eec11fbdb6
--- /dev/null
+++ b/net/hobbitmon/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- build/fping.sh.orig 2005-01-12 18:56:26.000000000 +0100
++++ build/fping.sh 2005-01-12 18:56:38.000000000 +0100
+@@ -1,9 +1,8 @@
+ #!/bin/sh
+
+ echo "Checking for fping ..."
+
+- FPING=""
+
+ for DIR in /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /opt/bin
+ do
+ if test -x $DIR/fping
diff --git a/net/hobbitmon/patches/patch-ac b/net/hobbitmon/patches/patch-ac
new file mode 100644
index 00000000000..8a09a090a51
--- /dev/null
+++ b/net/hobbitmon/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- build/rrd.sh.orig 2005-01-12 18:58:04.000000000 +0100
++++ build/rrd.sh 2005-01-12 18:58:53.000000000 +0100
+@@ -1,9 +1,6 @@
+ echo "Checking for RRDtool ..."
+
+- RRDINC=""
+- RRDLIB=""
+- PNGLIB=""
+ for DIR in /opt/rrdtool* /usr/local/rrdtool* /usr/local /usr
+ do
+ if test -f $DIR/include/rrd.h
+ then
diff --git a/net/hobbitmon/patches/patch-ad b/net/hobbitmon/patches/patch-ad
new file mode 100644
index 00000000000..538b74edb62
--- /dev/null
+++ b/net/hobbitmon/patches/patch-ad
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- build/ldap.sh.orig 2005-01-12 18:59:22.000000000 +0100
++++ build/ldap.sh 2005-01-12 18:59:54.000000000 +0100
+@@ -1,8 +1,6 @@
+ echo "Checking for LDAP ..."
+
+- LDAPINC=""
+- LDAPLIB=""
+ for DIR in /opt/openldap* /opt/ldap* /usr/local/openldap* /usr/local/ldap* /usr/local /usr
+ do
+ if test -f $DIR/include/ldap.h
+ then
diff --git a/net/hobbitmon/patches/patch-af b/net/hobbitmon/patches/patch-af
new file mode 100644
index 00000000000..e6b719056e3
--- /dev/null
+++ b/net/hobbitmon/patches/patch-af
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- build/pcre.sh.orig 2005-01-12 19:01:30.000000000 +0100
++++ build/pcre.sh 2005-01-12 19:02:00.000000000 +0100
+@@ -1,8 +1,6 @@
+ echo "Checking for PCRE ..."
+
+- PCREINC=""
+- PCRELIB=""
+ for DIR in /opt/pcre* /usr/local/pcre* /usr/local /usr
+ do
+ if test -f $DIR/include/pcre.h
+ then
diff --git a/net/hobbitmon/patches/patch-ag b/net/hobbitmon/patches/patch-ag
new file mode 100644
index 00000000000..b71d777b8e8
--- /dev/null
+++ b/net/hobbitmon/patches/patch-ag
@@ -0,0 +1,18 @@
+$NetBSD: patch-ag,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- build/Makefile.NetBSD.orig 2005-01-12 19:27:25.000000000 +0100
++++ build/Makefile.NetBSD 2005-01-12 21:49:42.000000000 +0100
+@@ -0,0 +1,14 @@
++# bbgen compile-time settings for FreeBSD systems
++
++OSDEF = -DBSD
++
++# NETLIBS: None needed
++NETLIBS =
++
++# Compile flags for normal build
++CC = gcc
++CFLAGS = -g -O2 -Wall -Wno-unused -D_REENTRANT -I/usr/local/include -I/usr/pkg/include -L/usr/local/lib -L/usr/pkg/lib
++
++# Compile flags for debugging
++# CFLAGS = -g -DDEBUG -Wall -D_REENTRANT -I/usr/local/include -L/usr/local/lib
++
diff --git a/net/hobbitmon/patches/patch-ah b/net/hobbitmon/patches/patch-ah
new file mode 100644
index 00000000000..7c890c3becd
--- /dev/null
+++ b/net/hobbitmon/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- build/Makefile.test-rrd.orig 2005-01-12 19:19:58.000000000 +0100
++++ build/Makefile.test-rrd 2005-01-12 19:23:36.000000000 +0100
+@@ -1,8 +1,8 @@
+ include Makefile.$(OS)
+
+ test-compile:
+- @$(CC) $(CFLAGS) $(RRDINC) -o test-rrd.o -c test-rrd.c
++ @$(CC) $(CFLAGS) $(RRDINC) -c test-rrd.c
+
+ test-link:
+ @$(CC) $(CFLAGS) $(RRDLIB) -o test-rrd test-rrd.o -lrrd $(PNGLIB)
+
diff --git a/net/hobbitmon/patches/patch-ai b/net/hobbitmon/patches/patch-ai
new file mode 100644
index 00000000000..d19fd50fba5
--- /dev/null
+++ b/net/hobbitmon/patches/patch-ai
@@ -0,0 +1,11 @@
+$NetBSD: patch-ai,v 1.1.1.1 2005/01/13 09:27:06 manu Exp $
+--- docs/Makefile.orig 2005-01-13 00:10:08.000000000 +0100
++++ docs/Makefile 2005-01-13 00:10:52.000000000 +0100
+@@ -1,6 +1,6 @@
+ all:
+- @/bin/true
++ @/usr/bin/true
+
+ clean:
+ rm -f *~ manpages/index.html* manpages/man1/* manpages/man5/* manpages/man7/* manpages/man8/*
+