2009-09-08 Sancho Lerena <slerena@artica.es>

* Initial load of extras subdir. Expect to have some dirty
	scripts and misc. stuff here. 

	* extras/tentacle_proxy: Tentacle proxy script to pass data/conf files from
	one tentacle server, used like a proxy to reach another server. 

	* extras/aditional_rpmspec: Additional RPM's to create RPM packages to
	satisfy Pandora FMS dependencies.

	* extras/build_rpm_packages.sh: Script to make all Pandora FMS RPM's.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1921 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-09-08 15:40:51 +00:00
parent 83b1cc3423
commit 4a868a3163
14 changed files with 934 additions and 0 deletions

12
extras/ChangeLog Normal file
View File

@ -0,0 +1,12 @@
2009-09-08 Sancho Lerena <slerena@artica.es>
* Initial load of extras subdir. Expect to have some dirty
scripts and misc. stuff here.
* extras/tentacle_proxy: Tentacle proxy script to pass data/conf files from
one tentacle server, used like a proxy to reach another server.
* extras/aditional_rpmspec: Additional RPM's to create RPM packages to
satisfy Pandora FMS dependencies.
* extras/build_rpm_packages.sh: Script to make all Pandora FMS RPM's.

View File

@ -0,0 +1,59 @@
#HTML-Parser Perl Module
#
%define name perl-html-parser
%define version 3.61
Summary: Collection of modules that parse and extract information from HTML documents
Name: %{name}
Version: %{version}
Release: 0
License: perl
Vendor: Gisle Aas <gisle@ActiveState.com>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/dist/HTML-Parser/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
AutoReq: 1
Provides: %{name}-%{version}
%description
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%{perl_vendorarch}/auto/HTML/Parser/Parser.bs
%{perl_vendorarch}/auto/HTML/Parser/.packlist
%{perl_vendorarch}/auto/HTML/Parser/Parser.so
%{perl_vendorarch}/HTML/Parser.pm
%{perl_vendorarch}/HTML/Entities.pm
%{perl_vendorarch}/HTML/LinkExtor.pm
%{perl_vendorarch}/HTML/Filter.pm
%{perl_vendorarch}/HTML/PullParser.pm
%{perl_vendorarch}/HTML/TokeParser.pm
%{perl_vendorarch}/HTML/HeadParser.pm
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,59 @@
#IO-Socket-Multicast Perl Module
#
%define name perl-io-socket-multicast
%define version 1.07
Summary: Send and receive multicast messages
Name: %{name}
Version: %{version}
Release: 2
License: perl
Vendor: Lincoln Steinx <lstein@cshl.org>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/~lds/IO-Socket-Multicast-1.07/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
AutoReq: 1
Provides: %{name}-%{version}
%description
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%{perl_vendorarch}/auto/HTML/Parser/Parser.bs
%{perl_vendorarch}/auto/HTML/Parser/.packlist
%{perl_vendorarch}/auto/HTML/Parser/Parser.so
%{perl_vendorarch}/HTML/Parser.pm
%{perl_vendorarch}/HTML/Entities.pm
%{perl_vendorarch}/HTML/LinkExtor.pm
%{perl_vendorarch}/HTML/Filter.pm
%{perl_vendorarch}/HTML/PullParser.pm
%{perl_vendorarch}/HTML/TokeParser.pm
%{perl_vendorarch}/HTML/HeadParser.pm
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,76 @@
#Mail-Sendamail Perl Module
#
%define name perl-mail-sendmail
%define version 0.79_16
Summary: Mail::Sendmail v. 0.79 - Simple platform independent mailer
Name: %{name}
Version: %{version}
Release: 0
License: Public domain, Freeware
Vendor: Milivoj Ivkovic <mi@alma.ch>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
AutoReq: 1
Provides: %{name}-%{version}
%description
Simple platform independent e-mail from your perl script. Only requires Perl 5 and a network connection.
Mail::Sendmail contains mainly &sendmail, which takes a hash with the message to send and sends it. It is intended to be very easy to setup and use.
FEATURES
Automatic time zone detection, Date: header, MIME quoted-printable encoding (if MIME::QuotedPrint installed), all of which can be overridden.
Bcc: and Cc: support.
Allows real names in From:, To: and Cc: fields
Doesn't send an X-Mailer: header (unless you do), and allows you to send any header(s) you want.
Configurable retries and use of alternate servers if your mail server is down
Good plain text error reporting
LIMITATIONS
Headers are not encoded, even if they have accented characters.
Since the whole message is in memory, it's not suitable for sending very big attached files.
The SMTP server has to be set manually in Sendmail.pm or in your script, unless you have a mail server on localhost.
Doesn't work on OpenVMS, I was told. Cannot test this myself.
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%{perl_vendorlib}/Mail/Sendmail.pm
%{perl_vendorarch}/auto/Mail/Sendmail/.packlist
#%{perl_vendorlib}/x86_64-linux-thread-multi/auto/Mail/Sendmail/.packlist
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,72 @@
#Net-Traceroute Perl Module
#
%define name perl-net-traceroute
%define version 1.10
Summary: Net::Traceroute traceroute(1) functionality in perl
Name: %{name}
Version: %{version}
Release: 0
License: Other License(s), see package
Vendor: Daniel Hagerty <hag@ai.mit.edu>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/~hag/Net-Traceroute-1.10/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
AutoReq: 1
Provides: %{name}-%{version}
%description
Currently attempts to parse the output of the system traceroute command, which it expects will behave like the standard LBL traceroute program. If it doesn't, (Windows, HPUX come to mind) you lose.
Could eventually be broken into several classes that know how to deal with various traceroutes; could attempt to auto-recognize the particular traceroute and parse it.
Has a couple of random useful hooks for child classes to override.
LICENCE:
Copyright 1998, 1999 Massachusetts Institute of Technology
Copyright 2000-2005 Daniel Hagerty
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of M.I.T. not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission. M.I.T. makes no representations about the
suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ChangeLog README MANIFEST
%{perl_vendorlib}/Net/Traceroute.pm
%{perl_vendorarch}/auto/Net/Traceroute/.packlist
#%{perl_vendorlib}/x86_64-linux-thread-multi/auto/Net/Traceroute/.packlist
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,55 @@
#Net-Traceroute-PurePerl Perl Module
#
%define name perl-net-traceroute-pureperl
%define version 0.10
Summary: Net::Traceroute:PurePerl traceroute(1) functionality in perl via raw sockets
Name: %{name}
Version: %{version}
Release: 0
License: Public domain, Freeware
Vendor: Tom Scanlan <tscanlan@openreach.com>, Andrew Hoying <ahoying@cpan.org>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/~ahoying/Net-Traceroute-PurePerl-0.10/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl perl-net-traceroute
AutoReq: 1
Provides: %{name}-%{version}
%description
This module implements traceroute(1) functionality for perl5. It allows
you to trace the path IP packets take to a destination. It is
implemented by using raw sockets to act just like the regular
traceroute.
You must also be root to use the raw sockets.
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%{perl_vendorlib}/Net/Traceroute/PurePerl.pm
%{perl_vendorarch}/auto/Net/Traceroute/PurePerl/.packlist
#%{perl_vendorlib}/x86_64-linux-thread-multi/auto/Net/Traceroute/PurePerl/.packlist
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,125 @@
#NetAddr-IP Perl Module
#
%define name perl-netaddr-ip
%define version 4.027
Summary: Manages IPv4 and IPv6 addresses and subnets
Name: %{name}
Version: %{version}
Release: 0
License: Perl Artistic Licence
Vendor: Luis E. Muñoz <luismunoz@cpan.org>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/~miker/NetAddr-IP-4.027/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
AutoReq: 1
Provides: %{name}-%{version}
%description
NetAddr::IP - Manage IP addresses and subnets
This distribution is designed as a help for managing (ranges of) IP
addresses. It includes efficient implementations for most common tasks
done to subnets or ranges of IP addresses, namely verifying if an
address is within a subnet, comparing, looping, splitting subnets into
longer prefixes, compacting addresses to the shortest prefixes, etc.
LICENSE AND WARRANTY
This software is (c) Luis E. Muñoz and Michael A. Robinton. It can be
used under the terms of the perl artistic license provided that proper
credit for the work of the authors is preserved in the form of this
copyright notice and license for this module.
No warranty of any kind is expressed or implied. This code might make
your computer go up in a puff of black smoke.
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL -noxs
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%{perl_vendorlib}/NetAddr/IP/Util_IS.pm
%{perl_vendorlib}/NetAddr/IP/UtilPP.pm
%{perl_vendorlib}/NetAddr/IP/Lite.pm
%{perl_vendorlib}/NetAddr/IP/Util.pm
%{perl_vendorlib}/NetAddr/IP.pm
%{perl_vendorarch}/auto/NetAddr/IP/.packlist
%{perl_vendorlib}/auto/NetAddr/IP/Util/autosplit.ix
%{perl_vendorlib}/auto/NetAddr/IP/Util/inet_any2n.al
%{perl_vendorlib}/auto/NetAddr/IP/Util/inet_n2ad.al
%{perl_vendorlib}/auto/NetAddr/IP/Util/inet_n2dx.al
%{perl_vendorlib}/auto/NetAddr/IP/Util/ipv6_aton.al
%{perl_vendorlib}/auto/NetAddr/IP/Util/ipv6_n2d.al
%{perl_vendorlib}/auto/NetAddr/IP/Util/ipv6_n2x.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_128x10.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_128x2.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_bcd2bin.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_bcdcheck.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_bin2bcdn.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_deadlen.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/_sa128.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/add128.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/addconst.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/autosplit.ix
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/bcd2bin.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/bcdn2bin.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/bcdn2txt.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/bin2bcd.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/bin2bcdn.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/comp128.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/hasbits.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/ipanyto6.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/ipv4to6.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/ipv6to4.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/isIPv4.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/mask4to6.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/maskanyto6.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/notcontiguous.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/shiftleft.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/simple_pack.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/slowadd128.al
%{perl_vendorlib}/auto/NetAddr/IP/UtilPP/sub128.al
%{perl_vendorlib}/auto/NetAddr/IP/_compV6.al
%{perl_vendorlib}/auto/NetAddr/IP/_compact_v6.al
%{perl_vendorlib}/auto/NetAddr/IP/_splitplan.al
%{perl_vendorlib}/auto/NetAddr/IP/_splitref.al
%{perl_vendorlib}/auto/NetAddr/IP/autosplit.ix
%{perl_vendorlib}/auto/NetAddr/IP/coalesce.al
%{perl_vendorlib}/auto/NetAddr/IP/compactref.al
%{perl_vendorlib}/auto/NetAddr/IP/do_prefix.al
%{perl_vendorlib}/auto/NetAddr/IP/full.al
%{perl_vendorlib}/auto/NetAddr/IP/full6.al
%{perl_vendorlib}/auto/NetAddr/IP/hostenum.al
%{perl_vendorlib}/auto/NetAddr/IP/mod_version.al
%{perl_vendorlib}/auto/NetAddr/IP/nprefix.al
%{perl_vendorlib}/auto/NetAddr/IP/prefix.al
%{perl_vendorlib}/auto/NetAddr/IP/re.al
%{perl_vendorlib}/auto/NetAddr/IP/re6.al
%{perl_vendorlib}/auto/NetAddr/IP/short.al
%{perl_vendorlib}/auto/NetAddr/IP/wildcard.al
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,83 @@
#Time-Format Perl Module
#
%define name perl-time-format
%define version 1.11
Summary: Easy-to-use date/time formatting.
Name: %{name}
Version: %{version}
Release: 0
License: Other License(s), see package
Vendor: Eric J. Roode, <roode@cpan.org>
Source0: %{name}-%{version}.tar.bz2
URL: http://search.cpan.org/~roode/Time-Format-1.11/
Group: Development/Libraries/Perl
Packager: Pablo de la Concepcion <pablo@artica.es>
Prefix: /usr/share
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
AutoReq: 1
Provides: %{name}-%{version}
%description
Time::Format provides a very easy way to format dates and times. The
formatting functions are tied to hash variables, so they can be used
inside strings as well as in ordinary expressions. The formatting
codes used are meant to be easy to remember, use, and read. They
follow a simple, consistent pattern. If I've done my job right, once
you learn the codes, you should never have to refer to the
documentation again.
AUTHOR / COPYRIGHT
Copyright (c) 2003-2009 by Eric J. Roode, ROODE I<-at-> cpan I<-dot-> org
All rights reserved.
To avoid my spam filter, please include "Perl", "module", or this
module's name in the message's subject line, and/or GPG-sign your
message.
This module is copyrighted only to ensure proper attribution of
authorship and to ensure that it remains available to all. This
module is free, open-source software. This module may be freely used
for any purpose, commercial, public, or private, provided that proper
credit is given, and that no more-restrictive license is applied to
derivative (not dependent) works.
Substantial efforts have been made to ensure that this software meets
high quality standards; however, no guarantee can be made that there
are no undiscovered bugs, and no warranty is made as to suitability to
any given use, including merchantability. Should this module cause
your house to burn down, your dog to collapse, your heart-lung machine
to fail, your spouse to desert you, or George Bush to be re-elected, I
can offer only my sincere sympathy and apologies, and promise to
endeavor to improve the software.
%prep
rm -rf $RPM_BUILD_ROOT
# Unconpress quietly (-q)
%setup -q
%build
perl Makefile.PL -noxs
make
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes README MANIFEST
%{perl_vendorlib}/Time/Format.pm
%{perl_vendorarch}/auto/Time/Format/.packlist
%doc %{_mandir}/man3/*
/var/adm/perl-modules/%{name}

View File

@ -0,0 +1,113 @@
#DB PHP PEAR Module
#
%define name php-pear-db
%define version 1.7.14RC1
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define xmldir /var/lib/pear
Summary: PEAR: Database Abstraction Layer
Name: %{name}
Version: %{version}
Release: 0
License: PHP License
Group: Development/Libraries
Source0: DB-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
URL: http://pear.php.net/package/DB
#BuildRequires: PEAR::PEAR >= 1.4.7
BuildRequires: php5-pear
#Requires: PEAR::PEAR >= 1.4.0b1
Requires: php5-pear
BuildArch: noarch
Packager: Pablo de la Concepcion <pablo@artica.es>
%description
DB is a database abstraction layer providing:
* an OO-style query API
* portability features that make programs written for one DBMS work with
other DBMSs
* a DSN (data source name) format for specifying database servers
* prepare/execute (bind) emulation for databases that dont support it
natively
* a result object for each query response
* portable error codes
* sequence emulation
* sequential and non-sequential row fetching as well as bulk fetching
* formats fetched rows as associative arrays, ordered arrays or objects
* row limit support
* transactions support
* table information interface
* DocBook and phpDocumentor API documentation
DB layers itself on top of PHPs existing
database extensions.
Drivers for the following extensions pass
the complete test suite and provide
interchangeability when all of DBs
portability options are enabled:
fbsql, ibase, informix, msql, mssql,
mysql, mysqli, oci8, odbc, pgsql,
sqlite and sybase.
There is also a driver for the dbase
extension, but it cant be used
interchangeably because dbase doesnt
support many standard DBMS features.
DB is compatible with both PHP 4 and PHP 5.
%prep
%setup -c -T
pear -v -c pearrc \
-d php_dir=%{peardir} \
-d doc_dir=/docs \
-d bin_dir=%{_bindir} \
-d data_dir=%{peardir}/data \
-d test_dir=%{peardir}/tests \
-d ext_dir=%{_libdir} \
-s
%build
%install
rm -rf %{buildroot}
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock
mv %{buildroot}/docs .
# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/DB.xml
%clean
rm -rf %{buildroot}
%post
pear install --nodeps --soft --force --register-only %{xmldir}/DB.xml
%postun
if [ "$1" -eq "0" ]; then
pear uninstall --nodeps --ignore-errors --register-only pear.php.net/DB
fi
%files
%defattr(-,root,root)
%doc docs/DB/*
%{peardir}/*
%{xmldir}/DB.xml

View File

@ -0,0 +1,78 @@
#XML_RPC PHP PEAR Module
#
%define name php-pear-xml_rpc
%define version 1.5.1
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define xmldir /var/lib/pear
Summary: PEAR: PHP implementation of the XML-RPC protocol
Name: %{name}
Version: %{version}
Release: 0
License: PHP License
Group: Development/Libraries
Source0: XML_RPC-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
URL: http://pear.php.net/package/XML_RPC
#BuildRequires: PEAR::PEAR >= 1.4.7
BuildRequires: php5-pear
#Requires: PEAR::PEAR >= 1.4.0b1
Requires: php5-pear
Packager: Pablo de la Concepcion <pablo@artica.es>
BuildArch: noarch
%description
A PEAR-ified version of Useful Incs XML-RPC for PHP.
It has support for HTTP/HTTPS transport, proxies and authentication.
%prep
%setup -c -T
pear -v -c pearrc \
-d php_dir=%{peardir} \
-d doc_dir=/docs \
-d bin_dir=%{_bindir} \
-d data_dir=%{peardir}/data \
-d test_dir=%{peardir}/tests \
-d ext_dir=%{_libdir} \
-s
%build
%install
rm -rf %{buildroot}
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock
# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package2.xml
cp -p package2.xml %{buildroot}%{xmldir}/XML_RPC.xml
%clean
rm -rf %{buildroot}
%post
pear install --nodeps --soft --force --register-only %{xmldir}/XML_RPC.xml
%postun
if [ "$1" -eq "0" ]; then
pear uninstall --nodeps --ignore-errors --register-only pear.php.net/XML_RPC
fi
%files
%defattr(-,root,root)
%{peardir}/*
%{xmldir}/XML_RPC.xml

View File

@ -0,0 +1,103 @@
Name: smstools
Version: 3.1.3
Release: 4.1
Summary: Tools to send and receive short messages through GSM modems or mobile phones
License: GPLv2+
Group: Applications/Communications
URL: http://smstools3.kekekasvi.com
Source0: http://smstools3.kekekasvi.com/packages/smstools3-%{version}.tar.gz
Source1 : smsd.init
Source2: smsd.logrotate
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(postun): /sbin/service
%description
The SMS Server Tools are made to send and receive short messages through
GSM modems. It supports easy file interfaces and it can run external
programs for automatic actions.
%prep
%setup -q -n smstools3
mv doc manual
mv examples/.procmailrc examples/procmailrc
mv examples/.qmailrc examples/qmailrc
find scripts/ examples/ manual/ -type f -print0 |xargs -0 chmod 644
%build
make -C src 'CFLAGS=%{optflags} -DNOSTATS' %{_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
install -Dm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/smsd
install -Dm 664 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/smstools
install -Dm 600 examples/smsd.conf.easy $RPM_BUILD_ROOT%{_sysconfdir}/smsd.conf
install -Dm 755 src/smsd $RPM_BUILD_ROOT%{_sbindir}/smsd
install -Dm 755 scripts/sendsms $RPM_BUILD_ROOT%{_bindir}/smssend
install -Dm 755 scripts/sms2html $RPM_BUILD_ROOT%{_bindir}/sms2html
install -Dm 755 scripts/sms2unicode $RPM_BUILD_ROOT%{_bindir}/sms2unicode
install -Dm 755 scripts/sms2xml $RPM_BUILD_ROOT%{_bindir}/sms2xml
install -Dm 755 scripts/unicode2sms $RPM_BUILD_ROOT%{_bindir}/unicode2sms
install -dm 750 $RPM_BUILD_ROOT%{_localstatedir}/spool/sms/checked
install -dm 750 $RPM_BUILD_ROOT%{_localstatedir}/spool/sms/failed
install -dm 750 $RPM_BUILD_ROOT%{_localstatedir}/spool/sms/incoming
install -dm 750 $RPM_BUILD_ROOT%{_localstatedir}/spool/sms/outgoing
install -dm 750 $RPM_BUILD_ROOT%{_localstatedir}/spool/sms/sent
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 0 ]; then
/sbin/chkconfig --add smsd
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service smsd stop >/dev/null 2>&1
/sbin/chkconfig --del smsd
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service smsd condrestart >/dev/null 2>&1
fi
%files
%defattr(-,root,root,-)
%doc LICENSE manual/ examples/ scripts/checkhandler-utf-8 scripts/email2sms scripts/eventhandler-utf-8
%doc scripts/mysmsd scripts/regular_run scripts/smsevent scripts/smsresend scripts/sql_demo
%{_sbindir}/*
%{_bindir}/*
%{_initrddir}/smsd
%config(noreplace) %{_sysconfdir}/logrotate.d/smstools
%config(noreplace) %{_sysconfdir}/smsd.conf
%dir %{_localstatedir}/spool/sms/
%dir %{_localstatedir}/spool/sms/checked
%dir %{_localstatedir}/spool/sms/failed
%dir %{_localstatedir}/spool/sms/incoming
%dir %{_localstatedir}/spool/sms/outgoing
%dir %{_localstatedir}/spool/sms/sent
%changelog
* Sat Nov 10 2007 Marek Mahut <mmahut@fedoraproject.org> 3.0.10-1
- Rewrite of spec file.
- Updated to version 3.0.10
* Sat Apr 07 2007 Andreas Thienemann <andreas@bawue.net> 3.0.6-1
- Updated to version 3.0.6
- Reverted daemonize patch as it is not needed anymore
* Wed Nov 30 2005 Andreas Thienemann <andreas@bawue.net> 1.15.7-3
- Fixed logrotate script
* Sun Sep 13 2005 Andreas Thienemann <andreas@bawue.net> 1.15.7-2
- Now with statistics support
* Sat Sep 12 2005 Andreas Thienemann <andreas@bawue.net> 1.15.7-1
- Initial spec.

View File

@ -0,0 +1,34 @@
#WMIC
#
%define name wmic
%define version 4.0.0SVN
Summary: Linux binary to do WMI querys
Name: %{name}
Version: %{version}
Release: 0
License: Other License(s), see package
Group: System/Management
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
AutoReq: 1
Provides: %{name}-%{version}
%description
Linux binary to do WMI querys
%prep
rm -rf $RPM_BUILD_ROOT
%setup -c
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin/
cp -p wmic $RPM_BUILD_ROOT/usr/bin/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
/usr/bin/wmic

View File

@ -0,0 +1,38 @@
#!/bin/bash
CODEHOME=/home/slerena/code/pandora/trunk
CODEHOME_ENT=/home/slerena/code/artica/code/
RPMHOME=/usr/src/rpm
echo "Creating source tarballs (/usr/src/rpm/SOURCES)"
rm -Rf /usr/src/rpm/SOURCES/pandorafms_*.tar.gz
cd $CODEHOME/pandora_agent
sudo tar zcvf $RPMHOME/SOURCES/pandorafms_agent-3.0.0.tar.gz --exclude \.svn --exclude nohup linux
cd $CODEHOME
sudo tar zcvf $RPMHOME/SOURCES/pandorafms_server-3.0.0.tar.gz --exclude \.svn pandora_server
# Console OpenSource
cd $CODEHOME
tar zcvf $RPMHOME/SOURCES/pandorafms_console-3.0.0.tar.gz --exclude \.svn --exclude config.php --exclude enterprise pandora_console
# Console Enterprise
cd $CODEHOME_ENT/pandora/trunk/pandora_console
sudo tar zcvf $RPMHOME/SOURCES/pandorafms_console_enterprise-3.0.0.tar.gz --exclude \.svn enterprise/*
# Server OpenSource
cd $CODEHOME_ENT/pandora/trunk/pandora_server/
sudo tar zcvf $RPMHOME/SOURCES/pandorafms_server_enterprise-3.0.0.tar.gz --exclude \.svn PandoraFMS-Enterprise
# Updatemanager Client keygen
cd $CODEHOME_ENT/updatemanager/keygen
sudo tar cvzf $RPMHOME/SOURCES/pandorafms_keygen-1.0.0.tar.gz --exclude .svn --exclude keygen --exclude keygen.i386.static --exclude pandora_keygen.spec pandora
echo "Creating RPMs at $RPMHOME/RPMS"
cd $CODEHOME
sudo rpmbuild -ba pandora_console/pandora_console.spec
sudo rpmbuild -ba pandora_agents/linux/pandora_agent.spec
sudo rpmbuild -ba pandora_server/pandora_server.spec
sudo rpmbuild -ba $CODEHOME_ENT/pandora/trunk/pandora_console/enterprise/pandora_console_enterprise.spec
sudo rpmbuild -ba $CODEHOME_ENT/pandora/trunk/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.spec
sudo rpmbuild -ba $CODEHOME_ENT/updatemanager/keygen/pandora/pandora_keygen.spec

27
extras/tentacle_proxy Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
# (c) 2008-2009 PandoraFMS.org Development Team
# This script is BSD Licensed.
# This script is used to copy all received data in /var/spool/pandora/data_in
# (default Pandora FMS incoming directory) to a remote Tentacle server.
# Define here your Parameters
TIMEOUT=5
SERVER_IP=192.168.50.1
# Main code, do not alter
while [ 1 ]
do
for myfile in `find /var/spool/pandora/data_in -type f`
do
tentacle_client -q -a $SERVER_IP $myfile
rm -Rf $myfile
done
sleep $TIMEOUT
done