Author: koorek                       Date: Tue Mar  8 00:00:18 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- missing sources fixed

---- Files affected:
SPECS:
   quakeforge.spec (1.78 -> 1.79) 

---- Diffs:

================================================================
Index: SPECS/quakeforge.spec
diff -u SPECS/quakeforge.spec:1.78 SPECS/quakeforge.spec:1.79
--- SPECS/quakeforge.spec:1.78  Mon Mar  7 23:20:13 2005
+++ SPECS/quakeforge.spec       Tue Mar  8 01:00:13 2005
@@ -21,6 +21,9 @@
 # Source0-md5: b750b491ce24135f1a4a1360029de3a2
 Source1:       %{name}.conf
 Source2:       %{name}.png
+Source3:       nq-serverd
+Source4:       qw-serverd
+Source5:       qwprogs.dat
 #Patch0:               %{name}-alsa.patch
 Patch1:                %{name}-svga-noasm.patch
 #Patch2:               %{name}-libdir.patch
@@ -401,6 +404,8 @@
 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/qw-server.cfg
 
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/
+install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/qw
 
 qfver="glx sdl sdl32 sgl x11"
 
@@ -445,6 +450,38 @@
 %post  libs-sw -p /sbin/ldconfig
 %postun libs-sw -p /sbin/ldconfig
 
+%post servers
+/sbin/chkconfig --add qw-serverd
+if [ -f /var/lock/subsys/qw-serverd ]; then
+       /etc/rc.d/init.d/qw-serverd restart 1>&2
+else
+       %banner %{name}-servers -e << EOF
+Run \"/etc/rc.d/init.d/qw-serverd start\" to start QuakeWorld Server.
+EOF
+fi
+/sbin/chkconfig --add nq-serverd
+if [ -f /var/lock/subsys/nq-serverd ]; then
+       /etc/rc.d/init.d/nq-serverd restart 1>&2
+else
+       %banner %{name}-servers -e << EOF
+Run \"/etc/rc.d/init.d/nq-serverd start\" to start NQuake Server.
+EOF
+fi
+
+%preun servers
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/qw-serverd ]; then
+               /etc/rc.d/init.d/qw-serverd stop 1>&2
+       fi
+       /sbin/chkconfig --del qw-serverd
+fi
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/nq-serverd ]; then
+               /etc/rc.d/init.d/nq-serverd stop 1>&2
+       fi
+       /sbin/chkconfig --del nq-serverd
+fi
+
 %files common
 %defattr(644,root,root,755)
 %doc NEWS TODO ChangeLog doc/[!Mm]*
@@ -534,6 +571,8 @@
 %attr(755,root,root) %{_bindir}/qw-server
 %attr(755,root,root) %{_bindir}/nq-server
 %attr(755,root,root) %{_libdir}/%{name}/console_server.so
+%attr(754,root,root) /etc/rc.d/init.d/*-[!m]*
+%{_datadir}/%{name}/qw/*
 
 %files utils
 %defattr(644,root,root,755)
@@ -641,6 +680,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.79  2005/03/08 00:00:13  koorek
+- missing sources fixed
+
 Revision 1.78  2005/03/07 22:20:13  qboosh
 - reverted doc breakage
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/quakeforge.spec?r1=1.78&r2=1.79&f=u


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

Reply via email to