#!/bin/sh


# Install script for the Darwin Streaming Server
# binary releases


echo Installing Darwin Streaming Server

echo copying "DarwinStreamingServer" to "/usr/sbin/DarwinStreamingServer"
cp ./DarwinStreamingServer /usr/sbin/

echo copying "PlaylistBroadcaster" to "/usr/sbin/PlaylistBroadcaster"
cp ./PlaylistBroadcaster /usr/sbin/

echo copying "qtpasswd" to "/usr/sbin/qtpasswd"
cp ./qtpasswd /usr/sbin/

echo copying modules to "/usr/sbin/StreamingServerModules"
mkdir /usr/sbin/StreamingServerModules
cp StreamingServerModules/* /usr/sbin/StreamingServerModules/

echo copying "streamingserver.conf" to "/etc/streamingserver.conf"
cp -r streamingserver.conf /etc/

echo copying "streamingrelay.conf" to "/etc/streamingrelay.conf"
cp -r streamingrelay.conf /etc/

echo creating "/usr/movies" directory
mkdir -p /usr/movies

echo creating "/var/streaming/logs" directory
mkdir -p /var/streaming/logs

echo copying "sample.mov" into "/usr/movies"
cp sample.mov /usr/movies/

rehash

echo
echo Installion Complete
