SPECS: naviagentcli.spec - install pldized initscript

glen glen at pld-linux.org
Thu Nov 15 16:39:02 CET 2007


Author: glen                         Date: Thu Nov 15 15:39:02 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- install pldized initscript

---- Files affected:
SPECS:
   naviagentcli.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/naviagentcli.spec
diff -u SPECS/naviagentcli.spec:1.2 SPECS/naviagentcli.spec:1.3
--- SPECS/naviagentcli.spec:1.2	Thu Nov 15 16:24:27 2007
+++ SPECS/naviagentcli.spec	Thu Nov 15 16:38:57 2007
@@ -2,13 +2,17 @@
 Summary:	Navisphere Agent and CLI
 Name:		naviagentcli
 Version:	6.26.0.2.24
-Release:	0.2
+Release:	0.3
 License:	EMC Corp
 Group:		Applications/System
 Source0:	NAVIAGNTCLI_LINUX_V26.zip
 # NoSource0-md5:	d94cec5596ee7aec1635de9140b27a89
 NoSource:	0
+Source1:	naviagent.init
 URL:		https://powerlink.emc.com/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(post,preun):	/sbin/chkconfig
+Requires:	rc-scripts
 ExclusiveArch:	%{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -24,12 +28,22 @@
 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,/etc/Navisphere}
 
 install opt/Navisphere/bin/{naviagent,navicli,naviseccli} $RPM_BUILD_ROOT%{_sbindir}
-install etc/init.d/naviagent $RPM_BUILD_ROOT/etc/rc.d/init.d
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/naviagent
 cp -a etc/Navisphere/SupportedFlareRevisions etc/Navisphere/agent.config $RPM_BUILD_ROOT%{_sysconfdir}/Navisphere
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+/sbin/chkconfig --add naviagent
+%service naviagent restart
+
+%preun
+if [ "$1" = "0" ]; then
+	%service -q naviagent stop
+	/sbin/chkconfig --del naviagent
+fi
+
 %files
 %defattr(644,root,root,755)
 %dir %{_sysconfdir}/Navisphere
@@ -46,6 +60,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007-11-15 15:38:57  glen
+- install pldized initscript
+
 Revision 1.2  2007-11-15 15:24:27  glen
 - info from their rpm
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/naviagentcli.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list