diff -up smeserver-subsonic-4.8/createlinks.patch0 smeserver-subsonic-4.8/createlinks --- smeserver-subsonic-4.8/createlinks.patch0 2013-10-26 16:29:02.000000000 -0400 +++ smeserver-subsonic-4.8/createlinks 2013-10-26 17:28:54.000000000 -0400 @@ -4,7 +4,7 @@ use esmith::Build::CreateLinks qw(:all); #################### # links to add - safe_symlink("/etc/e-smith/templates-default/template-begin-shell", "root/etc/e-smith/templates//usr/share/subsonic/subsonic.sh/template-begin"); + safe_symlink("/etc/e-smith/templates-default/template-begin-shell", "root/etc/e-smith/templates/usr/share/subsonic/subsonic.sh/template-begin"); # templates to expand templates2events( "/usr/share/subsonic/subsonic.sh" , qw( conf-subsonic bootstrap-console-save post-upgrade)); @@ -15,7 +15,7 @@ use esmith::Build::CreateLinks qw(:all); safe_symlink("sigusr1", "root/etc/e-smith/events/conf-subsonic/services2adjust/httpd-e-smith"); # links for rc.d from init.d - service_link_enhanced("subsonic", "S98", "7"); - service_link_enhanced("subsonic", "K45", "6"); - service_link_enhanced("subsonic", "K45", "0"); + service_link_enhanced("subsonic", "S98", "7"); + service_link_enhanced("subsonic", "K45", "6"); + service_link_enhanced("subsonic", "K45", "0"); service_link_enhanced("subsonic", "K45", "1"); diff -up smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/Target.patch0 smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/Target --- smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/Target.patch0 2013-10-26 17:59:27.000000000 -0400 +++ smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/Target 2013-10-26 17:59:42.000000000 -0400 @@ -0,0 +1 @@ +http://localhost:4040/subsonic diff -up smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/type.patch0 smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/type --- smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/type.patch0 2013-10-26 16:29:02.000000000 -0400 +++ smeserver-subsonic-4.8/root/etc/e-smith/db/accounts/defaults/subsonic/type 2013-10-26 17:59:03.000000000 -0400 @@ -1 +1 @@ -reserved \ Pas de fin de ligne à la fin du fichier. +ProxyPass diff -up smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic.patch0 smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic --- smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic.patch0 2013-10-26 16:29:02.000000000 -0400 +++ smeserver-subsonic-4.8/root/etc/e-smith/templates/etc/sysconfig/subsonic/40subsonic 2013-10-26 17:56:53.000000000 -0400 @@ -0,0 +1,42 @@ +# +# This is the configuration file for the Subsonic service +# (/etc/init.d/subsonic) +# +# To change the startup parameters of Subsonic, modify +# the SUBSONIC_ARGS variable below. +# +# Type "subsonic --help" on the command line to read an +# explanation of the different options. +# +# For example, to specify that Subsonic should use port 80 (for http) +# and 443 (for https), and use a Java memory heap size of 200 MB, use +# the following: +# +# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=200" + +SUBSONIC_ARGS="{ +my $subhome = $subsonic{'home'} || "/var/subsonic"; +my $subhost = $subsonic{'host'} || "0.0.0.0"; +my $subport = $subsonic{'port'} || "4040"; +my $subpath = $subsonic{'path'} || "/subsonic"; +my $subhttps_port = $subsonic{'https_port'} || "0"; +my $submem = $subsonic{'MaxMemory'} || "150"; +my $subpid = $subsonic{'PIDfile'} || ""; +my $submusic = $subsonic{'Music_Folder'} || "/var/music"; +my $subpod = $subsonic{'Podcast_Folder'} || "/var/music/Podcast"; +my $subplay = $subsonic{'Playlist_Folder'} || "/var/music/playlists"; +my $subquiet = $subsonic{'quiet'} || "0"; + + +$OUT .= "--max-memory=$submem --context-path='$subpath'"; + +}" + + +# The user which should run the Subsonic process. Default "root". +# Note that non-root users are by default not allowed to use ports +# below 1024. Also make sure to grant the user write permissions in +# the music directories, otherwise changing album art and tags will fail. + +SUBSONIC_USER=root +