Author: megabajt                     Date: Wed Mar 12 21:43:38 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added logrotate file
- proper permissions
- release 2

---- Files affected:
SPECS:
   ggz-server.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/ggz-server.spec
diff -u SPECS/ggz-server.spec:1.10 SPECS/ggz-server.spec:1.11
--- SPECS/ggz-server.spec:1.10  Wed Mar 12 22:09:21 2008
+++ SPECS/ggz-server.spec       Wed Mar 12 22:43:33 2008
@@ -1,17 +1,19 @@
 # $Revision$, $Date$
 # TODO:
 # - remove data from /var/lib/ggzd after removal of ggz-server package
+#
 Summary:       Main GGZ server
 Summary(pl.UTF-8):     Główny serwer GGZ
 Name:          ggz-server
 Version:       0.0.14
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Applications
 Source0:       
http://ftp.belnet.be/packages/ggzgamingzone/ggz/0.0.14/%{name}-%{version}.tar.gz
 # Source0-md5: 7e30eedefb69834d9f76fdf7fed646ea
 Source1:       %{name}.init
 Source2:       %{name}.conf
+Source3:       %{name}.logrotate
 Patch0:                %{name}-db4.patch
 URL:           http://www.ggzgamingzone.org/
 BuildRequires: autoconf >= 2.50
@@ -27,6 +29,8 @@
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _localstatedir  /var/lib
+
 %description
 This package contains the main GGZ server, some administrative
 utilities and lots of game servers.
@@ -91,13 +95,14 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd},%{_var}/{lib/ggzd,log}}
+install -d 
$RPM_BUILD_ROOT{/etc/{rc.d/init.d,ggzd,logrotate.d},%{_var}/{lib/ggzd,log}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ggzd
 sed -e 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > 
$RPM_BUILD_ROOT%{_sysconfdir}/ggzd/ggzd.conf
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 :> $RPM_BUILD_ROOT%{_var}/log/ggz-server.log
 
@@ -197,9 +202,10 @@
 %{_sysconfdir}/ggzd/rooms/tictactoe.room
 %{_sysconfdir}/ggzd/rooms/tuxman.room
 %{_sysconfdir}/ggzd/rooms/widelands.room
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/ggzd/ggzd.conf
+%attr(640,root,games) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/ggzd/ggzd.conf
 %{_sysconfdir}/ggzd/ggzd.motd
 %attr(754,root,root) /etc/rc.d/init.d/ggzd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
/etc/logrotate.d/ggz-server
 %dir %{_datadir}/ggz/ggzd
 %{_datadir}/ggz/ggzd/ggzcards
 %{_datadir}/ggz/ggzd/hastings1066
@@ -207,8 +213,8 @@
 %{_datadir}/ggz/ggzd/tuxmanserv
 %{_mandir}/man6/ggzd.6*
 %{_mandir}/man6/ggzduedit.6*
-%dir %{_var}/lib/ggzd
-%attr(640,root,root) %ghost %{_var}/log/ggz-server.log
+%attr(770,root,games) %{_localstatedir}/ggzd
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) 
%{_var}/log/ggz-server.log
 
 %files libs
 %defattr(644,root,root,755)
@@ -240,6 +246,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2008-03-12 21:43:33  megabajt
+- added logrotate file
+- proper permissions
+- release 2
+
 Revision 1.10  2008-03-12 21:09:21  patrys
 - rel 1
 - uses games user (change in init script if needed)
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ggz-server.spec?r1=1.10&r2=1.11&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to