summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mediaserv
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-15 03:29:39 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-15 03:29:39 (GMT)
commit0d311999efc8d9c40436985772a799559c218d04 (patch)
tree33f966a49c47a84c63a81bc974c23a4abab93a47 /abs/extra-testing/mediaserv
parentf27ecfc5aca0f15158b6af7f9c3363d6fa11f421 (diff)
downloadlinhes_pkgbuild-0d311999efc8d9c40436985772a799559c218d04.zip
linhes_pkgbuild-0d311999efc8d9c40436985772a799559c218d04.tar.gz
linhes_pkgbuild-0d311999efc8d9c40436985772a799559c218d04.tar.bz2
mediaserv: add patch stop it from forking.
Diffstat (limited to 'abs/extra-testing/mediaserv')
-rw-r--r--abs/extra-testing/mediaserv/PKGBUILD5
-rw-r--r--abs/extra-testing/mediaserv/mediaserv.no_daemon.patch17
2 files changed, 20 insertions, 2 deletions
diff --git a/abs/extra-testing/mediaserv/PKGBUILD b/abs/extra-testing/mediaserv/PKGBUILD
index f58aaa3..c117dbe 100644
--- a/abs/extra-testing/mediaserv/PKGBUILD
+++ b/abs/extra-testing/mediaserv/PKGBUILD
@@ -3,17 +3,18 @@
pkgname=mediaserv
pkgver=0.05
-pkgrel=2
+pkgrel=3
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)
+source=(https://garage.maemo.org/frs/download.php/2632/mediaserv-0.05.tar.gz linhes-mediaserv.tar.bz2 mediaserv.no_daemon.patch)
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/usr/share/doc/mediaserv
mkdir -p $startdir/pkg/myth/mediaserv
diff --git a/abs/extra-testing/mediaserv/mediaserv.no_daemon.patch b/abs/extra-testing/mediaserv/mediaserv.no_daemon.patch
new file mode 100644
index 0000000..b659354
--- /dev/null
+++ b/abs/extra-testing/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!
+