summaryrefslogtreecommitdiff
path: root/net/DarwinStreamingServer/files/patch-Install
diff options
context:
space:
mode:
Diffstat (limited to 'net/DarwinStreamingServer/files/patch-Install')
-rw-r--r--net/DarwinStreamingServer/files/patch-Install110
1 files changed, 76 insertions, 34 deletions
diff --git a/net/DarwinStreamingServer/files/patch-Install b/net/DarwinStreamingServer/files/patch-Install
index ca3a32d35f3e..2ab9fe78306e 100644
--- a/net/DarwinStreamingServer/files/patch-Install
+++ b/net/DarwinStreamingServer/files/patch-Install
@@ -1,6 +1,12 @@
---- Install.orig Wed Jul 24 07:00:31 2002
-+++ Install Sun Feb 20 22:31:51 2005
-@@ -15,6 +15,7 @@
+--- Install.orig Fri May 27 18:55:01 2005
++++ Install Sun Jul 10 20:10:31 2005
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+
+ # Install script for the Darwin Streaming Server
+ # source release
+@@ -16,6 +16,7 @@
if [ $USERID = 0 ]; then
@@ -8,7 +14,7 @@
echo Checking for and Killing currently running Darwin Streaming Server
if [ `uname` = "FreeBSD" ]; then
ps -ax | awk '/DarwinStreamingServer/ {print $1}' | xargs kill -9
-@@ -110,6 +111,7 @@
+@@ -113,6 +114,7 @@
fi
echo
@@ -16,8 +22,8 @@
## CHANGE PERL PATH IN streamingadminserver.pl AND parse_xml.cgi ##
-@@ -196,64 +198,72 @@
- fi
+@@ -207,29 +209,29 @@
+ fi
echo copying "DarwinStreamingServer" to "/usr/local/sbin/DarwinStreamingServer"
- cp -f DarwinStreamingServer /usr/local/sbin/
@@ -37,62 +43,74 @@
+ ${BSD_INSTALL_PROGRAM} qtpasswd /usr/local/bin/
# For now, do not copy modules as there are no supported dynamic modules
-- # echo copying modules to "/usr/local/sbin/StreamingServerModules"
+ # echo copying modules to "/usr/local/sbin/StreamingServerModules"
- if [ ! -d /usr/local/sbin/StreamingServerModules ]; then
- echo creating "/usr/local/sbin/StreamingServerModules" directory
- mkdir /usr/local/sbin/StreamingServerModules
-+ # echo copying modules to "/usr/local/libexec/StreamingServerModules"
+ if [ ! -d /usr/local/libexec/StreamingServerModules ]; then
+ echo creating "/usr/local/libexec/StreamingServerModules" directory
+ mkdir /usr/local/libexec/StreamingServerModules
fi
-- # cp -f StreamingServerModules/* /usr/local/sbin/StreamingServerModules/
-+ # ${BSD_INSTALL_PROGRAM} StreamingServerModules/* /usr/local/libexec/StreamingServerModules/
+- cp -f StreamingServerModules/* /usr/local/sbin/StreamingServerModules/
++ ${BSD_INSTALL_PROGRAM} StreamingServerModules/* /usr/local/libexec/StreamingServerModules/
+
+- if [ -e /usr/local/sbin/StreamingServerModules/QTSSHomeDirectoryModule ]; then
++ if [ -e /usr/local/libexec/StreamingServerModules/QTSSHomeDirectoryModule ]; then
+ echo copying "createuserstreamingdir" to "/usr/local/bin/createuserstreamingdir"
+- cp -f createuserstreamingdir $INSTALLROOT/usr/local/bin/
++ ${BSD_INSTALL_PROGRAM} createuserstreamingdir $INSTALLROOT/usr/local/bin/
+ fi
if [ ! -d /etc/streaming ]; then
- echo creating "/etc/streaming" directory
+@@ -237,44 +239,53 @@
mkdir -p /etc/streaming
fi
-- echo copying "streamingserver.xml" to "/etc/streaming/streamingserver.xml-sample"
-- cp -f streamingserver.xml /etc/streaming/streamingserver.xml-sample
+ echo copying "streamingserver.xml" to "/etc/streaming/streamingserver.xml-dist"
+ ${BSD_INSTALL_DATA} streamingserver.xml /etc/streaming/streamingserver.xml-dist
+ if [ ! -e /etc/streaming/streamingserver.xml ]; then
++ echo;echo copying "streamingserver.xml" to "/etc/streaming/streamingserver.xml"
++ ${BSD_INSTALL_DATA} streamingserver.xml /etc/streaming/streamingserver.xml
++if false; then
+ /usr/local/sbin/DarwinStreamingServer -x
++fi
+ fi
-+ if [ ! -e /etc/streaming/streamingserver.xml ]; then
- echo;echo copying "streamingserver.xml" to "/etc/streaming/streamingserver.xml"
-- cp -f streamingserver.xml /etc/streaming/streamingserver.xml
-+ ${BSD_INSTALL_DATA} streamingserver.xml /etc/streaming/streamingserver.xml
chmod 600 /etc/streaming/streamingserver.xml
-+ fi
-
+ chown qtss /etc/streaming/streamingserver.xml
+
- echo;echo copying "relayconfig.xml-Sample" to "/etc/streaming/relayconfig.xml-Sample"
- cp -f relayconfig.xml-Sample /etc/streaming/relayconfig.xml-Sample
- chmod 600 /etc/streaming/relayconfig.xml-Sample
+- if [ -e /etc/streaming/relayconfig.xml ]; then
+ echo;echo copying "relayconfig.xml-Sample" to "/etc/streaming/relayconfig.xml-dist"
+ ${BSD_INSTALL_DATA} relayconfig.xml-Sample /etc/streaming/relayconfig.xml-dist
+ chmod 600 /etc/streaming/relayconfig.xml-dist
-+
+ if [ ! -e /etc/streaming/relayconfig.xml ]; then
-+ echo;echo copying "relayconfig.xml-Sample" to "/etc/streaming/relayconfig.xml"
-+ ${BSD_INSTALL_DATA} relayconfig.xml-Sample /etc/streaming/relayconfig.xml
-+ chmod 600 /etc/streaming/relayconfig.xml
-+ fi
-
++ echo;echo copying "relayconfig.xml-Sample" to "/etc/streaming/relayconfig.xml"
++ ${BSD_INSTALL_DATA} relayconfig.xml-Sample /etc/streaming/relayconfig.xml
+ chown qtss /etc/streaming/relayconfig.xml
++ chmod 600 /etc/streaming/relayconfig.xml
+ fi
+
- echo;echo copying "qtusers" to "/etc/streaming/qtusers"
- cp -f qtusers /etc/streaming/qtusers
- chmod 600 /etc/streaming/qtusers
+- chown qtss /etc/streaming/qtusers
-
- echo;echo copying "qtgroups" to "/etc/streaming/qtgroups"
- cp -f qtgroups /etc/streaming/qtgroups
- chmod 600 /etc/streaming/qtgroups
+- chown qtss /etc/streaming/qtgroups
+ echo;echo copying "qtusers" to "/etc/streaming/qtusers-dist"
+ ${BSD_INSTALL_DATA} qtusers /etc/streaming/qtusers-dist
+ chmod 600 /etc/streaming/qtusers-dist
++ chown qtss /etc/streaming/qtusers-dist
+
+ echo;echo copying "qtgroups" to "/etc/streaming/qtgroups-dist"
+ ${BSD_INSTALL_DATA} qtgroups /etc/streaming/qtgroups-dist
+ chmod 600 /etc/streaming/qtgroups-dist
++ chown qtss /etc/streaming/qtgroups-dist
#echo;echo copying "streamingadminserver.pem" to "/etc/streaming/streamingadminserver.pem"
- #cp -f streamingadminserver.pem /etc/streaming/streamingadminserver.pem
@@ -107,8 +125,8 @@
+ mkdir -p ${DATADIR}
fi
-- echo copying "readme.pdf" to "/var/streaming/readme.pdf"
-- cp -f readme.pdf /var/streaming/readme.pdf
+- echo copying "readme.txt" to "/var/streaming/readme.txt"
+- cp -f readme.txt /var/streaming/readme.txt
+ echo copying "readme.txt" to "${DATADIR}/readme.txt"
+ ${BSD_INSTALL_DATA} readme.txt ${DATADIR}/readme.txt
@@ -119,8 +137,8 @@
if [ ! -d /var/streaming/logs ]; then
echo creating "/var/streaming/logs" directory
-@@ -272,46 +282,49 @@
- fi
+@@ -294,66 +305,69 @@
+ chmod 775 /usr/local/movies
echo copying "sample_100kbit.mov" into "/usr/local/movies/sample_100kbit.mov"
- cp -f sample_100kbit.mov /usr/local/movies/
@@ -142,7 +160,24 @@
- cp -f sample.mp3 /usr/local/movies/
+ ${BSD_INSTALL_DATA} sample.mp3 /usr/local/movies/
-+ if false; then
+ echo copying "sample_50kbit.3gp" into "/usr/local/movies/sample_50kbit.3gp"
+- cp -f sample_50kbit.3gp /usr/local/movies/
++ ${BSD_INSTALL_DATA} sample_50kbit.3gp /usr/local/movies/
+
+ echo copying "sample_h264_100kbit.mp4" into "/usr/local/movies/sample_h264_100kbit.mp4"
+- cp -f sample_h264_100kbit.mp4 /usr/local/movies/
++ ${BSD_INSTALL_DATA} sample_h264_100kbit.mp4 /usr/local/movies/
+
+ echo copying "sample_h264_300kbit.mp4" into "/usr/local/movies/sample_h264_300kbit.mp4"
+- cp -f sample_h264_300kbit.mp4 /usr/local/movies/
++ ${BSD_INSTALL_DATA} sample_h264_300kbit.mp4 /usr/local/movies/
+
+ echo copying "sample_h264_1mbit.mp4" into "/usr/local/movies/sample_h264_1mbit.mp4"
+- cp -f sample_h264_1mbit.mp4 /usr/local/movies/
++ ${BSD_INSTALL_DATA} sample_h264_1mbit.mp4 /usr/local/movies/
+
++if false; then
+ if [ -e StreamingLoadTool ]; then
echo copying "StreamingLoadTool" to "/usr/local/bin/StreamingLoadTool"
- cp -f StreamingLoadTool /usr/local/bin/
+ ${BSD_INSTALL_PROGRAM} StreamingLoadTool /usr/local/bin/
@@ -151,7 +186,8 @@
- cp -f streamingloadtool.conf /etc/streaming/
+ echo copying "streamingloadtool.conf" to "/etc/streaming/streamingloadtool.conf-dist"
+ ${BSD_INSTALL_DATA} streamingloadtool.conf /etc/streaming/streamingloadtool.conf-dist
-+ fi
++fi
+ fi
#WebAdmin install
echo copying "streamingadminserver.pl" into "/usr/local/sbin/streamingadminserver.pl"
@@ -162,6 +198,7 @@
echo removing old version of html from "/var/streaming/AdminHtml"
rm -r -f /var/streaming/AdminHtml/*
fi
+
- if [ ! -d /var/streaming/ ]; then
+ if [ ! -d /var/streaming/AdminHtml ]; then
echo creating "/var/streaming/AdminHtml" directory
@@ -171,6 +208,11 @@
- cp -f -r AdminHtml /var/streaming/
+ tar -cf - AdminHtml | tar -xf - -C ${DATADIR}
+
+ chown -R -f qtss /var/streaming/
+ chown -R -f qtss /etc/streaming/
+ chown -R -f qtss /usr/local/movies/
+
- echo;echo "Launching streamingadminserver.pl"
- /usr/local/sbin/streamingadminserver.pl
+# echo;echo "Launching streamingadminserver.pl"
@@ -182,9 +224,9 @@
# Setup for DSS
# Prompts for a username and password
# that can be used to administer the server
-@@ -372,6 +385,7 @@
- /usr/local/bin/qtpasswd -F -d 'aGFja21l' > /dev/null
-
+@@ -416,6 +430,7 @@
+ chown -R -f qtss /etc/streaming/
+
echo Setup Complete!
+fi