summaryrefslogtreecommitdiff
path: root/network/zabbix_proxy/zabbix_proxy.SlackBuild
diff options
context:
space:
mode:
authorMichal Bialozor <bialyy@o2.pl>2012-12-23 08:14:25 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-23 08:14:59 +0100
commitc23d5541e966e7ae99f94849f37017a96e02d2fc (patch)
treef57c79fbc80948155180dafddc22956808b8bd5e /network/zabbix_proxy/zabbix_proxy.SlackBuild
parent11ba92aeec284d5e8c3086daf8cc6f5911fb8350 (diff)
downloadslackbuilds-c23d5541e966e7ae99f94849f37017a96e02d2fc.tar.gz
network/zabbix_proxy: Updated for version 1.8.15, cleanups.
Noted incompatibility with zabbix_server (small bash related cleanups --ponce) Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/zabbix_proxy/zabbix_proxy.SlackBuild')
-rw-r--r--network/zabbix_proxy/zabbix_proxy.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/network/zabbix_proxy/zabbix_proxy.SlackBuild b/network/zabbix_proxy/zabbix_proxy.SlackBuild
index c14b0f81f6..350f43f9da 100644
--- a/network/zabbix_proxy/zabbix_proxy.SlackBuild
+++ b/network/zabbix_proxy/zabbix_proxy.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for zabbix_proxy
-# Copyright 2010-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
+# Copyright 2012 Michal Bialozor, Gdansk, POLAND
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Thanks to Michal Bialozor for the initial idea.
-# revision date 2011/12/30
-
PRGNAM=zabbix_proxy
-VERSION=${VERSION:-1.8.10}
+VERSION=${VERSION:-1.8.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -102,7 +99,10 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-proxy \
--with-mysql \
--with-net-snmp \
+ --with-jabber \
--with-libcurl \
+ --with-ssh2 \
+ --with-ldap \
--build=$ARCH-slackware-linux
make
@@ -115,7 +115,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Database scripts
-mkdir -p $PKG/usr/share/$PRGNAM/{create,upgrades}
+mkdir -p $PKG/usr/share/$PRGNAM/create $PKG/usr/share/$PRGNAM/upgrades
cp -a create/schema \
$PKG/usr/share/$PRGNAM/create/
cp -a upgrades/dbpatches \
@@ -123,7 +123,7 @@ cp -a upgrades/dbpatches \
# Initial log file
mkdir -p $PKG/var/log/$PRGSHORT
-touch $PKG/var/log/$PRGSHORT/${PRGNAM}.log.new
+touch $PKG/var/log/$PRGSHORT/$PRGNAM.log.new
chown -R $ZABBIXUSER:$ZABBIXGROUP $PKG/var/log/$PRGSHORT
# Dir for pid-file
@@ -131,15 +131,17 @@ mkdir -p $PKG/var/run/$PRGSHORT
chown -R $ZABBIXUSER:$ZABBIXGROUP $PKG/var/run/$PRGSHORT
# Configuration file
-mkdir -p $PKG/etc/$PRGSHORT
+mkdir -p $PKG/etc/$PRGSHORT/externalscripts $PKG/etc/$PRGSHORT/zabbix_proxy.conf.d
sed -e "s,# PidFile=/tmp/,PidFile=/var/run/$PRGSHORT/," \
-e "s,# DBSocket=/tmp/,DBSocket=/var/run/mysql/," \
-e "s,LogFile=/tmp/,LogFile=/var/log/$PRGSHORT/," \
misc/conf/$PRGNAM.conf > $PKG/etc/$PRGSHORT/$PRGNAM.conf.new
+# Init script
mkdir -p $PKG/etc/rc.d
cat $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new
+# Documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog CREDITS INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION