blob: 047aec10ed1953dbc55be55a04396c9a331172e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=darwin-streaming-server
_pkgname=DarwinStreamingSrvr
pkgver=6.0.3
pkgrel=0
pkgdesc="Open source version of Apple's QuickTime Streaming Server technology"
url="http://dss.macosforge.org/"
arch="all"
license="Custom"
depends="perl"
depends_dev="perl"
makedepends="$depends_dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
pkggroups="qtss"
source="http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar
dss-hh-20080728-1.patch
dss-6.0.3.patch
dss.initd"
_builddir="$srcdir"/"$_pkgname$pkgver-Source"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./Buildit || return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/usr/sbin
mkdir -p "$pkgdir"/var/run/darwinstreaming
mkdir -p "$pkgdir"/var/darwinstreaming
mkdir -p -m 775 "$pkgdir/var/darwinstreaming/movies"
mkdir -p -m 770 "$pkgdir/var/darwinstreaming/playlists"
mkdir -p "$pkgdir/usr/sbin/StreamingServerModules"
install -D -m0755 "$srcdir"/dss.initd "$pkgdir/etc/init.d/dss"
install -D -m 644 APPLE_LICENSE "$pkgdir/usr/share/licenses/$pkgname/APPLE_LICENSE"
install ./StreamingLoadTool/StreamingLoadTool "$pkgdir/usr/bin/StreamingLoadTool"
install ./WebAdmin/src/streamingadminserver.pl "$pkgdir/usr/sbin/streamingadminserver.pl"
install -D -m 600 relayconfig.xml-Sample "$pkgdir/etc/darwinstreaming/relayconfig.xml-Sample"
echo "realm Streaming Server" > "$pkgdir/etc/darwinstreaming/qtusers"
chmod 600 "$pkgdir/etc/darwinstreaming/qtusers"
echo "admin: " > "$pkgdir/etc/darwinstreaming/qtgroups"
chmod 600 "$pkgdir/etc/darwinstreaming/qtgroups"
install -m 644 -D ./Documentation/readme.txt "$pkgdir/var/darwinstreaming/readme.txt"
install -m 644 ./Documentation/3rdPartyAcknowledgements.rtf "$pkgdir/var/darwinstreaming/3rdPartyAcknowledgements.rtf"
install -m 644 sample_100kbit.mov "$pkgdir/var/darwinstreaming/movies/sample_100kbit.mov"
install -m 644 sample_300kbit.mov "$pkgdir/var/darwinstreaming/movies/sample_300kbit.mov"
install -m 644 sample_100kbit.mp4 "$pkgdir/var/darwinstreaming/movies/sample_100kbit.mp4"
install -m 644 sample_300kbit.mp4 "$pkgdir/var/darwinstreaming/movies/sample_300kbit.mp4"
install -m 644 sample.mp3 "$pkgdir/var/darwinstreaming/movies/sample.mp3"
install -m 644 sample_50kbit.3gp "$pkgdir/var/darwinstreaming/movies/sample_50kbit.3gp"
install -m 644 sample_h264_100kbit.mp4 "$pkgdir/var/darwinstreaming/movies/sample_h264_100kbit.mp4"
install -m 644 sample_h264_300kbit.mp4 "$pkgdir/var/darwinstreaming/movies/sample_h264_300kbit.mp4"
install -m 644 sample_h264_1mbit.mp4 "$pkgdir/var/darwinstreaming/movies/sample_h264_1mbit.mp4"
install -m 644 StreamingLoadTool/streamingloadtool.conf "$pkgdir/etc/darwinstreaming/loadtool.conf"
cp -f -r ./WebAdmin/WebAdminHtml "$pkgdir/var/darwinstreaming"
mv "$pkgdir/var/darwinstreaming/WebAdminHtml" "$pkgdir/var/darwinstreaming/AdminHtml"
install -m 644 ./WebAdmin/streamingadminserver_Darwin.conf "$pkgdir/etc/darwinstreaming/adminserver.conf"
}
md5sums="ca676691db8417d05121699c0ca3d549 DarwinStreamingSrvr6.0.3-Source.tar
4a55c16f291f60056f38ee687680c769 dss-hh-20080728-1.patch
ee10f86fd27ef2da68782414e30cd226 dss-6.0.3.patch
aeb9cff914e598fa1a96c9e34d9ad535 dss.initd"
sha256sums="7bf75ced3f603f55c6f7601bfecd9f26393ea98be821d24169f2091843706522 DarwinStreamingSrvr6.0.3-Source.tar
ed2c25242c862bade182c1329c84b6003c6d5ed31ef6a00fc7364d224bad137a dss-hh-20080728-1.patch
13741e14f704d3b0db00100c9213ff0bec104403622905e92f370d846bf8f2ea dss-6.0.3.patch
f1e84078fe122a9e0debb3508e959b4f8bd7655bdb0cce25b32b7a477c0d61f0 dss.initd"
sha512sums="f507c8e01ca6f81e1d00a85fb137486d026817015178593c2a5de1dde34f809bc48b1348ea661a94ee0913811d23d0c204d28c29af0c1c9d69bd31eeefd9af85 DarwinStreamingSrvr6.0.3-Source.tar
2706e75e8ffca0096f2cd53b5c0d3a8b5577766fac9bbfa9c03a894c18ea13f01117adca52e6f539233971ccc283c2751d02e8a8cd44427c07b2569e9369bfd0 dss-hh-20080728-1.patch
299e330fd39a263ffebb573b9c5c8b264b203ba9cab108d074f34234491f25d84a929c3bfee045655abdb2564ea8201c0abebbdc36d5ee70399b3684a8c23f50 dss-6.0.3.patch
16755dcd3625f21ac6ab138e1a5b5c8589b9dc46add974065786db764dbd02f734f945aeb6f05e7b3d4cc80c804d2c1c8ac21e6e41264b3b9445687bad9b418c dss.initd"
|