SPECS: bzflag.spec - ugly init script

arekm arekm at pld-linux.org
Fri Jan 16 10:57:51 CET 2009


Author: arekm                        Date: Fri Jan 16 09:57:51 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- ugly init script

---- Files affected:
SPECS:
   bzflag.spec (1.76 -> 1.77) 

---- Diffs:

================================================================
Index: SPECS/bzflag.spec
diff -u SPECS/bzflag.spec:1.76 SPECS/bzflag.spec:1.77
--- SPECS/bzflag.spec:1.76	Sun Aug 17 22:07:57 2008
+++ SPECS/bzflag.spec	Fri Jan 16 10:57:45 2009
@@ -5,6 +5,7 @@
 #    (to be compiled, moved to doc, or something else)
 #  - bzfsAPI.h and other is marked ad noinst_HEADER, maybe in future it will
 #    be installed too, to allow compiling plugins externall
+#  - finish init script (currently runs server from root)
 #
 Summary:	Multiplayer 3D tank battle game
 Summary(pl.UTF-8):	Gra 3D dla wielu graczy - czołgi
@@ -17,6 +18,8 @@
 # Source0-md5:	1228754cac3eaacd4badba5319f47b41
 Source1:	%{name}.desktop
 Source2:	%{name}.png
+Source3:	%{name}.init
+Source4:	%{name}.sysconfig
 Patch0:		%{name}-etc_dir.patch
 Patch1:		%{name}-nolibs.patch
 URL:		http://BZFlag.org/
@@ -87,13 +90,16 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/bzflag} \
-	$RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man6}
+	$RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_mandir}/man6} \
+	$RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/bzflag
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/syscofngi/bzflag
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -136,6 +142,8 @@
 %{_mandir}/man5/bzw.5*
 %{_mandir}/man6/bzadmin.6*
 %{_mandir}/man6/bzf[!l]*
+%attr(754,root,root) /etc/rc.d/init.d/bzflag
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bzflag
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -143,6 +151,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.77  2009/01/16 09:57:45  arekm
+- ugly init script
+
 Revision 1.76  2008/08/17 20:07:57  qboosh
 - BR: libtool
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/bzflag.spec?r1=1.76&r2=1.77&f=u



More information about the pld-cvs-commit mailing list