[Xymon] Trouble building CentOS RPM of 4.3.21
Root, Paul T
Paul.Root at CenturyLink.com
Fri Oct 2 19:32:20 CEST 2015
Dang, I found it.
Apparently, last time I built 4.3.10, I built rrdtools 1.4 and put it in /opt/rrdtool-1.4.5 and didn't make an rpm.
Back to the drawing board.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Root, Paul T
Sent: Friday, October 02, 2015 11:37 AM
To: 'xymon at xymon.com'
Subject: [Xymon] Trouble building CentOS RPM of 4.3.21
Hi,
I've been working on building a new rpm for my configuration of xymon 4.3.21.
I went through line by line, to get the install the way I wanted it, and everything seemed good. The xymon-client rpm works just fine.
But I can't install the server rpm, It wants librrd.so.4.
$ rpm -ivh xymon-4.3.21-1.x86_64.rpm-wants-librrd.so.4
error: Failed dependencies:
librrd.so.4()(64bit) is needed by xymon-4.3.21-1.x86_64
xymon-client conflicts with xymon-4.3.21-1.x86_64
I am trying to install on the machine I built it on, which has rrdtools 2 installed.
lib64rrdtool2-1.2.18-1.rhel5
rrdtool-1.2.18-1.rhel5
librrdtool2-1.2.18-1.rhel5
perl-rrdtool-1.2.18-1.rhel5
I'm building again right now after taking out the BuildRequires: lib64rrdtool2 line.
Any ideas?
Name: xymon
Version: 4.3.21
Release: 1
Group: Networking/Daemons
URL: http://xymon.sourceforge.net/
License: GPL
Source: xymon-4.3.21.tar.gz
Source1: xymon-init.d
Source2: xymon.logrotate
Source3: xymon-client.init
Source4: xymon-client.default
Summary: Xymon network monitor
BuildRoot: /tmp/xymon-root
BuildRequires: openssl-devel
BuildRequires: pcre-devel
#BuildRequires: rrdtool-devel
#BuildRequires: lib64rrdtool2
BuildRequires: openldap-devel
Conflicts: xymon-client
%description
Xymon (previously known as Hobbit) is a system for monitoring
your network servers and applications. This package contains
the server side of the Xymon package.
%package client
Summary: Xymon client reporting data to the Xymon server
Group: Applications/System
Conflicts: xymon
%description client
This package contains a client for the Xymon (previously known
as Hobbit) monitor. Clients report data about the local system to
the monitor, allowing it to check on the status of the system
load, filesystem utilisation, processes that must be running etc.
%prep
rm -rf $RPM_BUILD_ROOT
%setup
USEXYMONPING=n \
USEFPING=n \
ENABLESSL=y \
ENABLELDAP=y \
ENABLELDAPSSL=y \
XYMONUSER=xymon \
XYMONTOPDIR=/usr/lib64/xymon \
XYMONVAR=/var/lib/xymon \
XYMONHOSTURL=/xymon \
CGIDIR=/usr/lib64/xymon/cgi-bin \
XYMONCGIURL=/xymon-cgi \
SECURECGIDIR=/usr/lib64/xymon/cgi-secure \
SECUREXYMONCGIURL=/xymon-seccgi \
HTTPDGID=apache \
XYMONLOGDIR=/var/log/xymon \
XYMONHOSTNAME=localhost \
XYMONHOSTIP=127.0.0.1 \
MANROOT=/usr/local/man \
INSTALLBINDIR=/usr/lib64/xymon/server/bin \
INSTALLETCDIR=/usr/lib64/xymon/server/etc \
INSTALLWEBDIR=/usr/lib64/xymon/data \
INSTALLEXTDIR=/usr/lib64/xymon/server/ext \
INSTALLTMPDIR=/var/lib/xymon/tmp \
INSTALLWWWDIR=/var/lib/xymon/www \
./configure
%build
PKGBUILD=1 make
%install
INSTALLROOT=$RPM_BUILD_ROOT PKGBUILD=1 make install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/xymon
cp %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/xymon-client
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
cp %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/xymon
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
cp %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xymon-client
mkdir -p $RPM_BUILD_ROOT/usr/bin
cd $RPM_BUILD_ROOT/usr/bin && ln -sf ../lib64/xymon/server/bin/{xymon,xymoncmd} .
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
rmdir $RPM_BUILD_ROOT/usr/lib64/xymon/client/tmp
cd $RPM_BUILD_ROOT/usr/lib64/xymon/client && ln -sf /tmp tmp
rmdir $RPM_BUILD_ROOT/usr/lib64/xymon/client/logs
cd $RPM_BUILD_ROOT/usr/lib64/xymon/client && ln -sf ../../../../var/log/xymon logs
#mkdir -p $RPM_BUILD_ROOT/usr/lib64/xymon/server/www
mkdir -p $RPM_BUILD_ROOT/usr/lib64/xymon/server/www/rep
mkdir -p $RPM_BUILD_ROOT/usr/lib64/xymon/server/www/snap
mkdir -p $RPM_BUILD_ROOT/usr/lib64/xymon/server/www/menu
mkdir -p $RPM_BUILD_ROOT/etc/xymon
mv $RPM_BUILD_ROOT/usr/lib64/xymon/server/etc/* $RPM_BUILD_ROOT/etc/xymon
mv $RPM_BUILD_ROOT/etc/xymon/xymon-apache.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/
mkdir -p $RPM_BUILD_ROOT/etc/xymon/web
mv $RPM_BUILD_ROOT/usr/lib64/xymon/client/etc/xymonclient.cfg /tmp/xymonclient.cfg.$$
cat /tmp/xymonclient.cfg.$$ | sed -e 's!^XYMSRV=.*!include /var/run/xymonclient-runtime.cfg!' | grep -v "^XYMSERVERS=" >$RPM_BUILD_ROOT/usr/lib64/xymon/client/etc/xymonclient.cfg
rm /tmp/xymonclient.cfg.$$
mv $RPM_BUILD_ROOT/usr/lib64/xymon/client/etc/* $RPM_BUILD_ROOT/etc/xymon
[ -d $RPM_BUILD_ROOT/usr/lib64/xymon/server/etc ] && rmdir $RPM_BUILD_ROOT/usr/lib64/xymon/server/etc
cd $RPM_BUILD_ROOT/usr/lib64/xymon/server && ln -sf /etc/xymon etc
[ -d $RPM_BUILD_ROOT/usr/lib64/xymon/client/etc ] && rmdir $RPM_BUILD_ROOT/usr/lib64/xymon/client/etc
cd $RPM_BUILD_ROOT/usr/lib64/xymon/client && ln -sf /etc/xymon etc
mkdir -p $RPM_BUILD_ROOT/var/lib/xymon/tmp
%clean
rm -rf $RPM_BUILD_ROOT
%pre
id xymon 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
groupadd xymon || true
useradd -g xymon -c "Xymon user" -d /usr/lib64/xymon xymon
fi
if [ -e /var/log/xymon/xymonlaunch.pid -a -x /etc/init.d/xymon ]
then
/etc/init.d/xymon stop || true
fi
%pre client
id xymon 1>/dev/null 2>&1
if [ $? -ne 0 ]
then
groupadd xymon || true
useradd -g xymon -c "Xymon user" -d /usr/lib64/xymon xymon
fi
if [ -e /var/log/xymon/clientlaunch.pid -a -x /etc/init.d/xymon-client ]
then
/etc/init.d/xymon-client stop || true
fi
%post
chkconfig --add xymon
%post client
chkconfig --add xymon-client
%preun
if [ -e /var/log/xymon/xymonlaunch.pid -a -x /etc/init.d/xymon ]
then
/etc/init.d/xymon stop || true
fi
chkconfig --del xymon
%preun client
if [ -e /var/log/xymon/clientlaunch.pid -a -x /etc/init.d/xymon-client ]
then
/etc/init.d/xymon-client stop || true
fi
chkconfig --del xymon-client
%files
%attr(-, root, root) %doc README README.CLIENT Changes* COPYING CREDITS RELEASENOTES
%attr(644, root, root) %doc /usr/local/man/man*/*
%attr(644, root, root) %config /etc/xymon/*
%attr(644, root, root) %config /etc/httpd/conf.d/xymon-apache.conf
%attr(755, root, root) %dir /etc/xymon
%attr(755, root, root) %dir /etc/xymon/tasks.d
%attr(755, root, root) %dir /usr/lib64/xymon/server/download
%attr(755, root, root) %dir /etc/xymon/web
%attr(755, xymon, xymon) %dir /var/log/xymon
%attr(755, root, root) /etc/init.d/xymon
%attr(644, root, root) /etc/logrotate.d/xymon
%attr(-, root, root) /usr/lib64/xymon
%attr(-, root, root) /usr/bin/*
%attr(-, xymon, xymon) /var/lib/xymon
%attr(775, xymon, apache) %dir /var/lib/xymon/www/rep
%attr(775, xymon, apache) %dir /var/lib/xymon/www/snap
%attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu-grey.css
%attr(644, root, root) %config /var/lib/xymon/www/menu/xymonmenu-blue.css
%attr(755, xymon, xymon) %dir /usr/lib64/xymon/client/ext
%attr(664, xymon, apache) %config /usr/lib64/xymon/server/etc/critical.cfg
%attr(4750, root, xymon) /usr/lib64/xymon/server/bin/xymonping
%attr(750, root, xymon) /usr/lib64/xymon/client/bin/logfetch
%attr(750, root, xymon) /usr/lib64/xymon/client/bin/clientupdate
%files client
%attr(-, root, root) %doc README README.CLIENT Changes* COPYING CREDITS RELEASENOTES
%attr(-, root, root) /usr/lib64/xymon/client
%attr(755, root, root) /etc/init.d/xymon-client
%attr(644, root, root) %config /etc/sysconfig/xymon-client
%attr(755, xymon, xymon) %dir /var/log/xymon
Paul Root
Lead Engineer
CenturyLink Network Reliability Operations Center
390 Commerce Dr
Woodbury, MN 55125
Direct: (651)312-5207
Paul.Root at centurylink.com<mailto:Paul.Root at centurylink.com>
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20151002/1849ea5c/attachment.html>
More information about the Xymon
mailing list