SPECS (AC-branch): gnokii.spec - Release 2 by lm at zork dot pl. -...

matkor matkor at pld-linux.org
Wed Sep 6 05:58:55 CEST 2006


Author: matkor                       Date: Wed Sep  6 03:58:55 2006 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- Release 2 by lm at zork dot pl.
- added init scritps and sysconfig for smsd with multiple phone support.
- added logrotate configuration for smsd

---- Files affected:
SPECS:
   gnokii.spec (1.85.2.1 -> 1.85.2.2) 

---- Diffs:

================================================================
Index: SPECS/gnokii.spec
diff -u SPECS/gnokii.spec:1.85.2.1 SPECS/gnokii.spec:1.85.2.2
--- SPECS/gnokii.spec:1.85.2.1	Fri Jul 28 16:08:25 2006
+++ SPECS/gnokii.spec	Wed Sep  6 05:58:48 2006
@@ -3,7 +3,7 @@
 Summary(pl):	Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych
 Name:		gnokii
 Version:	0.6.13
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPL v2+
 Group:		Applications/Communications
@@ -11,6 +11,8 @@
 # Source0-md5:	7f6e71aa4765c813d2129339c73e6520
 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/
@@ -169,8 +171,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
@@ -185,6 +188,9 @@
 
 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%{_defaultdocdir}/%{name}
@@ -202,6 +208,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}
@@ -251,6 +267,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)
@@ -270,6 +290,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.85.2.2  2006/09/06 03:58:48  matkor
+- Release 2 by lm at zork dot pl.
+- added init scritps and sysconfig for smsd with multiple phone support.
+- added logrotate configuration for smsd
+
 Revision 1.85.2.1  2006/07/28 14:08:25  tommat
 - version 0.6.13
 - synced with HEAD
================================================================

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



More information about the pld-cvs-commit mailing list