SPECS: nagios-grapher.spec - add patch for directory layout

wolvverine wolvverine at pld-linux.org
Wed Jun 21 18:42:18 CEST 2006


Author: wolvverine                   Date: Wed Jun 21 16:42:18 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add patch for directory layout

---- Files affected:
SPECS:
   nagios-grapher.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/nagios-grapher.spec
diff -u SPECS/nagios-grapher.spec:1.13 SPECS/nagios-grapher.spec:1.14
--- SPECS/nagios-grapher.spec:1.13	Wed Jun 21 16:42:43 2006
+++ SPECS/nagios-grapher.spec	Wed Jun 21 18:42:12 2006
@@ -6,7 +6,7 @@
 Summary(pl):	Wtyczka dla Nagiosa integrująca z RRDTool
 Name:		nagios-grapher
 Version:	1.6
-Release:	0.3
+Release:	0.4
 License:	GPL
 Group:		Applications/System
 Source0:	NagiosGrapher-%{version}-rc1.tar.bz2
@@ -14,6 +14,7 @@
 Patch0:		%{name}-install.patch
 Patch1:		%{name}-install_init.patch
 Patch2:		%{name}-init.patch
+Patch3:		%{name}-dirlayout.patch
 URL:		http://tinyurl.com/ad67c
 BuildRequires:	rpmbuild(macros) >= 1.228
 Requires(post,preun):	/sbin/chkconfig
@@ -55,6 +56,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 
 %build
@@ -65,29 +67,17 @@
 	--with-nagios-group=nagios \
 	--with-ng-interface=network \
 	--with-ng-srvext-type=MULTIPLE \
-	--with-ng-loglevel=INT 
+	--with-ng-loglevel=INT \
+	--with-layout=PLD 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
-install -d $RPM_BUILD_ROOT/%{_var}/log
+install -d $RPM_BUILD_ROOT/%{_var}/log/nagios
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	NAGIOS_IMAGES=%{_datadir}/nagios/images/ \
-	NAGIOS_IMAGES_LOGOS=%{_datadir}/nagios/images/ \
-	NG_CONFIG=%{_sysconfdir}/nagios/ \
-	NG_CONFIG_SUB=%{_sysconfdir}/nagios/ \
-	NG_CONFIG_CGI=%{_sysconfdir}/nagios/ \
-	NAGIOS_FOLDER_CGI=%{_datadir}/nagios/cgi \
-	PERL_INC=%{perl_vendorlib} \
-	NAGIOS_CONTRIBUTION=%{_plugindir} \
-	NG_LOGFILE=%{_var}/log \
-	
-#NG_SRVEXT_DIR=/dir1 \
-#NG_RRD=/dir \
-#NAGIOS_BIN=/dir
-#NG_SRVEXT_DIR/dir
+	DESTDIR=$RPM_BUILD_ROOT
+
 rm $RPM_BUILD_ROOT/etc/rc.d/init.d/nagios_grapher
 install contrib/nagios_grapher.redhat	$RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 #ln -s %{_plugindir}/NagiosGrapher.pm $RPM_BUILD_ROOT%{_libdir}/nagios/cgi/NagiosGrapher.pm
@@ -110,14 +100,14 @@
 %doc README
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nagios/extra/*.ncfg
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nagios/standard/*.ncfg
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nagios/ngraph.d/*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nagios/*.ncfg
 %dir %{_plugindir}
 %attr(755,root,root) %{_plugindir}/*
 %attr(755,root,root) %{_datadir}/nagios/cgi/*
 %attr(755,root,root) %{perl_vendorlib}/*
 %{_datadir}/nagios/images/*
+%config(noreplace) %verify(not md5 mtime size) %{_var}/log/nagios/ngraph.log
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -125,6 +115,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2006/06/21 16:42:12  wolvverine
+- add patch for directory layout
+
 Revision 1.13  2006/06/21 14:42:43  wolvverine
 - add patches, add R
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/nagios-grapher.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list