Seriously kudos for the ebuilds. But I do have one question about the minecraft-server tmux daemon.
After years of using screen, I'm having a little trouble with tmux as no matter where I look, I can't connect to the session.
I'm a little tired of running around for the answer, and could you tell me the exact command I should enter to reattach the session?

Okay, I'll take your word for it and have committed that change. Please let me know immediately if it doesn't fix the problem or if anything else breaks.

Did not fix the problem completely for me. Seems to be less now though, but considering that I don't now exactly how to reproduce it, I can't make any certain statements. Generally though it used to be like 1-2/hour and now it happened twice since you patched it.

Okay, I'll take your word for it and have committed that change. Please let me know immediately if it doesn't fix the problem or if anything else breaks.

Did not fix the problem completely for me. Seems to be less now though, but considering that I don't now exactly how to reproduce it, I can't make any certain statements. Generally though it used to be like 1-2/hour and now it happened twice since you patched it.

Thanks for letting me know. Even if it hasn't really improved, it hasn't got any worse either so I'll keep the update.

Just warning you guys to say that the upcoming update with the new launcher will probably break things horribly. I'm not sure if they're going to deploy the launcher automatically somehow or force everybody to redownload. I'm also not sure whether the old launcher will still work for a time and whether it will even be feasible to disable the library installation as we have been doing so far.

It almost always fails to authenticate (new https they implemented), which is fine if you're just playing single player offline, but I host a small server and don't want to turn auth off and let jackasses grief me. I switched back to using the old launcher and it usually works, unless the site is down which it appears to be again today. Those guys should put their site on a Gentoo box

I had noticed that it almost always fails to authenticate but I thought they were just overloaded as usual, not because they'd switched to HTTPS. Hopefully they'll get their act together soon, they can't leave it like this.

I tried to see if replacing the string "https://login.minecraft.net/" inside LauncherFrame.class with http:// would work. Well it didn't NOT work but https:// is also working for me at the moment so I'm not entirely sure it made any difference. Even if that works, I'm not sure if I want to make the change. I'll see how it goes.

I got in and played for a few minutes, disconnected for lunch now it's down again. I'm not gonna pretend to understand how a million potential users trying to login can pound on a server, I've never had anything nearly that scale, but what's up w/ Amazon S3? Their super cloud based servers can't handle some minecraft auth? Sad.

I don't mean to put a dampener on this but I stopped doing any work involving Bukkit as soon as it became clear that there were big legal obstacles in the way. You're welcome to pursue this if you want but if free software means anything to you, I suggest you wait. They seem to be resolving the issue slowly but surely.

I did try to use the init script to provide console access instead of the "minecraft-server-console" command I came up with but a bug in OpenRC prevented this from working. It looks like this bug may now be fixed though. I guess those other commands could be useful in conjuction with a cron job. Then again, aren't there plugins that do that sort of thing on a timed basis already? Maybe not. I haven't actually used Bukkit yet so I'm not familiar with all the plugins that are available.

It is possible to install the JAR files elsewhere while still using java-pkg-2 but I wouldn't do it without good reason. Symlinks are your friend and Gentoo's Java stuff will set up the correct classpath for you if you use it properly.

The games eclass is quite straightforward, it mainly just wraps the regular functions to install stuff in /usr/games. The Java eclasses are very complicated and take some time to learn. My experience comes from having had commit access to java-overlay for years. Nevertheless, I highly recommend that you do use them otherwise you'll just end up in a mess.

Yeah i'm aware of the licensing issues but the software is nice, i don't want to work on the vanilla server which is too limited for my use and with hMod dying there is no many other alternatives.

But I understand and respect your point of view

Did'nt know for the OpenRC bug... I'll see if I can achieve this or not

Yeah, I know there are current solutions to do backups and everything but none of them use rdiff-backup which is perfect for a Minecraft server in my opinion

Also, I prefer to manage backups with my own script.

You made your point for the jar path, I'll just use a symlink then

Thank you for the answers.

EDIT: Hum. Yeah, i've answered too fast. Free software means something to me and I didn't took enough time to read about this licensing issue (I though it was almost dealed with Mojang but, even if there seems to have a tolerance for Bukkit and even if Bukkit is contributing to Minecraft vanilla there is nothing official right now so i'll stick to the official server for the time being.
It'll give me the time to learn about ebuild writing

If you're wondering, the OpenRC bug was that whenever you invoked an init script as a non-root user, it would result in 100% CPU usage and never returned, even for a command that didn't require you to be root like describe.

I'm a big fan of rdiff-backup so that idea is cool. You're right, it's perfectly suited.

From what I can tell, that function should be defined in /etc/init.d/functions.sh, but it's not. I assume that's because it needs BL2? Might want to put a dependency in for that, or do like some other initscripts do and detect that BL1 is in use, and warn that it needs BL2?

Sorry about that. I haven't use baselayout 1 for years. It feels so long ago, I was probably using the alpha versions of 2 back in 2007. I grepped the Portage tree to see what else uses ewaitfile and only dev-db/mysql-init-scripts came up. That's where I learnt about the command in the first place! It depends on OpenRC, which is what actually provides ewaitfile so that's what I've done.

Using ewaitfile is actually less than ideal. What I intend to do is wrap the server with Apache Daemons, which will allow it to be stopped safely, but I'm waiting to see what happens with Bukkit first.

I am looking at adding backup functionality to my server based on this ebuild.

The issue I have is I have no idea about tmux that much and my quick glance at the man page did me no good. Basically what I want to do is pass commands into tmux to issue a command or two (like save-off and save-on). I looked on the minecraft wiki (http://www.minecraftwiki.net/wiki/Server_startup_script) at their init script to get a bit of an idea on how they did it and being that it was with screen (something else I have never used...) I was hoping that someone can shed some light on my issue.

I will continue to look through the man pages but hopefully someone can come up with a quick tip for me.