Commit Graph

56 Commits

Author SHA1 Message Date
Gordian Edenhofer
fddc4503ee upgpkg: minecraft-server 1.12-1
Require java-runtime-headless version 8 since the minecraft server
recently switched to it.
2017-06-14 16:54:47 +02:00
Gordian Edenhofer
4e40583642 upgpkg: minecraft-server 1.12-1 2017-06-07 22:56:02 +02:00
Gordian Edenhofer
5a97b7c725 upgpkg: minecraft-server 1.11.2-4
Do not remove the user upon un-installation and do not stop the server
prior to removal in order to conform with the Arch package standards.
2017-04-13 14:18:17 +02:00
Gordian Edenhofer
d13086f4da upgpkg: minecraft-server 1.11.2-3
Harden management script against code errors and faulty user input by
disallowing the use of undeclared variables ('set -u') and returning on
unhandled errors of invoked programs ('set -e') plus:
* Circumvent '$?' everywhere by using 'if $()' instead.
* Deprecate 'expr' in favor of shell built-ins and '`' for '$()'.
* Use more quotes around variables.

upgpkg: cuberite 1.9.4b712-1
upgpkg: spigot 1.10.2-2
2017-03-27 20:03:58 +02:00
Gordian Edenhofer
afadb6b5cf Secure and clean up PKGBUILDs (https, sha512sums)
* Switch to https wherever possible
* Use unique source names where applicable (e.g. not *-git packages)
* Switch to sha512sums everywhere
* Update URL if necessary

upgpkg: certbot-git 0.8.1.r25.gaa4a263-1
upgpkg: certbot-plugins-git 0.8.1.r25.gaa4a263-1
upgpkg: cuberite 1.9.4-6
upgpkg: electricfence 2.2.4-1
upgpkg: fakepkg 1.40.2-1
upgpkg: gnome-shell-theme-copernico-git 15.73fa7ca-1
upgpkg: gnome-shell-theme-elegance-colors-git 238.ca44e2f-4
upgpkg: grive 0.5.0-5
upgpkg: grive-git 434.7bbb01c-2
upgpkg: gtk-theme-iris-dark-git 107.3468e91-1
upgpkg: gtk-theme-iris-light-git 105.aca7c34-1
upgpkg: letshelp-certbot-git 0.8.1.r25.gaa4a263-1
upgpkg: libinput-gestures-git r21.db6b688-1
upgpkg: luv-icon-theme-git 0.4.r82.g961ba1f-1
upgpkg: minecraft-server 1.11.2-2
upgpkg: mt7610u_sta-dkms-git r25.5f01636-1
upgpkg: munge 0.5.12-1
upgpkg: munge-git 1040.1d12405-1
upgpkg: paper-gtk-theme-git 299.cecb923-1
upgpkg: pcc 1.1.0-1
upgpkg: pcc-libs 1.1.0-1
upgpkg: python-acme-git 0.8.1.r25.gaa4a263-1
upgpkg: routersploit 2.2.1-1
upgpkg: routersploit-git 2.2.1.r0.gf5b7619-1
upgpkg: semt 1.1.1-1
upgpkg: unity-editor-bin 5.5.0p1+20161220-1
upgpkg: zoom 2.0.75971.1216-1
2017-01-07 15:01:06 +01:00
Gordian Edenhofer
16218e8732 upgpkg: minecraft-server 1.11.2-2
Change the idle_server naming schema in the script.

Previously screen was used to select a session with a specific well
defined name however apparently screen selects anything starting with
the specified pattern. This let to some confusion between the server and
the idle_server. To circumvent this behaviour simply change the naming
schema of the idle_server. THIS IS NOT A FIX! - part 2
2017-01-02 16:09:03 +01:00
Gordian Edenhofer
ff7ff630e2 upgpkg: minecraft-server 1.11.2-2
Previously screen was used to select a session with a specific well
defined name however apparently screen selects anything starting with
the specified pattern. This let to some confusion between the server and
the idle_server. To circumvent this behaviour simply change the naming
schema of the idle_server. THIS IS NOT A FIX!
2016-12-29 15:47:45 +01:00
Gordian Edenhofer
d39462710d upgpkg: minecraft-server 1.11.2-1
Tweak proceeding sed command instead of piping to awk.
2016-12-29 14:04:41 +01:00
Gordian Edenhofer
a11e065f9f upgpkg: minecraft-server 1.11.2-1 2016-12-21 16:20:52 +01:00
Gordian Edenhofer
6b29de391b upgpkg: minecraft-server 1.11.1-1
Switch from md5sum to sha512sum for additional security.
2016-12-20 18:23:24 +01:00
Gordian Edenhofer
a468c7820a upgpkg: minecraft-server 1.11-1 2016-11-15 19:56:26 +01:00
Gordian Edenhofer
6d5dd87fc2 upgpkg: minecraft-server 1.10.2-3
Treat IDLE_SERVER varible case insensitive when comparing to "true".

