updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / darwin-streaming-server / PKGBUILD
blobc94ccb6e99c298bbf943bab74fdfdf5331df173e
1 # Contributor: Patrick Schneider <Patrick.Schneider@uni-ulm.de>
2 pkgname=darwin-streaming-server
3 pkgver=6.0.3
4 pkgrel=4
5 pkgdesc="Open source version of Apple's QuickTime Streaming Server technology"
6 arch=('i686' 'x86_64')
7 url="http://dss.macosforge.org/"
8 license=('custom:APSL')
9 depends=('perl>=5.2')
10 backup=(etc/streaming/streamingserver.xml
11   etc/streaming/streamingadminserver.conf
12   etc/streaming/streamingadminserver.pem
13   etc/streaming/qtusers
14   etc/streaming/qtgroups
15   etc/streaming/streamingloadtool.conf
16   etc/streaming/relayconfig.xml)
17 source=(http://dss.macosforge.org/downloads/DarwinStreamingSrvr$pkgver-Source.tar
18   dss-$pkgver.patch
19   dss-hh-20080728-1.patch
20   $pkgname.install
21   dss.rc
22   dss-admin.rc)
23 md5sums=('ca676691db8417d05121699c0ca3d549'
24          'd0ed051ff7ec4de57d3787295ed38d28'
25          '4a55c16f291f60056f38ee687680c769'
26          '879235c13695f2a17112ae066d33e7fe'
27          '4926ad6d1c6b2a1c55059d735ed9962b'
28          '113e706f69f1f767a738bda0aa64b2b6')
29 install=$pkgname.install
31 build() {
32   cd "$srcdir/DarwinStreamingSrvr$pkgver-Source"
34   patch -p1 < ../dss-$pkgver.patch
35   patch -p1 < ../dss-hh-20080728-1.patch
37   ./Buildit || return 1
39   install -D -m 644 APPLE_LICENSE "$pkgdir/usr/share/licenses/$pkgname/APPLE_LICENSE"
41   install -D DarwinStreamingServer "$pkgdir/usr/sbin/DarwinStreamingServer"
42   install -D PlaylistBroadcaster.tproj/PlaylistBroadcaster "$pkgdir/usr/bin/PlaylistBroadcaster"
43   install MP3Broadcaster/MP3Broadcaster "$pkgdir/usr/bin/MP3Broadcaster"
44   install qtpasswd.tproj/qtpasswd "$pkgdir/usr/bin/qtpasswd"
45   install StreamingLoadTool/StreamingLoadTool "$pkgdir/usr/bin/StreamingLoadTool"
46   install WebAdmin/src/streamingadminserver.pl "$pkgdir/usr/sbin/streamingadminserver.pl"
48   install -D "$srcdir/dss.rc" "$pkgdir/etc/rc.d/dss"
49   install "$srcdir/dss-admin.rc" "$pkgdir/etc/rc.d/dss-admin"
51   mkdir -p "$pkgdir/usr/sbin/StreamingServerModules"
52   install -D -m 600 relayconfig.xml-Sample "$pkgdir/etc/streaming/relayconfig.xml-Sample"
53   echo "realm Streaming Server" > "$pkgdir/etc/streaming/qtusers"
54   chmod 600 "$pkgdir/etc/streaming/qtusers"
55   echo "admin: " > "$pkgdir/etc/streaming/qtgroups"
56   chmod 600 "$pkgdir/etc/streaming/qtgroups"
57   install -m 644 -D Documentation/readme.txt "$pkgdir/var/streaming/readme.txt"
58   install -m 644 Documentation/3rdPartyAcknowledgements.rtf "$pkgdir/var/streaming/3rdPartyAcknowledgements.rtf"
59   mkdir -p "$pkgdir/var/streaming/logs"
60   mkdir -p -m 775 "$pkgdir/var/streaming/movies"
61   mkdir -p -m 770 "$pkgdir/var/streaming/playlists"
62   install -m 644 sample_100kbit.mov "$pkgdir/var/streaming/movies/sample_100kbit.mov"
63   install -m 644 sample_300kbit.mov "$pkgdir/var/streaming/movies/sample_300kbit.mov"
64   install -m 644 sample_100kbit.mp4 "$pkgdir/var/streaming/movies/sample_100kbit.mp4"
65   install -m 644 sample_300kbit.mp4 "$pkgdir/var/streaming/movies/sample_300kbit.mp4"
66   install -m 644 sample.mp3 "$pkgdir/var/streaming/movies/sample.mp3"
67   install -m 644 sample_50kbit.3gp "$pkgdir/var/streaming/movies/sample_50kbit.3gp"
68   install -m 644 sample_h264_100kbit.mp4 "$pkgdir/var/streaming/movies/sample_h264_100kbit.mp4"
69   install -m 644 sample_h264_300kbit.mp4 "$pkgdir/var/streaming/movies/sample_h264_300kbit.mp4"
70   install -m 644 sample_h264_1mbit.mp4 "$pkgdir/var/streaming/movies/sample_h264_1mbit.mp4"
71   install -m 644 StreamingLoadTool/streamingloadtool.conf "$pkgdir/etc/streaming/streamingloadtool.conf"
72   cp -f -r WebAdmin/WebAdminHtml "$pkgdir/var/streaming"
73   mv "$pkgdir/var/streaming/WebAdminHtml" "$pkgdir/var/streaming/AdminHtml"
74   install -m 644 WebAdmin/streamingadminserver_Darwin.conf "$pkgdir/etc/streaming/streamingadminserver.conf"
77 # vim:set ts=2 sw=2 et: