summaryrefslogtreecommitdiff
path: root/net/peercast/files/peercast.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/peercast/files/peercast.in')
-rw-r--r--net/peercast/files/peercast.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/peercast/files/peercast.in b/net/peercast/files/peercast.in
new file mode 100644
index 000000000000..b0ec0996b36b
--- /dev/null
+++ b/net/peercast/files/peercast.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ ! -d "$HOME/.peercast" ]; then
+ mkdir "$HOME/.peercast" || exit 1
+ ln -s "@DATADIR@/html" "@PREFIX@/libexec/peercast" "$HOME/.peercast" || exit 1
+fi
+
+cd "$HOME/.peercast" || exit 1
+exec ./peercast "$@"