upgpkg: cuberite 1.9.4-5
upgpkg: spigot 1.10.2-1
2016-08-09 11:56:49 +02:00
Gordian Edenhofer
82a539adb8 upgpkg: minecraft-server 1.10.2-3
* invoke SESSION_NAME when setting IDLE_SESSION_NAME
* make the destination of the game command dump configurable
* surpress error messages when sourcing since some variables might be
  set to read-only
2016-08-04 12:51:07 +02:00
Gordian Edenhofer
271794e3ac upgpkg: minecraft-server 1.10.2-3
Create log dir with mode 2755 instead of 775.
Remove .install notice about obsolete backups.
2016-06-24 20:03:08 +02:00
Gordian Edenhofer
de963801f5 upgpkg: minecraft-server 1.10.2-2
* Handle server command output completely through screen instead of relying
on a possible outdated log file. (Implemented in the game_command function.)
The default screen command dump resides in /tmp.
* LOGPATH is not needed anymore.
* Unite various java options into one lengthier SERVER_START_CMD.
* Update configuration file accordingly.
* Create log dir in PKGBUILD.
* Fix some style inconsistencies.
2016-06-24 17:41:00 +02:00
Gordian Edenhofer
3a2205fcec upgpkg: minecraft-server 1.10.2-1 2016-06-23 20:38:15 +02:00
Gordian Edenhofer
bd28300b3e upgpkg: minecraft-server 1.10-2
Fix false greater than comparison if checking for active players.
2016-06-09 23:49:19 +02:00
Gordian Edenhofer
d68ac105b3 upgpkg: minecraft-server 1.10-1 2016-06-08 18:59:44 +02:00
Gordian Edenhofer
d3f3a8dc47 upgpkg: minecraft-server 1.9.4-4
Add awk and sed to dep array.

upgpkg: spigot 1.9.4-2
2016-05-28 16:08:09 +02:00
Gordian Edenhofer
927f9d50f3 upgpkg: minecraft-server 1.9.4-4
Let player check handle more formats from different plugins etc. in
which the number of players is communicated.

upgpkg: spigot 1.9.4-2
2016-05-28 13:51:12 +02:00
Gordian Edenhofer
f2baa544d9 upgpkg: minecraft-server 1.9.4-3
Fix bug on when to reset the no_player time: a false elif was used
instead of a simple else.
Typo.

upgpkg: spigot 1.9.4-2
2016-05-22 00:31:25 +02:00
Gordian Edenhofer
9fafea9acf upgpkg: (minecraft-server|spigot) 1.9.4-2
Pause player checking when in idle_server mode as long as someone is
connected to the server console. Not only does it make sense for any
admin which wants to monitor the console, it also removes annoying list
invocations from the console while e.g. typing in it.

upgpkg: minecraft-server 1.9.4-2
upgpkg: spigot 1.9.4-2
2016-05-20 11:53:30 +02:00
Gordian Edenhofer
53bb3e0764 upgpkg: minecraft-server 1.9.4-1
Reset timer to ( IDLE_IF_TIME - 300 seconds [5 min.] ) on shutdown, so
after pinging the server it will go down earlier instead of waiting the
full IDLE_IF_TIME. This only affects the idle_server_daemon.
2016-05-11 00:18:26 +02:00
Gordian Edenhofer
3fc4b8ae1d Change email address to Gmail
Gmail has been my main email address for a couple of years and the
yahoo.de address is merely my spam mail. Since I trust Google spam
filers and have a certain aversion for yahoo mail, I am switching.
2016-05-01 19:48:39 +02:00
Gordian Edenhofer
e41789c522 Upgpkg: 1.9.2-4
Reset no_player timer after the server has been shut down.
2016-04-03 18:00:41 +02:00
Gordian Edenhofer
0a4c078d75 Upgpkg: 1.9.2-3
Escape colored game-command output when evaluating the logs. Though this
is not the default for the stock server, some plugins add color to e.g.
list.
Set tail -f refresh interval to 0.1s (default 1s) to speedily escape.
2016-04-03 16:33:16 +02:00
Gordian Edenhofer
87f0b53c40 Upgpkg: 1.9.2-2
Do not save server files immediately before going down in case there is
no player on the server. The files are saved on shutdown eitherway and
the save-all command heavily delays the list command which is triggered
later.
2016-04-03 13:43:10 +02:00
Gordian Edenhofer
349829f1e1 Upgpkg: 1.9.2-2
The list command prints a line containing the usernames after the last
occurrence of ": " and since playernames may not contain this string the
clean player-list can be easily retrieved through the use of sed. This
surpasses the usefulness of the player_delimiter.
Increase waiting period between executing the list game-command and
scanning the logs from 0.3 seconds to 0.6 seconds.
Tweak tail -f command in server_command.
Use ${_game} variable aggressively in PKGBUILD.
2016-04-03 13:03:23 +02:00
Gordian Edenhofer
bba22bf616 Upgpkg: 1.9.2-1
Bump up to version 1.9.2 and omit version 1.9.1 since it was released
the same day and does not contain a patch for connection issues
described in MC-100283.
2016-03-30 23:41:19 +02:00
Gordian Edenhofer
991cfe163e Upgpkg: 1.9-8
Stop server immediately if no player is on the server.
Increase waiting period between executing a game-command and scanning
the logs from 0.2 seconds to 0.3 seconds.
Wait before scanning the logs when checking for active players.
Fix typo occured --> occurred and some spacing issues.
2016-03-29 17:44:57 +02:00
Gordian Edenhofer
e45774abee Upgpkg: 1.9-7
Increase pkgrel afterwards.
2016-03-20 14:52:00 +01:00
Gordian Edenhofer
57c082bbbd Upgpkg: 1.9-6
Renaming variables in the configuration file.
Increase time-out time to 10 seconds when shutting down the idle_server.
Minor redesign when passing commands to the minecraft server console.
2016-03-14 21:23:18 +01:00
Gordian Edenhofer
8cba936144 Upgpkg: 1.9-6
On server stop, return to the prompt as soon as the server has
completely shut down, not as soon as the shutdown command has been sent.
Thereby fixing the restart capability.
Introduce sanity check whether the servers is really down in idle_daemon
and server_start as well.

