SPECS: gnokii.spec - merge from AC-branch: - added init scritps ...

glen glen at pld-linux.org
Sun Sep 24 22:42:32 CEST 2006


Author: glen                         Date: Sun Sep 24 20:42:32 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- merge from AC-branch:
  - added init scritps and sysconfig for smsd with multiple phone support.
  - added logrotate configuration for smsd

---- Files affected:
SPECS:
   gnokii.spec (1.108 -> 1.109) 

---- Diffs:

================================================================
Index: SPECS/gnokii.spec
diff -u SPECS/gnokii.spec:1.108 SPECS/gnokii.spec:1.109
--- SPECS/gnokii.spec:1.108	Sun Sep 24 20:53:42 2006
+++ SPECS/gnokii.spec	Sun Sep 24 22:42:27 2006
@@ -11,6 +11,8 @@
 # Source0-md5:	89449d613c7a7e765a0d8da57ef1bb88
 Source1:	%{name}.desktop
 Source2:	%{name}.png
+Source3:	%{name}.smsd.config
+Source4:	%{name}.smsd.init
 Patch0:		%{name}-pld.patch
 Patch1:		%{name}-smsdlibs.patch
 URL:		http://www.gnokii.org/
@@ -172,8 +174,9 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/{x,}gnokii} \
-	$RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,logrotate.d} \
+	$RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/{x,}gnokii} \
+	$RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir},%{_var}/log/{smsd,archiv/smsd}}
 
 %{__make} install install-docs \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -188,13 +191,15 @@
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/smsd
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/smsd
+
 
 # do not complain about unpackaged files (we package them with %%doc anyway)
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 # move xgnokii manpage into proper place
-mv Docs/man/xgnokii.1x $RPM_BUILD_ROOT%{_mandir}/man1/
-rm -rf $RPM_BUILD_ROOT/usr/man
+mv -f $RPM_BUILD_ROOT{%{_prefix}/man,%{_mandir}}/man1/xgnokii.1x
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/smsd/*.{la,a}
 
@@ -206,6 +211,16 @@
 %post	-n libgnokii -p /sbin/ldconfig
 %postun -n libgnokii -p /sbin/ldconfig
 
+%post smsd
+/sbin/chkconfig --add smsd
+%service smsd restart "smsd daemon"
+
+%preun smsd
+if [ "$1" = "0" ]; then
+	%service smsd stop
+	/sbin/chkconfig --del smsd
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc Docs/{CREDITS,DataCalls-QuickStart,README*,Bugs,FAQ,*.txt,protocol}
@@ -230,7 +245,6 @@
 %{_datadir}/xgnokii/xpm
 %{_datadir}/xgnokii/help
 %{_desktopdir}/gnokii.desktop
-%{_desktopdir}/xgnokii.desktop
 %{_pixmapsdir}/*
 %{_mandir}/man1/xgnokii.1x*
 
@@ -256,6 +270,10 @@
 %attr(755,root,root) %{_sbindir}/smsd
 %attr(755,root,root) %{_libdir}/smsd/*.so
 %{_mandir}/man8/smsd.*
+%attr(754,root,root) /etc/rc.d/init.d/smsd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/smsd
+%attr(2750,root,logs) %dir /var/log/smsd
+%attr(2750,root,logs) %dir /var/log/archiv/smsd
 
 %files -n gnokii-smsd-mysql
 %defattr(644,root,root,755)
@@ -275,6 +293,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.109  2006/09/24 20:42:27  glen
+- merge from AC-branch:
+  - added init scritps and sysconfig for smsd with multiple phone support.
+  - added logrotate configuration for smsd
+
 Revision 1.108  2006/09/24 18:53:42  luzik
 - updated to 0.6.14
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gnokii.spec?r1=1.108&r2=1.109&f=u



More information about the pld-cvs-commit mailing list