packages: nagios-bp/DESTDIR.patch (NEW), nagios-bp/nagios-bp.spec (NEW) - n...

glen glen at pld-linux.org
Sun Jan 8 15:41:16 CET 2012


Author: glen                         Date: Sun Jan  8 14:41:16 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, not tested

---- Files affected:
packages/nagios-bp:
   DESTDIR.patch (NONE -> 1.1)  (NEW), nagios-bp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nagios-bp/DESTDIR.patch
diff -u /dev/null packages/nagios-bp/DESTDIR.patch:1.1
--- /dev/null	Sun Jan  8 15:41:16 2012
+++ packages/nagios-bp/DESTDIR.patch	Sun Jan  8 15:41:10 2012
@@ -0,0 +1,83 @@
+--- nagios-business-process-addon-0.9.6/share/lang/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/share/lang/Makefile.in	2012-01-08 10:23:16.778036737 +0200
+@@ -22,6 +22,6 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DATADIR)/lang
++	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(DATADIR)/lang
+ 	for file in ./*.txt; \
+-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DATADIR)/lang; done
++	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(DATADIR)/lang; done
+--- nagios-business-process-addon-0.9.6/libexec/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/libexec/Makefile.in	2012-01-08 10:26:10.358698524 +0200
+@@ -23,6 +23,6 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(LIBEXECDIR)
+-	$(INSTALL) -m 755 $(INSTALL_OPTS) check_bp_status.pl $(LIBEXECDIR)
++	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
++	$(INSTALL) -m 755 $(INSTALL_OPTS) check_bp_status.pl $(DESTDIR)$(LIBEXECDIR)
+ 
+--- nagios-business-process-addon-0.9.6/share/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/share/Makefile.in	2012-01-08 10:28:03.650148217 +0200
+@@ -22,7 +22,7 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DATADIR)
++	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(DATADIR)
+ 	for file in ./*.gif; \
+-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DATADIR); done
+-	
++	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(DATADIR); done
++
+--- nagios-business-process-addon-0.9.6/share/stylesheets/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/share/stylesheets/Makefile.in	2012-01-08 10:29:29.633778307 +0200
+@@ -23,7 +23,7 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DATADIR)/stylesheets
++	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(DATADIR)/stylesheets
+ 	for file in ./*.css; \
+-	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DATADIR)/stylesheets; done
+-	${TOUCH} $(DATADIR)/stylesheets/user.css
++	do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(DATADIR)/stylesheets; done
++	${TOUCH} $(DESTDIR)$(DATADIR)/stylesheets/user.css
+--- nagios-business-process-addon-0.9.6/var/nagios_bp.sessions/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/var/nagios_bp.sessions/Makefile.in	2012-01-08 10:30:25.656143469 +0200
+@@ -22,6 +22,6 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(LOGDIR)
+-	$(INSTALL) -m 1777 $(INSTALL_OPTS) -d $(LOGDIR)/nagios_bp.sessions
++	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
++	$(INSTALL) -m 1777 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/nagios_bp.sessions
+ 
+--- nagios-business-process-addon-0.9.6/var/cache/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/var/cache/Makefile.in	2012-01-08 10:31:00.297605961 +0200
+@@ -22,6 +22,6 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(LOGDIR)/cache
+-	$(INSTALL) -m 666 $(INSTALL_OPTS) ndo_backend_cache $(LOGDIR)/cache/
++	$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/cache
++	$(INSTALL) -m 666 $(INSTALL_OPTS) ndo_backend_cache $(DESTDIR)$(LOGDIR)/cache/
+ 
+--- nagios-business-process-addon-0.9.6/bin/Makefile.in~	2010-09-29 19:56:08.000000000 +0300
++++ nagios-business-process-addon-0.9.6/bin/Makefile.in	2012-01-08 10:31:37.249165978 +0200
+@@ -24,7 +24,7 @@
+ devclean: distclean
+ 
+ install:
+-	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(BINDIR)
+-	$(INSTALL) -m 755 $(INSTALL_OPTS) *.pl $(BINDIR)
+-	$(INSTALL) -m 755 $(INSTALL_OPTS) nagios_bp_session_timeout $(BINDIR)
++	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
++	$(INSTALL) -m 755 $(INSTALL_OPTS) *.pl $(DESTDIR)$(BINDIR)
++	$(INSTALL) -m 755 $(INSTALL_OPTS) nagios_bp_session_timeout $(DESTDIR)$(BINDIR)
+ 

================================================================
Index: packages/nagios-bp/nagios-bp.spec
diff -u /dev/null packages/nagios-bp/nagios-bp.spec:1.1
--- /dev/null	Sun Jan  8 15:41:16 2012
+++ packages/nagios-bp/nagios-bp.spec	Sun Jan  8 15:41:10 2012
@@ -0,0 +1,124 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.perl
+Summary:	Nagios Business Process AddOns
+Name:		nagios-bp
+Version:	0.9.6
+Release:	0.5
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://bp-addon.monitoringexchange.org/download/nagios-business-process-addon-%{version}.tar.gz
+# Source0-md5:	8b88a1729f6c6324e410a285e1a493fd
+Patch0:		DESTDIR.patch
+URL:		http://bp-addon.monitoringexchange.org/
+BuildRequires:	rpm-perlprov >= 4.1-13
+Requires:	nagios-cgi
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapp		nagiosbp
+%define		_sysconfdir	/etc/nagios/%{_webapp}
+%define		appdir		%{_datadir}/nagios/%{_webapp}
+%define		cgidir		%{_libdir}/nagios/cgi
+%define		htmldir		%{_prefix}/share/nagios
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%define		_noautoreq	perl(bsutils) perl(nagiosBp) perl(ndodb) perl(settings)
+%define		_noautoprov	%{_noautoreq}
+
+%description
+The AddOn Business Process View takes results of the single nagios
+checks and builds up aggregated states. How they are associated is
+described in one or more config files. There is the possibility to
+make "and" conjuctions, "or" conjunction and other...
+
+A business process (as defined by such a formula) can be used as a
+part of another business process. So You can build up a hirachical
+structure to describe the state of Your Application.
+
+The AddOn Business Impact Analysis allows You to simulate Outages. You
+can set manually the state of each single component to each state You
+like and look, how this would impact Your applications.
+
+%prep
+%setup -q -n nagios-business-process-addon-%{version}
+%patch0 -p1
+
+%build
+%configure \
+	--bindir=%{_sbindir} \
+	--sbindir=%{cgidir} \
+	--datadir=%{htmldir} \
+	--libexecdir=%{plugindir} \
+	--libdir=%{_libdir}/nagios/nbp \
+	--with-nagiosbp-user=%(id -un) \
+	--with-nagiosbp-group=%(id -gn) \
+	--with-cgiurl=/nagios/cgi-bin \
+	--with-htmurl=/nagios/bp \
+	--with-httpd-conf=/etc/webapps/nagios \
+	--with-apache-user=http \
+	--with-cron-d-dir=/etc/cron.d \
+	--with-nagetc=/etc/nagios \
+	--with-naghtmurl=/nagios \
+	--with-nagcgiurl=/nagios/cgi-bin \
+	--with-apache-authname=Nagios
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{appdir}}
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# nagios-cgi provides neccessary access and aliases
+%{__rm} $RPM_BUILD_ROOT/etc/webapps/nagios/%{_webapp}.conf
+# remove -sample suffix
+mv $RPM_BUILD_ROOT%{_sysconfdir}/nagios-bp.conf{-sample,}
+mv $RPM_BUILD_ROOT%{_sysconfdir}/ndo.cfg{-sample,}
+
+# remove .ext
+mv $RPM_BUILD_ROOT%{plugindir}/check_bp_status{.pl,}
+mv $RPM_BUILD_ROOT%{_sbindir}/bp_cfg2service_cfg{.pl,}
+mv $RPM_BUILD_ROOT%{_sbindir}/nagios-bp-check-ndo-connection{.pl,}
+mv $RPM_BUILD_ROOT%{_sbindir}/nagios-bp-consistency-check{.pl,}
+
+# in %doc
+%{__rm} $RPM_BUILD_ROOT%{_prefix}/{README,AUTHORS,CHANGES,INSTALL,LICENSE,UPDATE}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc API-DOC AUTHORS CHANGES INSTALL README UPDATE
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.cfg
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
+
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/nagiosbp
+%attr(755,root,root) %{cgidir}/nagios-bp.cgi
+%attr(755,root,root) %{cgidir}/whereUsed.cgi
+%attr(755,root,root) %{plugindir}/check_bp_status
+
+%attr(755,root,root) %{_sbindir}/bp_cfg2service_cfg
+%attr(755,root,root) %{_sbindir}/nagios-bp-check-ndo-connection
+%attr(755,root,root) %{_sbindir}/nagios-bp-consistency-check
+%attr(755,root,root) %{_sbindir}/nagios_bp_session_timeout
+
+%dir %{_libdir}/nagios/nbp
+%{_libdir}/nagios/nbp/*.pm
+
+%{htmldir}/info4.gif
+%dir %{htmldir}/lang
+%{htmldir}/stylesheets/nagios-bp.css
+%{htmldir}/stylesheets/user.css
+%{htmldir}/tree.gif
+%{htmldir}/lang/i18n_en.txt
+%lang(de) %{htmldir}/lang/i18n_de.txt
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/08 14:41:10  glen
+- new, not tested
================================================================


More information about the pld-cvs-commit mailing list