2011-08-22 Sancho Lerena <slerena@artica.es>

* pandora_server.spec: Update of spec to be used in Opensuse
        Build Service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4794 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-08-22 00:41:14 +00:00
parent 0f42b0aa34
commit 2506a595b7
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2011-08-22 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Update of spec to be used in Opensuse Build
Service.
2011-08-19 Sancho Lerena <slerena@artica.es>
* DEBIAN/control

View File

@ -17,8 +17,9 @@ Group: System/Monitoring
Packager: Sancho Lerena <slerena@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildArchitectures: noarch
Requires(pre): /usr/sbin/useradd
BuildArch: noarch
PreReq: %fillup_prereq %insserv_prereq /usr/bin/sed /usr/bin/grep /usr/sbin/useradd
BuildRequires: sysvinit cron rsyslog sysconfig
AutoReq: 0
Provides: %{name}-%{version}
Requires: perl-DBI perl-DBD-mysql perl-libwww-perl
@ -85,12 +86,15 @@ rm -f $RPM_BUILD_ROOT%{prefix}/pandora_server/util/recon_scripts/PandoraFMS
rm -fr $RPM_BUILD_ROOT
%pre
/usr/sbin/useradd -d %{prefix}/pandora -s /bin/false -M -g 0 pandora
if [ "`id pandora | grep uid | wc -l`" = 0 ]
then
/usr/sbin/useradd -d %{prefix}/pandora -s /bin/false -M -g 0 pandora
fi
if [ -e "/etc/pandora/pandora_server.conf" ]
then
cat /etc/pandora/pandora_server.conf > /etc/pandora/pandora_server.conf.old
fi
exit 0
%post
chkconfig pandora_server on