summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/PKGBUILD
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-12-09 17:18:27 (GMT)
committerCecil <knoppmyth@gmail.com>2011-12-09 17:18:27 (GMT)
commitc034db2c880091379f7e58c2938a9689d78fbaa9 (patch)
tree8a074205a2f3bf6ee7fb5945c53e1a1618d41973 /abs/core/xymon/PKGBUILD
parent73b42144585c603fc64e7b1d6a126ceb7c486870 (diff)
parentb0c5755ade92ee5b76a6d56248e64254876bc931 (diff)
downloadlinhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.zip
linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.tar.gz
linhes_pkgbuild-c034db2c880091379f7e58c2938a9689d78fbaa9.tar.bz2
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/xymon/PKGBUILD')
-rw-r--r--abs/core/xymon/PKGBUILD125
1 files changed, 125 insertions, 0 deletions
diff --git a/abs/core/xymon/PKGBUILD b/abs/core/xymon/PKGBUILD
new file mode 100644
index 0000000..560bbeb
--- /dev/null
+++ b/abs/core/xymon/PKGBUILD
@@ -0,0 +1,125 @@
+pkgbase=xymon
+pkgname=(xymonserver xymonclient)
+pkgver=4.3.5
+pkgrel=24
+pkgdesc="Hobbit is a system for monitoring servers and networks. "
+license="GPL"
+arch=('i686' 'x86_64')
+
+url="http://www.xymon.com/"
+
+source=(http://voxel.dl.sourceforge.net/project/xymon/Xymon/4.3.5/xymon-4.3.5.tar.gz hobbitadd.py xymon_ghost_check graph.cfg.diff xymonserver.cfg.diff tasks.d.mv clientlaunch.cfg.patch hobbitstorage.py hbnotes.py hobbit-myth-orphan.sh analysis.cfg hbfunc.py be.png tuner.png tv.png hobbit-mem-myth.sh hobbit_notify.sh alerts.cfg hobbit_myth_data.py logrotate.xymon log_list.sh client-local.cfg.patch)
+depends=(rrdtool fping pcre python graphviz)
+install=xymon.install
+
+build() {
+
+ cd $startdir/src/xymon-$pkgver
+ ENABLESSL=n \
+ ENABLELDAP=n \
+ ENABLELDAPSSL=n \
+ XYMONUSER=nobody \
+ XYMONTOPDIR=/data/srv/xymon \
+ XYMONVAR=/data/srv/xymon/var \
+ XYMONHOSTURL=/xymon \
+ CGIDIR=/data/srv/httpd/htdocs/xymon/hobbit-cgi \
+ XYMONCGIURL=/xymon/hobbit-cgi \
+ SECURECGIDIR=/data/srv/httpd/htdocs/xymon/hobbit-seccgi \
+ SECUREXYMONCGIURL=/xymon/hobbit-seccgi \
+ HTTPDGID=nobody \
+ XYMONLOGDIR=/var/log/hobbit \
+ XYMONHOSTNAME=localhost \
+ XYMONHOSTIP=127.0.0.1 \
+ MANROOT=/usr/share/man \
+ BARS=all \
+ USENEWHIST=y \
+ PIXELCOUNT=960 \
+ INSTALLBINDIR=/data/srv/xymon/server/bin \
+ INSTALLETCDIR=/data/srv/xymon/etc \
+ INSTALLWEBDIR=/data/srv/xymon/web \
+ INSTALLEXTDIR=/data/srv/xymon/server/ext \
+ INSTALLTMPDIR=/data/srv/xymon/tmp \
+ INSTALLWWWDIR=/data/srv/httpd/htdocs/xymon/ \
+ ./configure
+
+ make PKGBUILD=1|| return 1
+}
+
+package_xymonserver(){
+ cd $startdir/src/xymon-$pkgver
+ make PKGBUILD=1 INSTALLROOT=$startdir/pkg/xymonserver install
+ cd $startdir/src
+ install -D -m755 $startdir/src/hobbitadd.py $startdir/pkg/xymonserver/data/srv/xymon/server/bin/hobbitadd.py
+ install -D -m755 $startdir/src/hobbitstorage.py $startdir/pkg/xymonserver/data/srv/xymon/server/ext/hobbitstorage.py
+ install -D -m755 $startdir/src/hobbit-myth-orphan.sh $startdir/pkg/xymonserver/data/srv/xymon/server/ext/hobbit-myth-orphan.sh
+ install -D -m755 $startdir/src/hbfunc.py $startdir/pkg/xymonserver/data/srv/xymon/server/ext/hbfunc.py
+ install -D -m755 $startdir/src/hbnotes.py $startdir/pkg/xymonserver/data/srv/xymon/server/ext/hbnotes.py
+ install -D -m755 $startdir/src/hobbit_myth_data.py $startdir/pkg/xymonserver/data/srv/xymon/server/ext/hobbit_myth_data.py
+ install -D -m755 $startdir/src/hobbit-mem-myth.sh $startdir/pkg/xymonserver/data/srv/xymon/server/ext/hobbit-mem-myth.sh
+ install -D -m755 $startdir/src/log_list.sh $startdir/pkg/xymonserver/data/srv/xymon/client/bin/log_list.sh
+
+# install -D -m755 xymon_ghost_check $startdir/pkg/xymonserver/etc/cron.tenminutes/xymon_ghost_check
+ install -m755 analysis.cfg $startdir/pkg/xymonserver/data/srv/xymon/etc/analysis.cfg
+ cat alerts.cfg >> $startdir/pkg/xymonserver/data/srv/xymon/etc/alerts.cfg
+
+ install -m755 hobbit_notify.sh $startdir/pkg/xymonserver/data/srv/xymon/server/bin/hobbit_notify.sh
+ install -m755 $startdir/src/tv.png $startdir/pkg/xymonserver/data/srv/httpd/htdocs/xymon/gifs/tv.png
+ install -m755 $startdir/src/tuner.png $startdir/pkg/xymonserver/data/srv/httpd/htdocs/xymon/gifs/tuner.png
+ install -m755 $startdir/src/be.png $startdir/pkg/xymonserver/data/srv/httpd/htdocs/xymon/gifs/be.png
+
+ install -D -m755 $startdir/src/logrotate.xymon $startdir/pkg/xymonserver/etc/logrotate.d/xymon
+
+ #apply patches to conf file
+# mkdir -p $startdir/pkg/xymonserver/data/srv/xymon/etc/tasks.d/
+# mkdir -p $startdir/pkg/xymonserver/data/srv/xymon/etc/tasks.d/
+ cat $startdir/src/tasks.d.mv >> $startdir/pkg/xymonserver/data/srv/xymon/etc/tasks.cfg
+ cd $startdir/pkg/xymonserver/data/srv/xymon/etc
+ patch -p0 < $startdir/src/graph.cfg.diff || return 1
+ patch -p0 < $startdir/src/xymonserver.cfg.diff || return 1
+ patch -p4 < $startdir/src/client-local.cfg.patch || return 1
+
+
+
+ }
+
+
+package_xymonclient(){
+ #create client package as well
+ depends=()
+ install=xymon-client.install
+
+ install -D -m755 $startdir/src/log_list.sh $startdir/pkg/xymon/client/data/srv/xymon/client/bin/log_list.sh
+ install -D -m755 $startdir/src/logrotate.xymon $startdir/pkg/xymonclient/etc/logrotate.d/xymon
+ install -D -m755 $startdir/src/hobbit-mem-myth.sh $startdir/pkg/xymonclient/data/srv/xymon/client/ext/hobbit-mem-myth.sh
+ cp -rp /$startdir/pkg/xymonserver/data/srv/xymon/client/ $startdir/pkg/xymonclient/data/srv/xymon/
+
+ cd -
+ cd $startdir/pkg/xymonclient/data/srv/xymon/client/etc
+ patch -p0 < $startdir/src/clientlaunch.cfg.patch
+ cd -
+
+
+ }
+
+md5sums=('31923ec126fe1c264fceb459d2175161'
+ '28399d002ace27f01c6cfee3edd407ee'
+ '0f79d9715a827fa845a114b74b2c190c'
+ 'a45dd4cdb84817bcf3e51b25cc713799'
+ '034658a1084510ecbbb0dc166c0401eb'
+ 'cc845b5aedc33dda8e3103b915fe4967'
+ '650b523d879f32c1bad3b4a9e10e7c93'
+ '093648dabb0d1da0fdcc37b327737f43'
+ '62b73cf181fdc227c95aade509b65c0a'
+ '6eb6ecdf33454f35b6c2409b863c816f'
+ 'f6921f0413215ae174e81306be80d37f'
+ 'c08b0f116674b1eb8cd5902c1f497644'
+ 'd210c43fb9ee9ad6cd7648e0c2e0efea'
+ '0c808fa12672289f86b0651545381308'
+ '0469d775db9fdd18ea95dd41937ada82'
+ '0757294eec13771f8e63da23cf066796'
+ '622f400fd098cbc43c203e3210a6694e'
+ 'd06c4327cc69aeead3fa05f39660f33e'
+ '129353c8ad92e89c691382a98dd5ce77'
+ 'e6a3ed8b8f6abe357bd1736ff1e63001'
+ '98e9242ae346f729b14cb195786571f2'
+ '40fa09bdb1ae60f3fe767f1c6a979b65')