Update 2020 Edition: Use something like Airsonic instead. Subsonic's code is closed source at this point, and thus this patch is useless, unless you are using a 9 year old verison of Subsonic for some reason.
A patch to disable the licensing functionality in Subsonic, a GPL-licensed media streaming server/web interface. Use of the mobile apps requires you to get a license after 30 days of trial. You obtain a license via donation.
Except that's not a donation. So, here's a patch to fix that. Support the Subsonic project with a donation that's actually a donation. The program is developed and maintained very well.
svn co https://subsonic.svn.sourceforge.net/svnroot/subsonic/trunk subsonic
Check out a different branch if you want a specific version.
From the branch root:
patch -p0 < nolicense.patch
mvn install
cd subsonic-booter/
mvn install
Replace the downloaded subsonic.war and subsonic-booter-with-dependencies.jar with the newly compiled ones. Compilation of subsonic-booter is probably optional. It's just a precaution in case the branch you are compiling is newer than whatever version you downloaded.
so I had no luck with replacing the WAR, nor finding a complete supersonic download, and I do not think that recompiling the thing every time, not to mention setting up the development environment, is an easy thing for most non-dev people. The simplest solution for me was to fool the license check via a hosts DNS redirect to a local (or remote) server that serves up /backend/validateLicense.view, and returns true.
A killer solution would be to integrate this hack into subsonic itself, by placing the file into installdir/jetty/3081/webapp (varies I think) so that it's own server would serve it up, then just applying the dns change via whatever means. (local HOSTS file on server, router, dnsmasq) But I couldn't get that to work, since if a GET is made for a .view file on subsonic's jetty, it does it's java function lookup instead of delivering the file. (lookup fails since there is no backend classes obviously) Does anyone know any jetty voodoo like similar to an apache redirect, which could be installed by simply placing a file in that jetty 'server-root' folder? For now, I just used a different server to host the file, and it validates the license check fine. (success is donation link/heart goes away) But it would be nice if the solution was all in one, more elegant I suppose.
Note that this kills the following (fairly useless) features: remote settings storage, new version alerts, etc.. that DNS redirect will prevent all phoning home.
Cheers, from a person that would donate if they could.