update to 2.60b [release 2.60b-1mamba;Wed Jan 11 2023]
This commit is contained in:
parent
571f17a74a
commit
ea5c2585c4
@ -1,69 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# et runs enemy-territory server
|
|
||||||
#
|
|
||||||
# chkconfig: 2345 85 15
|
|
||||||
# description: Starts and stops the enemy-territory server
|
|
||||||
LOCKFILE=/var/lock/subsys/et
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
# Source networking configuration.
|
|
||||||
. /etc/sysconfig/network
|
|
||||||
|
|
||||||
# Source et server configuration.
|
|
||||||
. /etc/sysconfig/etserver
|
|
||||||
|
|
||||||
|
|
||||||
# Check that networking is up.
|
|
||||||
[ ${NETWORKING} = "no" ] && exit 0
|
|
||||||
|
|
||||||
# See how we were called.
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
# Start daemon
|
|
||||||
[ "VM_GAME" ] && ETDED_OPTS="+set vm_game $VM_GAME"
|
|
||||||
[ "NET_PORT" ] && ETDED_OPTS="$ETDED_OPTS +set net_port $NET_PORT"
|
|
||||||
[ "COM_HUNKMEGS" ] && ETDED_OPTS="$ETDED_OPTS +set com_hunkmegs $COM_HUNKMEGS"
|
|
||||||
[ "COM_ZONEMEGS" ] && ETDED_OPTS="$ETDED_OPTS +set com_zonemegs $COM_ZONEMEGS"
|
|
||||||
[ "GAME_MOD" ] && ETDED_OPTS="$ETDED_OPTS +set fs_game $GAME_MOD"
|
|
||||||
[ "SERVER_TYPE" ] && ETDED_OPTS="$ETDED_OPTS +set dedicated $SERVER_TYPE"
|
|
||||||
[ "FS_BASEPATH" ] && ETDED_OPTS="$ETDED_OPTS +set fs_basepath $FS_BASEPATH"
|
|
||||||
[ "SV_PUNKBUSTER" ] && ETDED_OPTS="$ETDED_OPTS +set sv_punkbuster $SV_PUNKBUSTER"
|
|
||||||
[ "SERVER_CONFIG" ] && ETDED_OPTS="$ETDED_OPTS +exec $SERVER_CONFIG"
|
|
||||||
gprintf "Starting enemy-territory server: "
|
|
||||||
daemon --user et $ETDED $ETDED_OPTS &
|
|
||||||
echo
|
|
||||||
touch $LOCKFILE
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
# Stop daemon
|
|
||||||
gprintf "Shutting down enemy-territory server: "
|
|
||||||
killproc etded
|
|
||||||
echo
|
|
||||||
rm -f $LOCKFILE
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
status etded
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
$0 stop
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
$0 stop
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
condrestart)
|
|
||||||
if [ -f $LOCKFILE ]; then
|
|
||||||
$0 stop
|
|
||||||
$0 start
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
gprintf "Usage: $0 {start|stop|restart|status}\n"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,23 +1,28 @@
|
|||||||
%define groupid 65033
|
%define groupid 65033
|
||||||
%define userid 65033
|
%define userid 65033
|
||||||
%define etpro_ver 3_2_6
|
%define etpro_ver 3_2_6
|
||||||
|
%define pkgver %(echo %version | tr -d .)
|
||||||
Name: enemy-territory
|
Name: enemy-territory
|
||||||
Version: 2.60
|
Version: 2.60b
|
||||||
Release: 4mamba
|
Release: 1mamba
|
||||||
Summary: First Person Shooter, fragg'em all
|
Summary: First Person Shooter, fragg'em all
|
||||||
Group: Applications/Games
|
Group: Applications/Games
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://www.castlewolfenstein.com
|
URL: https://www.splashdamage.com/games/wolfenstein-enemy-territory/
|
||||||
Source0: http://ftp.games.skynet.be/pub/wolfenstein/et-linux-%{version}.x86.run
|
Source0: https://cdn.splashdamage.com/downloads/games/wet/et%{pkgver}.x86_full.zip
|
||||||
Source1: %{name}-initscript
|
Source1: etded.service
|
||||||
Source2: %{name}-etded-sysconfig
|
Source2: %{name}-etded-sysconfig
|
||||||
Source3: http://bani.anime.net/etpro/etpro-%{etpro_ver}.zip
|
#Source3: http://bani.anime.net/etpro/etpro-%{etpro_ver}.zip
|
||||||
Source4: http://ftp.games.skynet.be/pub/wolfenstein/et-linux-%{version}-update.x86.run
|
#Source4: http://ftp.games.skynet.be/pub/wolfenstein/et-linux-%{version}-update.x86.run
|
||||||
Source5: http://websec.evenbalance.com/downloads/linux/pbsetup.run
|
Source5: http://websec.evenbalance.com/downloads/linux/pbsetup.run
|
||||||
|
Source6: et.sh
|
||||||
|
Source7: etded.sh
|
||||||
License: Distributable
|
License: Distributable
|
||||||
BuildRoot: %{_tmppath}/et-linux-%{version}-root
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -56,35 +61,38 @@ Requires(pre): %{name}-server = %{version}
|
|||||||
%description server-etpro
|
%description server-etpro
|
||||||
This package contains the etpro MOD for %{name}-server.
|
This package contains the etpro MOD for %{name}-server.
|
||||||
|
|
||||||
|
%ifarch x86_64
|
||||||
|
%global __requires_exclude ^(libX11.so.*|^libXext.so.*)$
|
||||||
|
%endif
|
||||||
|
|
||||||
|
#% debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T -a3
|
%setup -q -c -T -a0
|
||||||
sh %{SOURCE0} --target . --nox11 --nochown --noexec
|
#sh %{SOURCE0} --target . --nox11 --nochown --noexec
|
||||||
sh %{SOURCE4} --target . --nox11 --nochown --noexec
|
#sh %{SOURCE4} --target . --nox11 --nochown --noexec
|
||||||
#sh %{SOURCE5} --target . --nox11 --nochown --noexec
|
#sh %{SOURCE5} --target . --nox11 --nochown --noexec
|
||||||
|
|
||||||
|
chmod +x et260b.x86_keygen_V03.run
|
||||||
|
./et260b.x86_keygen_V03.run --noexec --nox11 --target $PWD
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/games/%{name}
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
||||||
install -d -m 755 %{buildroot}%{_bindir}
|
install -d -m 755 %{buildroot}%{_bindir}
|
||||||
chmod 755 pb/*.so
|
chmod 755 pb/*.so
|
||||||
cp -pr etmain %{buildroot}%{_datadir}/games/%{name}
|
cp -pr etmain %{buildroot}%{_datadir}/%{name}
|
||||||
cp -pr pb %{buildroot}%{_datadir}/games/%{name}
|
cp -pr pb %{buildroot}%{_datadir}/%{name}
|
||||||
install -m 755 bin/Linux/x86/et.x86 %{buildroot}%{_datadir}/games/%{name}/et
|
install -m 755 bin/Linux/x86/et.x86 %{buildroot}%{_datadir}/%{name}/et.x86
|
||||||
install -m 755 bin/Linux/x86/etded.x86 %{buildroot}%{_datadir}/games/%{name}/etded
|
install -m 755 bin/Linux/x86/etded.x86 %{buildroot}%{_datadir}/%{name}/etded.x86
|
||||||
|
|
||||||
# wrapper
|
# wrapper
|
||||||
cat > %{buildroot}%{_bindir}/et <<EOF
|
install -D -m0755 %{SOURCE6} %{buildroot}%{_bindir}/et
|
||||||
#!/bin/sh
|
install -D -m0755 %{SOURCE7} %{buildroot}%{_bindir}/etded
|
||||||
# Wrap Enemy Territory binary
|
|
||||||
cd %{_datadir}/games/%{name}
|
chmod 755 %{buildroot}%{_datadir}/%{name}/pb/pbweb.x86
|
||||||
./et $*
|
|
||||||
exit $?
|
|
||||||
EOF
|
|
||||||
chmod 755 %{buildroot}%{_datadir}/games/%{name}/et
|
|
||||||
chmod 755 %{buildroot}%{_datadir}/games/%{name}/pb/pbweb.x86
|
|
||||||
chmod 755 %{buildroot}%{_bindir}/et
|
|
||||||
|
|
||||||
# icons
|
# icons
|
||||||
convert -geometry 48x48 ET.xpm %{name}-48.png
|
convert -geometry 48x48 ET.xpm %{name}-48.png
|
||||||
@ -107,29 +115,29 @@ Type=Application
|
|||||||
Categories=Application;Game
|
Categories=Application;Game
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# data dir needed for server
|
## data dir needed for server
|
||||||
install -d -m 755 %{buildroot}%{_localstatedir}/games/%{name}
|
#install -d -m 755 %{buildroot}%{_localstatedir}/%{name}
|
||||||
|
|
||||||
# service script
|
# service script
|
||||||
install -D -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/et
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/etded.service
|
||||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/etserver
|
#install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/etserver
|
||||||
|
|
||||||
# install etpro MOD
|
## install etpro MOD
|
||||||
cp -pr etpro %{buildroot}%{_datadir}/games/%{name}
|
#cp -pr etpro %{buildroot}%{_datadir}/games/%{name}
|
||||||
chmod +x %{buildroot}%{_datadir}/games/%{name}/etpro/qagame.mp.i386.so
|
#chmod +x %{buildroot}%{_datadir}/games/%{name}/etpro/qagame.mp.i386.so
|
||||||
|
|
||||||
install -d %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
#install -d %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/*.{cfg,dat} \
|
#cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/*.{cfg,dat} \
|
||||||
%{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/maps \
|
#cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/maps \
|
||||||
%{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/etpromapscripts \
|
#cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/etpromapscripts \
|
||||||
%{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/configs \
|
#cp -pr %{buildroot}%{_datadir}/games/%{name}/etpro/configs \
|
||||||
%{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
#chown -R %{userid}.%{groupid} %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
##chown -R %{userid}.%{groupid} %{buildroot}%{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
|
|
||||||
ln -sf %{_localstatedir}/games/%{name}/.etwolf %{buildroot}%{_datadir}/games/%{name}/.etwolf
|
#ln -sf %{_localstatedir}/games/%{name}/.etwolf %{buildroot}%{_datadir}/games/%{name}/.etwolf
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -138,29 +146,28 @@ ln -sf %{_localstatedir}/games/%{name}/.etwolf %{buildroot}%{_datadir}/games/%{n
|
|||||||
%pre server
|
%pre server
|
||||||
groupadd et -g %{groupid} 2>/dev/null || true
|
groupadd et -g %{groupid} 2>/dev/null || true
|
||||||
useradd -u %{userid} -c 'Enemy Territory Daemon' \
|
useradd -u %{userid} -c 'Enemy Territory Daemon' \
|
||||||
-d %{_localstatedir}/games/%{name} -g et \
|
-d %{_localstatedir}/%{name} -g et \
|
||||||
-s /bin/false et 2>/dev/null || true
|
-s /bin/false et 2>/dev/null || true
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
if [ $1 -eq 1 ]; then
|
%systemd_post etded
|
||||||
# new install
|
#if [ $1 -eq 1 ]; then
|
||||||
install -d %{_localstatedir}/games/%{name}/.etwolf/etmain
|
## new install
|
||||||
cp -pr %{_datadir}/games/%{name}/etmain/*.{cfg,dat} \
|
# install -d %{_localstatedir}/%{name}/.etwolf/etmain
|
||||||
%{_localstatedir}/games/%{name}/.etwolf/etmain
|
# cp -pr %{_datadir}/%{name}/etmain/*.{cfg,dat} \
|
||||||
chown -R %{userid}.%{groupid} %{_localstatedir}/games/%{name}/.etwolf/
|
# %{_localstatedir}/%{name}/.etwolf/etmain
|
||||||
# (cd %{_datadir}/games/%{name} &&
|
# chown -R %{userid}.%{groupid} %{_localstatedir}/%{name}/.etwolf/
|
||||||
# ln -s %{_localstatedir}/games/%{name}/.etwolf .etwolf)
|
## (cd %{_datadir}/games/%{name} &&
|
||||||
fi
|
## ln -s %{_localstatedir}/games/%{name}/.etwolf .etwolf)
|
||||||
exit 0
|
#fi
|
||||||
|
:
|
||||||
|
|
||||||
%preun server
|
%preun server
|
||||||
# erase
|
%systemd_preun etded
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
%{_initrddir}/et stop 2>/dev/null || true
|
|
||||||
chkconfig --del et
|
|
||||||
userdel et || true
|
userdel et || true
|
||||||
fi
|
fi
|
||||||
exit 0
|
:
|
||||||
|
|
||||||
%postun server
|
%postun server
|
||||||
# update
|
# update
|
||||||
@ -169,59 +176,65 @@ if [ $1 -eq 1 ]; then
|
|||||||
useradd -u %{userid} -c 'Enemy Territory Daemon' \
|
useradd -u %{userid} -c 'Enemy Territory Daemon' \
|
||||||
-d %{_localstatedir}/games/%{name} -g et \
|
-d %{_localstatedir}/games/%{name} -g et \
|
||||||
-s /bin/false et 2>/dev/null || true
|
-s /bin/false et 2>/dev/null || true
|
||||||
chkconfig et
|
|
||||||
[ $? -eq 0 ] && %{_initrddir}/et restart
|
|
||||||
fi
|
fi
|
||||||
exit 0
|
%systemd_postun_with_restart etded
|
||||||
|
:
|
||||||
|
|
||||||
%post server-etpro
|
%post server-etpro
|
||||||
if [ $1 -eq 1 ]; then
|
#if [ $1 -eq 1 ]; then
|
||||||
# new install
|
## new install
|
||||||
install -d %{_localstatedir}/games/%{name}/.etwolf/etpro
|
# install -d %{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{_datadir}/games/%{name}/etpro/*.{cfg,dat} \
|
# cp -pr %{_datadir}/games/%{name}/etpro/*.{cfg,dat} \
|
||||||
%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{_datadir}/games/%{name}/etpro/maps \
|
# cp -pr %{_datadir}/games/%{name}/etpro/maps \
|
||||||
%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{_datadir}/games/%{name}/etpro/etpromapscripts \
|
# cp -pr %{_datadir}/games/%{name}/etpro/etpromapscripts \
|
||||||
%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
cp -pr %{_datadir}/games/%{name}/etpro/configs \
|
# cp -pr %{_datadir}/games/%{name}/etpro/configs \
|
||||||
%{_localstatedir}/games/%{name}/.etwolf/etpro
|
# %{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
chown -R %{userid}.%{groupid} %{_localstatedir}/games/%{name}/.etwolf/etpro
|
# chown -R %{userid}.%{groupid} %{_localstatedir}/games/%{name}/.etwolf/etpro
|
||||||
fi
|
#fi
|
||||||
exit 0
|
#exit 0
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_datadir}/games/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
%{_datadir}/games/%{name}/pb
|
%{_datadir}/%{name}/pb
|
||||||
%{_datadir}/games/%{name}/etmain
|
%{_datadir}/%{name}/etmain
|
||||||
|
#%{_datadir}/%{name}/.etwolf
|
||||||
%doc CHANGES README Docs/
|
%doc CHANGES README Docs/
|
||||||
|
|
||||||
%files client
|
%files client
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/et
|
%{_bindir}/et
|
||||||
%{_datadir}/games/%{name}/et
|
%{_datadir}/%{name}/et.x86
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/pixmaps/%{name}.png
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
|
|
||||||
%files server
|
%files server
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/etserver
|
%{_bindir}/etded
|
||||||
%attr(755,root,root) %{_initrddir}/et
|
%{_unitdir}/etded.service
|
||||||
%{_datadir}/games/%{name}/etded
|
%{_datadir}/%{name}/etded.x86
|
||||||
|
|
||||||
%files etpro
|
#%files etpro
|
||||||
%defattr(-,root,root)
|
#%defattr(-,root,root)
|
||||||
%{_datadir}/games/%{name}/etpro/*
|
#%{_datadir}/games/%{name}/etpro/*
|
||||||
|
|
||||||
%files server-etpro
|
#%files server-etpro
|
||||||
%defattr(-,root,root)
|
#%defattr(-,root,root)
|
||||||
%{_datadir}/games/%{name}/.etwolf
|
#%{_datadir}/games/%{name}/.etwolf
|
||||||
%attr(-,et,et) %{_localstatedir}/games/%{name}/.etwolf
|
#%attr(-,et,et) %{_localstatedir}/games/%{name}/.etwolf
|
||||||
#%attr(-,et,et) %{_localstatedir}/games/%{name}/.etwolf/etpro/*
|
##%attr(-,et,et) %{_localstatedir}/games/%{name}/.etwolf/etpro/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.60b-1mamba
|
||||||
|
- update to 2.60b
|
||||||
|
|
||||||
|
* Wed Jan 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.60-5mamba
|
||||||
|
- rebuilt to fix requirements for 32 bit libs
|
||||||
|
|
||||||
* Tue Feb 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.60-4mamba
|
* Tue Feb 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.60-4mamba
|
||||||
- enemy-territory-server-etpro: added Requires(pre) for enemy-territory-server
|
- enemy-territory-server-etpro: added Requires(pre) for enemy-territory-server
|
||||||
|
|
||||||
|
8
etded.service
Normal file
8
etded.service
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Enemy Territory dedicated server
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/etded
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user