From 09bc0f1c7c1dc765de0e317b03370052439c5c23 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Sun, 14 Jun 2009 13:11:11 -0700
Subject: Initial inclusion, script to transcode to Nokia Internet Tablets.

---
 abs/extra-testing/tablet-encode/PKGBUILD | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 abs/extra-testing/tablet-encode/PKGBUILD

diff --git a/abs/extra-testing/tablet-encode/PKGBUILD b/abs/extra-testing/tablet-encode/PKGBUILD
new file mode 100644
index 0000000..0163f45
--- /dev/null
+++ b/abs/extra-testing/tablet-encode/PKGBUILD
@@ -0,0 +1,20 @@
+# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
+# Maintainer: Cecil Watson<knoppmyth@gmail.com>
+
+pkgname=tablet-encode
+pkgver=2.20
+pkgrel=1
+pkgdesc="Transcodes videos for playback on a Nokia Internet Tablet"
+arch=('i686' 'x86_64')
+license=('ARTISTIC')
+depends=(mplayer)
+url="http://mediautils.garage.maemo.org/tablet-encode.html"
+source=(https://garage.maemo.org/frs/download.php/4547/tablet-encode-2.20.tar.gz)
+
+build() {
+  cd ${srcdir}/$pkgname-$pkgver
+  mkdir -p $startdir/pkg/usr/bin
+  mkdir -p $startdir/pkg/usr/share/doc/tablet-encode
+  install -D -m755 tablet-encode $startdir/pkg/usr/bin
+  cp README.txt $startdir/pkg/usr/share/doc/tablet-encode
+}
-- 
cgit v0.12


From f03345c90a69c1ff35a2d022a7d5de811525741a Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Sun, 14 Jun 2009 15:14:12 -0700
Subject: Initial inclusion of mediaserv, an "ORB like daemon" targetted at
 streaming to the Nokia Internet Tablet.  Can be used with any browse.

---
 abs/extra-testing/mediaserv/PKGBUILD               |  23 +++++++++++++++++++++
 .../mediaserv/linhes-mediaserv.tar.bz2             | Bin 0 -> 17195 bytes
 abs/extra-testing/mediaserv/mediaserv.install      |  20 ++++++++++++++++++
 3 files changed, 43 insertions(+)
 create mode 100644 abs/extra-testing/mediaserv/PKGBUILD
 create mode 100644 abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2
 create mode 100644 abs/extra-testing/mediaserv/mediaserv.install

diff --git a/abs/extra-testing/mediaserv/PKGBUILD b/abs/extra-testing/mediaserv/PKGBUILD
new file mode 100644
index 0000000..ca079a9
--- /dev/null
+++ b/abs/extra-testing/mediaserv/PKGBUILD
@@ -0,0 +1,23 @@
+# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
+# Maintainer: Cecil Watson<knoppmyth@gmail.com>
+
+pkgname=mediaserv
+pkgver=0.05
+pkgrel=1
+pkgdesc="On-deman transcoding server for videos, targetting the Nokia Internet Tablets."
+arch=('i686' 'x86_64')
+license=('ARTISTIC')
+depends=('tablet-encode' 'perl-xml-rss')
+install=(mediaserv.install)
+url="http://mediautils.garage.maemo.org/tablet-encode.html"
+source=(https://garage.maemo.org/frs/download.php/2632/mediaserv-0.05.tar.gz linhes-mediaserv.tar.bz2)
+
+build() {
+  cd ${srcdir}/mediaserv
+  mkdir -p $startdir/pkg/usr/bin
+  mkdir -p $startdir/pkg/usr/share/doc/mediaserv
+  mkdir -p $startdir/pkg/myth/mediaserv
+  install -D -m755 mediaserv $startdir/pkg/usr/bin
+  cp README.txt $startdir/pkg/usr/share/doc/mediaserv
+  cp -a ${srcdir}/.mediaserv/* ${pkgdir}/myth/mediaserv
+}
diff --git a/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2 b/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2
new file mode 100644
index 0000000..68ea64a
Binary files /dev/null and b/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2 differ
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
new file mode 100644
index 0000000..1b166e4
--- /dev/null
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -0,0 +1,20 @@
+# arg 1:  the new package version
+post_install() {
+  ln -s /myth/mediaserv /home/mythtv/.mediaserv
+  chown -R mythtv.mythtv /myth/mediaserv
+}
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  post_install $1
+}
+
+# arg 1:  the old package version
+post_remove() {
+	rm -fr /home/mythtv/.mediaserv
+	rm -fr /myth/mediaserv
+}
+
+op=$1
+shift
+$op $*
-- 
cgit v0.12


From 871bc4519c6212bc5acf9d893fd8e9187d4a299c Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Sun, 14 Jun 2009 15:40:59 -0700
Subject: Updated mediaserv config file.

---
 abs/extra-testing/mediaserv/PKGBUILD                |   3 ++-
 .../mediaserv/linhes-mediaserv.tar.bz2              | Bin 17195 -> 17186 bytes
 abs/extra-testing/mediaserv/mediaserv.install       |   2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/abs/extra-testing/mediaserv/PKGBUILD b/abs/extra-testing/mediaserv/PKGBUILD
index ca079a9..f58aaa3 100644
--- a/abs/extra-testing/mediaserv/PKGBUILD
+++ b/abs/extra-testing/mediaserv/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=mediaserv
 pkgver=0.05
-pkgrel=1
+pkgrel=2
 pkgdesc="On-deman transcoding server for videos, targetting the Nokia Internet Tablets."
 arch=('i686' 'x86_64')
 license=('ARTISTIC')
@@ -17,6 +17,7 @@ build() {
   mkdir -p $startdir/pkg/usr/bin
   mkdir -p $startdir/pkg/usr/share/doc/mediaserv
   mkdir -p $startdir/pkg/myth/mediaserv
+  mkdir -p $startdir/pkg/myth/mediaserv/media
   install -D -m755 mediaserv $startdir/pkg/usr/bin
   cp README.txt $startdir/pkg/usr/share/doc/mediaserv
   cp -a ${srcdir}/.mediaserv/* ${pkgdir}/myth/mediaserv
diff --git a/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2 b/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2
index 68ea64a..7630679 100644
Binary files a/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2 and b/abs/extra-testing/mediaserv/linhes-mediaserv.tar.bz2 differ
diff --git a/abs/extra-testing/mediaserv/mediaserv.install b/abs/extra-testing/mediaserv/mediaserv.install
index 1b166e4..6fe6f08 100644
--- a/abs/extra-testing/mediaserv/mediaserv.install
+++ b/abs/extra-testing/mediaserv/mediaserv.install
@@ -1,6 +1,8 @@
 # arg 1:  the new package version
 post_install() {
   ln -s /myth/mediaserv /home/mythtv/.mediaserv
+  ln -s /myth/pretty /myth/mediaserv/media/tv
+  ln -s /myth/video /myth/mediaserv/media/video
   chown -R mythtv.mythtv /myth/mediaserv
 }
 # arg 1:  the new package version
-- 
cgit v0.12

