packages: npreal2/npreal2.spec - use npreal2 as service name or init script...

hawk hawk at pld-linux.org
Thu Oct 28 19:42:48 CEST 2010


Author: hawk                         Date: Thu Oct 28 17:42:48 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use npreal2 as service name or init script will kill itself

---- Files affected:
packages/npreal2:
   npreal2.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/npreal2/npreal2.spec
diff -u packages/npreal2/npreal2.spec:1.5 packages/npreal2/npreal2.spec:1.6
--- packages/npreal2/npreal2.spec:1.5	Mon Aug 30 13:33:25 2010
+++ packages/npreal2/npreal2.spec	Thu Oct 28 19:42:43 2010
@@ -17,7 +17,7 @@
 %define		_enable_debug_packages	0
 %endif
 #
-%define		rel	0.1
+%define		rel	0.2
 %define		pname	npreal2
 Summary:	Moxa NPort Linux Real TTY driver
 Summary(pl.UTF-8):	Sterownik Real TTY dla Linuksa do urządzeń Moxa NPort
@@ -97,7 +97,7 @@
 install mxrmnod		$RPM_BUILD_ROOT%{_sharedstatedir}/%{pname}/driver
 install npreal2d.cf	$RPM_BUILD_ROOT%{_sharedstatedir}/%{pname}
 install npreal2d	$RPM_BUILD_ROOT%{_sbindir}/npreal2d
-install %{SOURCE1}	$RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/npreal2d
+install %{SOURCE1}	$RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/npreal2
 %endif
 
 %if %{with kernel}
@@ -116,12 +116,12 @@
 %depmod %{_kernel_ver}
 
 %post -n npreal2%{_alt_kernel}
-/sbin/chkconfig --add npreal2d
+/sbin/chkconfig --add npreal2
 
 %preun -n npreal2%{_alt_kernel}
 if [ "$1" = "0" ]; then
-	%service -q npreal2d stop
-	/sbin/chkconfig --del npreal2d
+	%service -q npreal2 stop
+	/sbin/chkconfig --del npreal2
 fi
 
 
@@ -143,7 +143,7 @@
 %attr(755,root,root) %{_sbindir}/npreal2d
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/%{pname}/npreal2d.cf
 
-%attr(754,root,root) /etc/rc.d/init.d/npreal2d
+%attr(754,root,root) /etc/rc.d/init.d/npreal2
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -152,6 +152,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2010/10/28 17:42:43  hawk
+- use npreal2 as service name or init script will kill itself
+
 Revision 1.5  2010/08/30 11:33:25  hawk
 - updated to 1.16.15
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/npreal2/npreal2.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list