aboutsummaryrefslogtreecommitdiffstats
path: root/audio/shoutcast/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'audio/shoutcast/pkg-install')
-rw-r--r--audio/shoutcast/pkg-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/audio/shoutcast/pkg-install b/audio/shoutcast/pkg-install
index bb97ac95dde2..75387ad52143 100644
--- a/audio/shoutcast/pkg-install
+++ b/audio/shoutcast/pkg-install
@@ -8,7 +8,12 @@ SC_GROUP=shoutcast
SC_USER=shoutcast
SC_SHELL=/bin/sh
SC_HOME=/nonexistent
-PW=/usr/sbin/pw
+
+if [ -n "${DESTDIR}" ] ; then
+ PW="/usr/sbin/chroot ${DESTDIR} /usr/sbin/pw"
+else
+ PW="/usr/sbin/pw"
+fi
if ! ${PW} show group ${SC_GROUP} -q >/dev/null; then
gid=210