Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
cf7cbbfc85 | |||
bfe101b063 | |||
21213ff1f1 |
837
SOURCES/kf2-srv
837
SOURCES/kf2-srv
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
|||||||
BranchName="preview"
|
#BranchName="preview"
|
||||||
|
@ -8,7 +8,7 @@ Type=simple
|
|||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
StandardError=null
|
StandardError=null
|
||||||
EnvironmentFile=/etc/kf2-srv/instances/%i/main.conf
|
EnvironmentFile=/etc/kf2-srv/instances/%i/main.conf
|
||||||
ExecStart=/usr/games/kf2-srv/Binaries/Win64/KFGameSteamServer.bin.x86_64 $Map configsubdir=instances/%i $Arg1 $Arg2 $Arg3
|
ExecStart=/usr/games/kf2-srv/Binaries/Win64/KFGameSteamServer.bin.x86_64 $Args configsubdir=instances/%i $PortW $PortQ $PortG
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
|
@ -1,9 +1,29 @@
|
|||||||
LANG=en_US.UTF-8
|
LANG=en_US.UTF-8
|
||||||
|
|
||||||
Map=kf-bioticslab
|
PortW="-webadminport=8080"
|
||||||
|
PortQ="-queryport=27015"
|
||||||
|
PortG="-port=7777"
|
||||||
|
|
||||||
Arg1="-webadminport=8080"
|
# First arg: map name
|
||||||
Arg2="-queryport=27015"
|
#
|
||||||
Arg3="-port=7777"
|
# Difficulty:
|
||||||
|
# Normal: 0
|
||||||
|
# Hard: 1
|
||||||
|
# Suicide: 2
|
||||||
|
# Hell: 3
|
||||||
|
#
|
||||||
|
# Game:
|
||||||
|
# Survival: KFGameContent.KFGameInfo_Survival
|
||||||
|
# WeeklyOutbreak: KFGameContent.KFGameInfo_WeeklySurvival
|
||||||
|
# Endless: KFGameContent.KFGameInfo_Endless
|
||||||
|
# Objective: KFGameContent.KFGameInfo_Objective
|
||||||
|
# Versus: KFGameContent.KFGameInfo_VersusSurvival
|
||||||
|
#
|
||||||
|
# GameLength:
|
||||||
|
# 4 waves: 0
|
||||||
|
# 7 waves: 1
|
||||||
|
# 10 waves: 2
|
||||||
|
Args=kf-bioticslab?Difficulty=0?Game=KFGameContent.KFGameInfo_Survival?GameLength=2
|
||||||
|
|
||||||
|
# Notes for yourself
|
||||||
Description="Default description"
|
Description="Default description"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
%global steamuser steam
|
%global steamuser steam
|
||||||
|
|
||||||
Name: kf2-srv
|
Name: kf2-srv
|
||||||
Version: 0.3.0
|
Version: 0.6.0
|
||||||
Release: 1%{dist}
|
Release: 1%{dist}
|
||||||
Summary: Killing Floor 2 server
|
Summary: Killing Floor 2 server
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
@ -18,6 +18,8 @@ Source7: main.conf.template
|
|||||||
|
|
||||||
Requires: systemd >= 219
|
Requires: systemd >= 219
|
||||||
Requires: steamcmd
|
Requires: steamcmd
|
||||||
|
Requires: libxml2
|
||||||
|
Requires: dos2unix
|
||||||
|
|
||||||
Provides: %{name}
|
Provides: %{name}
|
||||||
|
|
||||||
@ -34,7 +36,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
install -m 755 -d %{buildroot}/%{_bindir}
|
install -m 755 -d %{buildroot}/%{_bindir}
|
||||||
install -m 755 -d %{buildroot}/%{_prefix}/lib/systemd/system
|
install -m 755 -d %{buildroot}/%{_prefix}/lib/systemd/system
|
||||||
install -m 755 -d %{buildroot}/%{_prefix}/lib/firewalld/services
|
install -m 755 -d %{buildroot}/%{_prefix}/lib/firewalld/services
|
||||||
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}
|
install -m 755 -d %{buildroot}/%{_sysconfdir}/%{name}/instances
|
||||||
install -m 644 -d %{buildroot}/%{_prefix}/games/%{name}
|
install -m 644 -d %{buildroot}/%{_prefix}/games/%{name}
|
||||||
|
|
||||||
install -m 755 %{SOURCE1} %{buildroot}/%{_bindir}
|
install -m 755 %{SOURCE1} %{buildroot}/%{_bindir}
|
||||||
@ -52,31 +54,40 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%attr(775,root,%{steamuser}) %dir %{_prefix}/games/%{name}
|
%attr(775,root,%{steamuser}) %dir %{_prefix}/games/%{name}
|
||||||
%attr(755,root,root) %dir %{_sysconfdir}/%{name}
|
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}
|
||||||
|
%attr(775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances
|
||||||
%attr(644,root,root) %{_sysconfdir}/%{name}/main.conf.template
|
%attr(644,root,root) %{_sysconfdir}/%{name}/main.conf.template
|
||||||
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
||||||
%attr(644,root,root) %config(noreplace) %{_prefix}/lib/firewalld/services/%{name}.xml
|
%attr(644,root,root) %config(noreplace) %{_prefix}/lib/firewalld/services/%{name}.xml
|
||||||
%attr(755,root,root) %{_bindir}/%{name}
|
%attr(755,root,root) %{_bindir}/%{name}
|
||||||
%attr(644,root,root) %{_prefix}/lib/systemd/system/*
|
%attr(644,root,root) %{_prefix}/lib/systemd/system/*
|
||||||
|
|
||||||
%post
|
|
||||||
#/bin/env bash
|
|
||||||
#if [[ $1 -eq 1 ]]; then # First installation
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
#exit 0
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
#/bin/env bash
|
|
||||||
if [[ $1 -eq 0 ]] ; then # Uninstall
|
if [[ $1 -eq 0 ]] ; then # Uninstall
|
||||||
%{_bindir}/%{name} --stop
|
%{_bindir}/%{name} --stop
|
||||||
%{_bindir}/%{name} --disable
|
%{_bindir}/%{name} --disable
|
||||||
yes | %{_bindir}/%{name} --delete
|
|
||||||
rm -f %{_sysconfdir}/%{name}/instances
|
|
||||||
rm -rf %{_prefix}/games/%{name}/*
|
rm -rf %{_prefix}/games/%{name}/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 18 2020 GenZmeY <genzmey@gmail.com> - 0.6.0-1
|
||||||
|
- versions;
|
||||||
|
- instance conf tweaks;
|
||||||
|
- extended map list;
|
||||||
|
- clear cache on delete map;
|
||||||
|
- removed useless messages.
|
||||||
|
|
||||||
|
* Sun Jan 12 2020 GenZmeY <genzmey@gmail.com> - 0.5.0-1
|
||||||
|
- ban admin;
|
||||||
|
- map admin;
|
||||||
|
- multiple args support.
|
||||||
|
|
||||||
|
* Sun Sep 29 2019 GenZmeY <genzmey@gmail.com> - 0.4.0-1
|
||||||
|
- Reworked main.template and kf2-srv@.service;
|
||||||
|
- Add --restart option;
|
||||||
|
- --status option shows more info;
|
||||||
|
- --list option removed.
|
||||||
|
|
||||||
* Fri Sep 20 2019 GenZmeY <genzmey@gmail.com> - 0.3.0-1
|
* Fri Sep 20 2019 GenZmeY <genzmey@gmail.com> - 0.3.0-1
|
||||||
- validate option;
|
- validate option;
|
||||||
- auto validate on change active branch;
|
- auto validate on change active branch;
|
||||||
|
Reference in New Issue
Block a user