diff options
-rw-r--r-- | main/tvheadend/APKBUILD | 12 | ||||
-rw-r--r-- | main/tvheadend/tvheadend.initd | 9 |
2 files changed, 15 insertions, 6 deletions
diff --git a/main/tvheadend/APKBUILD b/main/tvheadend/APKBUILD index 9962498ba6..98012ebecf 100644 --- a/main/tvheadend/APKBUILD +++ b/main/tvheadend/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=tvheadend -pkgver=3.2.18 -pkgrel=2 +pkgver=3.2.34 +pkgrel=0 pkgdesc="TV Streaming server for linux" url="http://www.lonelycoder.com/hts/tvheadend_overview.html" arch="all" @@ -14,11 +14,11 @@ pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" subpackages="$pkgname-doc" -source="https://github.com/downloads/tvheadend/tvheadend/tvheadend-$pkgver.tar.gz +source="https://github.com/tvheadend/tvheadend/archive/3.2patch2.tar.gz tvheadend.initd tvheadend.confd " -_builddir="$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-3.2patch2" prepare() { local i @@ -54,6 +54,6 @@ package() { "$pkgdir/etc/$pkgname" || return 1 } -md5sums="e1cf63cf2ae8b000e77eb313968f6b7b tvheadend-3.2.18.tar.gz -8b7da39441150596bdeb2456f7cf73ed tvheadend.initd +md5sums="501f7c4f3f9e4120f585b06821e27cd4 3.2patch2.tar.gz +c68694d41e7ce0d94913e4332c060618 tvheadend.initd 17cf7dfaf27706409a004c246c1a2c3c tvheadend.confd" diff --git a/main/tvheadend/tvheadend.initd b/main/tvheadend/tvheadend.initd index 9b56313a8b..b72df33788 100644 --- a/main/tvheadend/tvheadend.initd +++ b/main/tvheadend/tvheadend.initd @@ -6,6 +6,9 @@ depend() { start() { ebegin "Starting tvheadend" + + checkconf || return 1 + start-stop-daemon --start \ --exec ${TVHBIN} -- \ -C -f -u ${TVHUSER} \ @@ -21,3 +24,9 @@ stop() { eend $? } +checkconf() { + if [ ! -d "$TVHCONF" ]; then + eerror "config directory does not exist!" + return 1 + fi +} |