2007-01-01 Manuel Arostegui <marostegui@artica.es>
* linux/pandora_agents.spec: Added to repository. Spec file for pandora agents RPM package. Launch scripts are installed under /usr/local/bin/ and configuration files are in /usr/local/etc/pandora git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5d5579be14
commit
fe14f7964c
|
@ -1,3 +1,9 @@
|
|||
2007-01-01 Manuel Arostegui <marostegui@artica.es>
|
||||
|
||||
* linux/pandora_agents.spec: Added to repository. Spec file for pandora
|
||||
agents RPM package. Launch scripts are installed under /usr/local/bin/
|
||||
and configuration files are in /usr/local/etc/pandora
|
||||
|
||||
2006-12-05 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* linux/pandora_agent.sh: Added support for SSH port (contrib from
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
#
|
||||
# Pandora Agents
|
||||
#
|
||||
%define name pandora_agents
|
||||
%define version 1.2.0
|
||||
Summary: Agents Babel Enterprise
|
||||
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/Security
|
||||
Packager: Manuel Arostegui <marostegui@artica.es>
|
||||
Prefix: /opt
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||
BuildArchitectures: noarch
|
||||
|
||||
AutoReq: 0
|
||||
Provides: %{name}-%{version}
|
||||
|
||||
%description
|
||||
Pandora agents are based on native languages in every platform: scripts that can be written in any
|
||||
language. It’s possible to reproduce any agent in any programming language and can be extended
|
||||
without difficulty the existing ones in order to cover aspects not taken into account up to the moment.
|
||||
These scripts are formed by modules that each one gathers a "chunk" of information. Thus, every agent
|
||||
gathers several "chunks" of information; this one is organized in a data set and stored in a single file,
|
||||
called data file.
|
||||
|
||||
%prep
|
||||
#rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%setup -q -n linux
|
||||
|
||||
%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/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/
|
||||
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
|
||||
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
|
||||
rm $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec
|
||||
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"
|
||||
%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
|
||||
%docdir %{prefix}/%{name}-%{version}-%{release}/docs
|
||||
%{prefix}/%{name}-%{version}-%{release}
|
||||
%{_mandir}/man1/pandora.1.gz
|
||||
%{_mandir}/man1/pandora_agents.1.gz
|
Loading…
Reference in New Issue