2007-01-02 Manuel Arostegui <marostegui@artica.es>
* pandora_agents/linux/pandora_agents.spec: Added new PATHS for config files and binary ones. Fixed perms. Change Summary due to a typo bug. * pandora_console/pandora_console.spec: Added man pages. * pandora_server/specs/fedoracore5/pandora_server.spec: Added to reposistory. Completly re-write pandora server spec file, now it package everything. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@346 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b0ce5c7dae
commit
3fdb78761d
|
@ -1,3 +1,8 @@
|
|||
2007-01-02 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* linux/pandora_agents.spec: Added new PATHS for config files and binary
|
||||
ones. Fixed perms. Change Summary due to a typo bug.
|
||||
|
||||
2007-01-01 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* linux/pandora_agents.spec: Added to repository. Spec file for pandora
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
%define name pandora_agents
|
||||
%define version 1.2.0
|
||||
Summary: Agents Babel Enterprise
|
||||
Summary: Pandora Agents
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: 1
|
||||
|
@ -42,15 +42,19 @@ mkdir -p $RPM_BUILD_ROOT/usr/
|
|||
mkdir -p $RPM_BUILD_ROOT/usr/share/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/bin/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc/pandora/temp
|
||||
mkdir -p $RPM_BUILD_ROOT/var/spool/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/var/spool/pandora/data_out
|
||||
mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_agent.sh $RPM_BUILD_ROOT/usr/local/bin/pandora_agent
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_agent_daemon $RPM_BUILD_ROOT/usr/local/bin/pandora_agent_daemon
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_agent.conf $RPM_BUILD_ROOT/usr/local/etc/pandora/pandora_agent.conf
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_user.conf $RPM_BUILD_ROOT/usr/local/etc/pandora/pandora_user.conf
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_agent.sh $RPM_BUILD_ROOT/usr/bin/pandora_agent
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_agent_daemon $RPM_BUILD_ROOT/usr/bin/pandora_agent_daemon
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_agent.conf $RPM_BUILD_ROOT/etc/pandora/pandora_agent.conf
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_user.conf $RPM_BUILD_ROOT/etc/pandora/pandora_user.conf
|
||||
cp pandora.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
cp pandora_agents.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
if [ -f $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec ] ; then
|
||||
|
@ -60,13 +64,18 @@ fi
|
|||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%post
|
||||
echo "Pandora Agent has been place under /usr/local/bin/"
|
||||
echo "Pandora Agent configuration file is /usr/local/etc/pandora/pandora_agent.conf"
|
||||
echo "Pandora Agent has been place under /usr/bin/"
|
||||
echo "Pandora Agent configuration file is /etc/pandora/pandora_agent.conf"
|
||||
%files
|
||||
/usr/local/bin/pandora_agent
|
||||
/usr/local/etc/pandora/pandora_user.conf
|
||||
/usr/local/etc/pandora/pandora_agent.conf
|
||||
/usr/local/bin/pandora_agent_daemon
|
||||
%defattr(700,pandora,pandora)
|
||||
/usr/bin/pandora_agent_daemon
|
||||
/usr/bin/pandora_agent
|
||||
%defattr(600,pandora,pandora)
|
||||
/var/log/pandora/
|
||||
/var/spool/pandora/
|
||||
%defattr(755,pandora,pandora)
|
||||
/etc/pandora/pandora_user.conf
|
||||
/etc/pandora/pandora_agent.conf
|
||||
%docdir %{prefix}/%{name}-%{version}-%{release}/docs
|
||||
%{prefix}/%{name}-%{version}-%{release}
|
||||
%{_mandir}/man1/pandora.1.gz
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2007-01-02 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* pandora_console.spec: Added man pages.
|
||||
|
||||
2007-01-01 Raul Mateos <raulofpandora@gmail.com>
|
||||
|
||||
* include/functions_db.php: Add new function to obtain group list.
|
||||
|
|
|
@ -101,10 +101,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}
|
||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/usr/share/man/man1/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}
|
||||
cp pandora.1 $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/usr/share/man/man1/
|
||||
cp pandora_console.1 $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/usr/share/man/man1/
|
||||
cp pandora.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
cp pandora_console.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
if [ -f $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec ] ; then
|
||||
rm $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec
|
||||
fi
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2007-01-02 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* pandora_server/specs/fedoracore5/pandora_server.spec: Added to reposistory.
|
||||
Completly re-write pandora server spec file, now it package everything.
|
||||
|
||||
2006-12-22 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Fixed some
|
||||
|
|
|
@ -0,0 +1,91 @@
|
|||
#
|
||||
# Pandora Agents
|
||||
#
|
||||
%define name pandora_server
|
||||
%define version 1.2.0
|
||||
Summary: Pandora Server
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: 1
|
||||
License: GPL
|
||||
Vendor: Sancho Lerena <sancho.lerena@artica.es>
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
URL: http://pandora.sf.net
|
||||
Group: Networking/Servers
|
||||
Packager: Manuel Arostegui <marostegui@artica.es>
|
||||
Prefix: /opt
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||
BuildArchitectures: noarch
|
||||
|
||||
AutoReq: 0
|
||||
Provides: %{name}-%{version}
|
||||
|
||||
%description
|
||||
Pandora watchs your systems and applications, and allows to know the status of any element of that systems. Pandora could detect a network interface down, a defacementin your website, memory leak in one of your server app, or the movement of any value of the NASDAQ new technology market. If you want, Pandora could sent a SMS messagewhen your systems fails... or when Google value low below US$ 33
|
||||
|
||||
%prep
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%setup -q -n pandora_server
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/pandora/conf/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/bin/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/local/etc/pandora/conf/
|
||||
mkdir -p $RPM_BUILD_ROOT/var/spool/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/var/spool/pandora/data_in
|
||||
mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/pandora/
|
||||
|
||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_server.pl $RPM_BUILD_ROOT/usr/bin/pandora_server
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_network.pl $RPM_BUILD_ROOT/usr/bin/pandora_network
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_snmpconsole.pl $RPM_BUILD_ROOT/usr/bin/pandora_snmpconsole
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/conf/pandora_server.conf $RPM_BUILD_ROOT/etc/pandora/conf/pandora_server.conf
|
||||
mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/util/ $RPM_BUILD_ROOT/usr/share/pandora/
|
||||
cp pandora.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
cp pandora_server.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
if [ -f $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec ] ; then
|
||||
rm $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%post
|
||||
echo "Pandora Server binarys has been placed under /usr/bin/"
|
||||
echo "Pandora Server configuration is /etc/pandora/conf"
|
||||
echo "Pandora Server data has been placed under /var/spool/data_in/"
|
||||
echo "Pandora Server logs has benn placed under /var/log/pandora"
|
||||
echo "For further information please: man pandora or man pandora_server"
|
||||
%files
|
||||
%defattr(700,pandora,pandora)
|
||||
/usr/bin/pandora_server
|
||||
/usr/bin/pandora_network
|
||||
/usr/bin/pandora_snmpconsole
|
||||
/var/spool/pandora/
|
||||
%defattr(755,pandora,pandora)
|
||||
/etc/pandora/conf/pandora_server.conf
|
||||
/usr/share/pandora/util/pandora_config.pm
|
||||
/usr/share/pandora/util/pandora_db.pm
|
||||
/usr/share/pandora/util/pandora_tools.pm
|
||||
/usr/share/pandora/util/pandora_db.pl
|
||||
/usr/share/pandora/util/pandora_dbstress.pl
|
||||
/usr/share/pandora/util/snmptrapd
|
||||
%docdir %{prefix}/%{name}-%{version}-%{release}/docs
|
||||
%{prefix}/%{name}-%{version}-%{release}
|
||||
%{_mandir}/man1/pandora.1.gz
|
||||
%{_mandir}/man1/pandora_server.1.gz
|
Loading…
Reference in New Issue