diff options
author | James Meyer <james.meyer@operamail.com> | 2012-12-01 18:26:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-12-01 18:26:22 (GMT) |
commit | e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37 (patch) | |
tree | bee3fe89f2988dd244e11791755e129aa8c03b14 /abs/not_built/extra/mediaserv | |
parent | 8132c218cfc1f1acb1c6d12154e0d4ca075e77f2 (diff) | |
download | linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.zip linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.gz linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.bz2 |
Mass move of uncompiled packages to abs_not_built.
The will sit here for a bit, and then will be removed completely if no one claims them.
Diffstat (limited to 'abs/not_built/extra/mediaserv')
-rw-r--r-- | abs/not_built/extra/mediaserv/PKGBUILD | 33 | ||||
-rw-r--r-- | abs/not_built/extra/mediaserv/finish | 8 | ||||
-rw-r--r-- | abs/not_built/extra/mediaserv/linhes-mediaserv.tar.bz2 | bin | 0 -> 17322 bytes | |||
-rw-r--r-- | abs/not_built/extra/mediaserv/mediaserv.install | 38 | ||||
-rw-r--r-- | abs/not_built/extra/mediaserv/mediaserv.no_daemon.patch | 17 | ||||
-rw-r--r-- | abs/not_built/extra/mediaserv/run | 8 |
6 files changed, 104 insertions, 0 deletions
diff --git a/abs/not_built/extra/mediaserv/PKGBUILD b/abs/not_built/extra/mediaserv/PKGBUILD new file mode 100644 index 0000000..59eed79 --- /dev/null +++ b/abs/not_built/extra/mediaserv/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $ +# Maintainer: Cecil Watson<knoppmyth@gmail.com> + +pkgname=mediaserv +pkgver=0.05 +pkgrel=20 +pkgdesc="On-demand transcoding server for videos, targetting the Nokia Internet Tablets." +arch=('i686' 'x86_64') +license=('ARTISTIC') +depends=('tablet-encode' 'perl-xml-rss') +backup=(/myth/mediaserv/config) +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 mediaserv.no_daemon.patch run finish) + +build() { + cd ${srcdir}/mediaserv + patch -Np1 -i ${startdir}/src/mediaserv.no_daemon.patch || return 1 + mkdir -p $startdir/pkg/usr/bin + mkdir -p $startdir/pkg/etc/sv/mediaserv/supervise + 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 + install -D -m755 ${srcdir}/run ${srcdir}/finish $startdir/pkg/etc/sv/mediaserv +} +md5sums=('94c300a0e95c55dae42a61f77e4e41fe' + 'e7b6fcc91b73939db350c4854c19e9ee' + '68d25630786e76fa36c9e6bb29821367' + 'd047f0fa5f1d39d864debd8a76f677e2' + 'f2022c1cc8f04959299c97edde06d023') diff --git a/abs/not_built/extra/mediaserv/finish b/abs/not_built/extra/mediaserv/finish new file mode 100644 index 0000000..f424494 --- /dev/null +++ b/abs/not_built/extra/mediaserv/finish @@ -0,0 +1,8 @@ +#!/bin/bash +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Stopping mediaserv" +#wait +exec /usr/bin/killall mediaserv diff --git a/abs/not_built/extra/mediaserv/linhes-mediaserv.tar.bz2 b/abs/not_built/extra/mediaserv/linhes-mediaserv.tar.bz2 Binary files differnew file mode 100644 index 0000000..6397fb7 --- /dev/null +++ b/abs/not_built/extra/mediaserv/linhes-mediaserv.tar.bz2 diff --git a/abs/not_built/extra/mediaserv/mediaserv.install b/abs/not_built/extra/mediaserv/mediaserv.install new file mode 100644 index 0000000..53fe53a --- /dev/null +++ b/abs/not_built/extra/mediaserv/mediaserv.install @@ -0,0 +1,38 @@ +# arg 1: the new package version + + +post_install() { + if [ ! -e $MYTHHOME/.mediaserv ] + then + ln -s /myth/mediaserv $MYTHHOME/.mediaserv + fi + + if [ ! -e /myth/mediaserv/media/tv ] + then + ln -s /myth/pretty /myth/mediaserv/media/tv + fi + if [ ! -e /myth/mediaserv/media/video ] + then + ln -s /myth/video /myth/mediaserv/media/video + fi + chown -R mythtv.mythtv /myth/mediaserv + add_service.sh mediaserv + sv start 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() { + sv stop mediaserv + remove_service.sh mediaserv + rm -fr $MYTHHOME/.mediaserv + rm -fr /myth/mediaserv +} + +op=$1 +shift +$op $* diff --git a/abs/not_built/extra/mediaserv/mediaserv.no_daemon.patch b/abs/not_built/extra/mediaserv/mediaserv.no_daemon.patch new file mode 100644 index 0000000..b659354 --- /dev/null +++ b/abs/not_built/extra/mediaserv/mediaserv.no_daemon.patch @@ -0,0 +1,17 @@ +--- mediaserv/mediaserv.orig 2009-06-15 03:16:53.000000000 +0000 ++++ mediaserv/mediaserv 2009-06-15 03:17:29.000000000 +0000 +@@ -608,10 +608,10 @@ + # daemonize - daemonize the parent/control app + # + sub daemonize { +- my $pid = fork; # Fork off the main process +- defined ($pid) or die "Cannot start daemon: $!"; +- print "Parent daemon running.\n" if $pid; # If we have a PID, the parent daemonized okay +- exit if $pid; # Return control to the user ++# my $pid = fork; # Fork off the main process ++# defined ($pid) or die "Cannot start daemon: $!"; ++ print "Parent daemon running.\n" ; # If we have a PID, the parent daemonized okay ++# exit if $pid; # Return control to the user + + # Now we're a daemonized parent process! + diff --git a/abs/not_built/extra/mediaserv/run b/abs/not_built/extra/mediaserv/run new file mode 100644 index 0000000..fbd1c97 --- /dev/null +++ b/abs/not_built/extra/mediaserv/run @@ -0,0 +1,8 @@ +#!/bin/bash +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting mediaserv" +exec su mythtv -c "/usr/bin/mediaserv" 2>/dev/null +wait |