Signed-off-by: Gordian Edenhofer <gordian.edenhofer@gmail.com>
2016-03-06 14:24:39 +01:00
Gordian Edenhofer
904e9c8273 Upgpkg: 1.9-5
Fix issues with how the idle_server is handled.
(Tested and at least works for me...)
2016-03-05 12:18:45 +01:00
Gordian Edenhofer
495689d898 Upgpkg: 1.9-4
Fix wrong netcat invocation.
Fix faulty systemd unit files with variables in capital letters.
2016-03-05 10:08:55 +01:00
Gordian Edenhofer
04f376ccc9 Upgpkg: 1.9-3
Fix faulty systemd unit files with wrong use of environment variables.
2016-03-04 18:36:18 +01:00
Gordian Edenhofer
b564c24abe Upgpkg: 1.9-2
Update .SRCINFO
2016-03-02 21:53:32 +01:00
Gordian Edenhofer
89684ebd70 Upgpkg: 1.9-2
Fix serious problem which let to the idle_server_daemon being started
independently from whether the user actually wanting it.
2016-03-02 21:51:54 +01:00
Gordian Edenhofer
e331e1e8c2 Upgpkg: 1.9-1
Use server_root whenever possible.
Add note to remove the /etc/conf.d/minecraft update-check oneday.
2016-03-01 13:28:15 +01:00
Gordian Edenhofer
cc8b55b179 Upgpkg: 1.9-1
Make script and build files more easily adaptable for especially other
flavors of minecraft servers.
2016-02-29 22:19:09 +01:00
Gordian Edenhofer
f312efaac7 Upgpkg: 1.9-1
Add suspending capability for the minecraft server through the control
script and an additional screen session which listens on the same port
with netcat.
	* Update .conf accordingly
	* IDLE_SERVER can be either true or false
	* The default is no idle server
	* Choose an available netcat flavor automatically
Variable renaming in .install.
Notify the user of kept directories on post_remove and alter ownership
to root before removing the game user.
Print error messages to stderr.
2016-02-29 21:35:38 +01:00
Gordian Edenhofer
8a41942604 Upgpkg: 1.8.9-4
updpkgsums
2016-02-01 21:54:59 +01:00
Gordian Edenhofer
79570a0604 Upgpkg: 1.8.9-4
Fix bug which prevented users from taking backups of multiple
worlds. It occured due to an out-of-place quotation of a variable.
2016-02-01 21:01:49 +01:00
Gordian Edenhofer
6c008ee185 Upgpkg: 1.8.9-3
Remove out-of-place Type option from backup timer
State that the config file is interpreted in bash
2016-01-30 13:07:29 +01:00
Tyler Langlois
d7c04f25b6 minecraft-server: remove out-of-place Type option in backup timer 2016-01-29 23:46:34 -05:00
Gordian Edenhofer
562fc844e8 Upgpkg: 1.8.9-2
Check whether sudo is required for command execution
Replace [ with [[ (bash)
2016-01-26 20:30:17 +01:00
Gordian Edenhofer
130c71b396 Upgpkg: 1.8.9-2
Variable name for the management script's name
2016-01-26 00:18:20 +01:00
Gordian Edenhofer
b94e3db3db Upgpkg: 1.8.9-2
Restore backups easily with the delivered bash script
Human readable naming schema for backups
Backed up directories are now relative
Group has write permission (g+ws) to SERVER_ROOT
Proper quotation of variables which might contain spaces
2016-01-23 12:45:46 +01:00
Gordian Edenhofer
fc5a4e085d Upgpkg: 1.8.9-1 2016-01-13 23:12:52 +01:00
Gordian Edenhofer
ccd743fc8a Tailf is deprecated, use tail -f instead + Bugfix in tail invocation 2015-12-14 21:59:11 +01:00