Author: glen                         Date: Mon Feb  1 15:58:47 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/nagios-plugin-check_rbl:
   check_rbl.cfg (NONE -> 1.1)  (NEW), nagios-plugin-check_rbl.spec (NONE -> 
1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_rbl/check_rbl.cfg
diff -u /dev/null packages/nagios-plugin-check_rbl/check_rbl.cfg:1.1
--- /dev/null   Mon Feb  1 16:58:47 2010
+++ packages/nagios-plugin-check_rbl/check_rbl.cfg      Mon Feb  1 16:58:41 2010
@@ -0,0 +1,6 @@
+# Usage:
+# check_rbl
+define command {
+       command_name    check_rbl
+       command_line    /usr/lib/nagios/plugins/check_rbl $ARG1$
+}

================================================================
Index: packages/nagios-plugin-check_rbl/nagios-plugin-check_rbl.spec
diff -u /dev/null 
packages/nagios-plugin-check_rbl/nagios-plugin-check_rbl.spec:1.1
--- /dev/null   Mon Feb  1 16:58:47 2010
+++ packages/nagios-plugin-check_rbl/nagios-plugin-check_rbl.spec       Mon Feb 
 1 16:58:41 2010
@@ -0,0 +1,86 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%include       /usr/lib/rpm/macros.perl
+%define                plugin  check_rbl
+Summary:       check_rbl is a Nagios plugin to check if an SMTP server is 
blacklisted
+Name:          nagios-plugin-%{plugin}
+Version:       1.1.0
+Release:       0.4
+License:       GPL
+Group:         Networking
+Source0:       
http://www.id.ethz.ch/people/allid_list/corti/%{plugin}-%{version}.tar.gz
+# Source0-md5: 724cd353d48df3f4e9a98743146cfd0f
+Source1:       %{plugin}.cfg
+URL:           https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl
+BuildRequires: sed >= 4.0
+Requires:      nagios-common
+%if %{with tests}
+BuildRequires: perl-Nagios-Plugin
+BuildRequires: perl-Net-DNS
+BuildRequires: perl-Parallel-Iterator
+BuildRequires: perl-Readonly
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _noautoreq      'perl(utils)'
+
+%define                _sysconfdir     /etc/nagios/plugins
+%define                plugindir       %{_prefix}/lib/nagios/plugins
+
+%description
+check_rbl is a Nagios plugin to check if an SMTP server is blacklisted
+
+%prep
+%setup -q -n %{plugin}-%{version}
+
+%{__sed} -i -e '
+# no need for debug dependency
+/use Data::Dumper;/d
+
+# not needed, so kill to avoid extra dep
+/use version;/d
+' %{plugin}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLVENDORSCRIPT=%{plugindir} \
+       INSTALLDIRS=vendor
+
+%{__make}
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/check_rbl/.packlist
+rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/check_rbl.pod
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS Changes NEWS README INSTALL TODO VERSION
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/%{plugin}.cfg
+%attr(755,root,root) %{plugindir}/%{plugin}
+%{_mandir}/man3/*.3pm*
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/02/01 15:58:41  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to