rpms/xpilot-ng/FC-4 xpilot-ng-server.init, 1.1, 1.2 xpilot-ng.spec, 1.3, 1.4
Michael Thomas (wart)
fedora-extras-commits at redhat.com
Wed Mar 1 23:24:05 UTC 2006
Author: wart
Update of /cvs/extras/rpms/xpilot-ng/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6255
Modified Files:
xpilot-ng-server.init xpilot-ng.spec
Log Message:
Create a xpilot user for running the game server daemon.
Index: xpilot-ng-server.init
===================================================================
RCS file: /cvs/extras/rpms/xpilot-ng/FC-4/xpilot-ng-server.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xpilot-ng-server.init 1 Mar 2006 04:51:17 -0000 1.1
+++ xpilot-ng-server.init 1 Mar 2006 23:24:05 -0000 1.2
@@ -36,7 +36,7 @@
return 1
fi
# This doesn't properly detect startup failures
- daemon --user games $exec $XPILOTD_OPTIONS >>/var/log/xpilot.log 2>&1 &
+ daemon --user xpilot $exec $XPILOTD_OPTIONS >>/var/log/xpilot.log 2>&1 &
retval=$?
if [ $retval -eq 0 ]; then
success
Index: xpilot-ng.spec
===================================================================
RCS file: /cvs/extras/rpms/xpilot-ng/FC-4/xpilot-ng.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- xpilot-ng.spec 1 Mar 2006 04:51:17 -0000 1.3
+++ xpilot-ng.spec 1 Mar 2006 23:24:05 -0000 1.4
@@ -1,6 +1,6 @@
Name: xpilot-ng
Version: 4.7.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Multiplayer space arcade game
Group: Amusements/Games
@@ -23,6 +23,9 @@
Requires(post): /sbin/service
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
+Requires(postun): /sbin/service
+Requires(pre): fedora-usermgmt
+Requires(postun): fedora-usermgmt
%description
A highly addictive, infinitely configurable multiplayer space
@@ -94,6 +97,11 @@
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
+%pre server
+/usr/sbin/fedora-groupadd 25 -r xpilot &>/dev/null || :
+/usr/sbin/fedora-useradd 25 -r -s /sbin/nologin -d /usr/share/xpilot-ng -M \
+ -c 'XPilot Server' -g xpilot xpilot >/dev/null || :
+
%post server
/sbin/chkconfig --add xpilot-ng-server
@@ -107,6 +115,8 @@
if [ "$1" -ge "1" ]; then
/sbin/service xpilot-ng-server restart >/dev/null 2>&1
fi
+test "$1" != 0 || /usr/sbin/fedora-userdel xpilot &>/dev/null || :
+test "$1" != 0 || /usr/sbin/fedora-groupdel xpilot &>/dev/null || :
%clean
rm -rf $RPM_BUILD_ROOT
@@ -152,6 +162,10 @@
#%ghost %{_datadir}/%{name}/mapconvert.pyo
%changelog
+* Wed Mar 1 2006 Wart <wart at kobold.org> 4.7.2-6
+- Create an xpilot user for running the server daemon
+- Fix typo in logrotate configuration file.
+
* Tue Feb 28 2006 Wart <wart at kobold.org> 4.7.2-5
- Added sysconfig and initrd files for starting xpilot server at boot time
- Add copies of customizable configuration files to /etc/xpilot
More information about the scm-commits
mailing list