Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
c3caaeec43 | |||
919b1f7ff5 | |||
1290eb1536 | |||
1e76e92fca |
@ -29,3 +29,6 @@ MutNames['ZedCustom.ZedCustomMut']='ZedVarients'
|
|||||||
IniPermissions=664
|
IniPermissions=664
|
||||||
IniGroup=steam
|
IniGroup=steam
|
||||||
|
|
||||||
|
# if true all steamclient.so will be replaced by symlinks to:
|
||||||
|
# /usr/games/steamcmd/linux64/steamclient.so
|
||||||
|
FixSteamclientLib=True
|
||||||
|
@ -243,12 +243,16 @@ function create_cache ()
|
|||||||
|
|
||||||
function fix_steamclient_so ()
|
function fix_steamclient_so ()
|
||||||
{
|
{
|
||||||
rm -f "$InstallDir/linux64/steamclient.so"
|
include /etc/kf2-srv/kf2-srv.conf
|
||||||
rm -f "$InstallDir/steamclient.so"
|
|
||||||
rm -f "$InstallDir/Binaries/Win64/lib64/steamclient.so"
|
if echo "$FixSteamclientLib" | grep -qiF 'true'; then
|
||||||
ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/linux64/steamclient.so"
|
rm -f "$InstallDir/linux64/steamclient.so"
|
||||||
ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/steamclient.so"
|
rm -f "$InstallDir/steamclient.so"
|
||||||
ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/Binaries/Win64/lib64/steamclient.so"
|
rm -f "$InstallDir/Binaries/Win64/lib64/steamclient.so"
|
||||||
|
ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/linux64/steamclient.so"
|
||||||
|
ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/steamclient.so"
|
||||||
|
ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/Binaries/Win64/lib64/steamclient.so"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function make_default_instance () # $1: Dir
|
function make_default_instance () # $1: Dir
|
||||||
@ -282,6 +286,8 @@ function apply_patch ()
|
|||||||
{
|
{
|
||||||
if [[ -x "$PatchDir/kf2-ranked-patch" ]]; then
|
if [[ -x "$PatchDir/kf2-ranked-patch" ]]; then
|
||||||
"$PatchDir/kf2-ranked-patch" "$AppBin" "$AppBinOrig"
|
"$PatchDir/kf2-ranked-patch" "$AppBin" "$AppBinOrig"
|
||||||
|
chmod +x "$AppBin" "$AppBinOrig"
|
||||||
|
chown "$SteamUser:$SteamUser" "$AppBin" "$AppBinOrig"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ function service_name () # $*: Instance[s]
|
|||||||
local Services=""
|
local Services=""
|
||||||
for Instance in $*
|
for Instance in $*
|
||||||
do
|
do
|
||||||
if multini -g "$InstanceConfigDir/$Instance" '' "UseOrigApp" 2> /dev/null | grep -Piqo '^True$' && test -x "$AppBinOrig"; then
|
if multini -g "$InstanceConfigDir/$Instance/instance.conf" '' "UseOrigApp" 2> /dev/null | grep -Piqo '^True$' && test -x "$AppBinOrig"; then
|
||||||
Services+=" kf2-srv${KF2POSTFIX}-orig@$Instance.service"
|
Services+=" kf2-srv${KF2POSTFIX}-orig@$Instance.service"
|
||||||
else
|
else
|
||||||
Services+=" kf2-srv${KF2POSTFIX}@$Instance.service"
|
Services+=" kf2-srv${KF2POSTFIX}@$Instance.service"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
%global steamuser steam
|
%global steamuser steam
|
||||||
|
|
||||||
Name: kf2-srv
|
Name: kf2-srv
|
||||||
Version: 0.17.0
|
Version: 0.18.0
|
||||||
Release: 1%{dist}
|
Release: 1%{dist}
|
||||||
Summary: Killing Floor 2 server
|
Summary: Killing Floor 2 server
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
@ -101,8 +101,14 @@ if [[ $1 == 1 ]]; then # Install
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 22 2021 GenZmeY <genzmey@gmail.com> - 0.18.0-1
|
||||||
|
- add FixSteamclientLib setting to config.
|
||||||
|
|
||||||
|
* Sat Feb 27 2021 GenZmeY <genzmey@gmail.com> - 0.17.1-1
|
||||||
|
- fix the start of the original app.
|
||||||
|
|
||||||
* Sun Feb 21 2021 GenZmeY <genzmey@gmail.com> - 0.17.0-1
|
* Sun Feb 21 2021 GenZmeY <genzmey@gmail.com> - 0.17.0-1
|
||||||
- Binary patching support.
|
- binary patching support.
|
||||||
|
|
||||||
* Mon Sep 21 2020 GenZmeY <genzmey@gmail.com> - 0.16.0-1
|
* Mon Sep 21 2020 GenZmeY <genzmey@gmail.com> - 0.16.0-1
|
||||||
- remove force-attr daemon;
|
- remove force-attr daemon;
|
||||||
|
Reference in New Issue
Block a user