aboutsummaryrefslogtreecommitdiffstats
path: root/audio/squeezeboxserver/files
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2007-07-15 11:47:20 +0800
committerbrooks <brooks@FreeBSD.org>2007-07-15 11:47:20 +0800
commit49f62450eaed12af8614fd01b60a2b0af7f3a3c4 (patch)
treed7a500debc3d28d990b022cbee409cec2aa03505 /audio/squeezeboxserver/files
parente53eed815408e534426f389a0f812723a3198496 (diff)
downloadfreebsd-ports-gnome-49f62450eaed12af8614fd01b60a2b0af7f3a3c4.tar.gz
freebsd-ports-gnome-49f62450eaed12af8614fd01b60a2b0af7f3a3c4.tar.zst
freebsd-ports-gnome-49f62450eaed12af8614fd01b60a2b0af7f3a3c4.zip
Upgrade to slimserver 6.5.3 see change log for details.
http://www.slimdevices.com/Changelog6.html Add largely untested support for changing the slimserver user, group, and database/cache directory with the SLIMUSER, SLIMGROUP, and SLIMDBDIR make variables. Make sure the user/group exists before install if you use a non-standard one.
Diffstat (limited to 'audio/squeezeboxserver/files')
-rw-r--r--audio/squeezeboxserver/files/patch-Slim_Utils_Prefs.pm6
-rw-r--r--audio/squeezeboxserver/files/pkg-install.in8
-rw-r--r--audio/squeezeboxserver/files/slimserver.sh.in4
-rw-r--r--audio/squeezeboxserver/files/squeezecenter.sh.in4
4 files changed, 11 insertions, 11 deletions
diff --git a/audio/squeezeboxserver/files/patch-Slim_Utils_Prefs.pm b/audio/squeezeboxserver/files/patch-Slim_Utils_Prefs.pm
index 001a803a5ff0..c7e5178a5b5b 100644
--- a/audio/squeezeboxserver/files/patch-Slim_Utils_Prefs.pm
+++ b/audio/squeezeboxserver/files/patch-Slim_Utils_Prefs.pm
@@ -9,7 +9,7 @@ $FreeBSD$
+ } elsif (Slim::Utils::OSDetect::OS() eq 'unix') {
+
-+ $path = "/var/db/slimserver/playlists";
++ $path = "%%SLIMDBDIR%%/playlists";
+
} else {
@@ -19,7 +19,7 @@ $FreeBSD$
} elsif ($os eq 'unix') {
- $CacheDir = catdir($ENV{'HOME'},'Cache');
-+ $CacheDir = "/var/db/slimserver/cache";
++ $CacheDir = "%%SLIMDBDIR%%/cache";
} elsif ($os eq 'win' && Slim::Utils::OSDetect::details->{'osName'} =~ /Vista/) {
@@ -28,7 +28,7 @@ $FreeBSD$
}
} else {
- $prefsPath = $ENV{'HOME'};
-+ $prefsPath = "/var/db/slimserver";
++ $prefsPath = "%%SLIMDBDIR%%";
}
$::d_prefs && msg("The default prefs directory is $prefsPath\n");
diff --git a/audio/squeezeboxserver/files/pkg-install.in b/audio/squeezeboxserver/files/pkg-install.in
index ef9c47ecbd6b..4b31913f561d 100644
--- a/audio/squeezeboxserver/files/pkg-install.in
+++ b/audio/squeezeboxserver/files/pkg-install.in
@@ -1,15 +1,15 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/audio/squeezeboxserver/files/pkg-install.in,v 1.2 2005-04-21 20:05:53 brooks Exp $
+# $FreeBSD: /tmp/pcvs/ports/audio/squeezeboxserver/files/pkg-install.in,v 1.3 2007-07-15 03:47:20 brooks Exp $
name=slimserver
-u=slimserv
-g=slimserv
+u=%%SLIMUSER%%
+g=%%SLIMGROUP%%
ugid=104
homedir=/nonexistent
shell=/sbin/nologin
comment="Slim Devices SlimServer pseudo-user"
slimdir="%%PREFIX%%/%%SLIMDIR%%"
-statedir=/var/db/slimserver
+statedir=%%SLIMDBDIR%%
cachedir=${statedir}/cache
conffile=${statedir}/slimserver.conf
playlistdir=${statedir}/playlists
diff --git a/audio/squeezeboxserver/files/slimserver.sh.in b/audio/squeezeboxserver/files/slimserver.sh.in
index b91aa35cc23f..fac1e2b47eac 100644
--- a/audio/squeezeboxserver/files/slimserver.sh.in
+++ b/audio/squeezeboxserver/files/slimserver.sh.in
@@ -28,8 +28,8 @@ statedir=%%SLIMDBDIR%%
cachedir=${statedir}/cache
playlistdir=${statedir}/playlists
conffile=${statedir}/slimserver.conf
-u=slimserv
-g=slimserv
+u=%%SLIMUSER%%
+g=%%SLIMGROUP%%
command_args="--daemon --prefsfile=${conffile} --logfile=${logfile} --user=${u} --group=${g} --pidfile=${pidfile}"
slimserver_start_precmd()
diff --git a/audio/squeezeboxserver/files/squeezecenter.sh.in b/audio/squeezeboxserver/files/squeezecenter.sh.in
index b91aa35cc23f..fac1e2b47eac 100644
--- a/audio/squeezeboxserver/files/squeezecenter.sh.in
+++ b/audio/squeezeboxserver/files/squeezecenter.sh.in
@@ -28,8 +28,8 @@ statedir=%%SLIMDBDIR%%
cachedir=${statedir}/cache
playlistdir=${statedir}/playlists
conffile=${statedir}/slimserver.conf
-u=slimserv
-g=slimserv
+u=%%SLIMUSER%%
+g=%%SLIMGROUP%%
command_args="--daemon --prefsfile=${conffile} --logfile=${logfile} --user=${u} --group=${g} --pidfile=${pidfile}"
slimserver_start_precmd()