Created attachment 372984 [details] net-misc/serviio-1.4.1.1.ebuild Serviio [1] is a popular, featureful, and free DLNA media server (though paid "Pro" licenses are available for some additional features). Please consider the attached ebuild for net-misc/serviio-1.4.1.1 for inclusion in Portage. Attachments for FILESDIR contents will follow. Note 1: LICENSE references "Serviio-EULA". The file for /usr/portage/licenses should be grabbed from the distfile as "LICENCE.txt". Please let me know if I'm supposed to attach this regardless of the fact that it's in the distfile. Note 2: I use systemd, and haven't actually tested the included initd/confd for OpenRC. I got those from Serviio's wiki [2], and they look fine to me. [1] http://serviio.org/ [2] http://wiki.serviio.org/doku.php?id=howto:linux:install:gentoo
Created attachment 372986 [details] files/initd
Created attachment 372988 [details] files/confd
Created attachment 372990 [details] files/systemd.service
Created attachment 372992 [details] files/systemd.service.conf
Created attachment 372994 [details] net-misc/serviio-1.4.1.1.ebuild There was a small issue caused by the fact that each vendor launcher shell script would spawn the server/console Java process as a child rather than exec'ing. Besides being wasteful, in the case of the server it also left systemd unable to know which process was the real one. This would make a restart fail, for example, because the death of the shell parent would trigger systemd to try to execute again before the Java process had exited. Fixed with a sed patch in this new ebuild.
Created attachment 372996 [details] files/systemd.service With the fix in the previous comment, we can now more optimally let systemd know that to stop the service, only the main process need be killed.
According to http://serviio.org/download "transcode? ( media-video/ffmpeg )" looks like it should be: "transcode? ( media-video/ffmpeg[encode,libass,mp3,rtmp,x264] )" in order to pick up all of the libraries to be used by ffmpeg and allow encoding support
Created attachment 373138 [details] net-misc/serviio-1.4.1.1.ebuild Re: comment #7 - Good call, thanks, Brian! I've made that change, along with adding "raw" to IUSE to pull in media-gfx/dcraw as mentioned on the same page.