Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add media-tv/tvheadend

  • Loading branch information...
commit 4adcd2e6e72177db04ab3f894bba3f7fae09ed8b 1 parent da5837e
Sune Kloppenborg Jeppesen authored
View
10 media-tv/tvheadend/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-tv/tvheadend
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvheadend/ChangeLog,v 1.1 2012/08/25 12:37:43 yngwin Exp $
+
+*tvheadend-2.12 (25 Aug 2012)
+
+ 25 Aug 2012; Ben de Groot <yngwin@gentoo.org> +files/tvheadend.confd,
+ +files/tvheadend.initd, +metadata.xml, +tvheadend-2.12.ebuild:
+ Initial commit. Ebuild developed by users in bug #288022. Will be proxy-
+ maintained by Leho Kraav.
View
8 media-tv/tvheadend/Manifest
@@ -0,0 +1,8 @@
+AUX tvheadend.confd 355 SHA256 1dd2bed597ccb84e59beae0ec130287f31a4cc2c2e974708462f08d8885b2e5e SHA512 64ae0cca1e1b46a3ecb2fb4a4ba69ad1dd6a72ce57944b44be28768d293f9cca2ab29067335023f384433e8c75d976fbc4610ca574c930b9891a2f1c75ff4c0b WHIRLPOOL 156a098daf40f42098e3c6862ef307784a882a7e80e269525d702fd17a458b479911c41a3017621cf55cbd96d281fad0de1e6e59b6bb0f0d729cf94d2384343a
+AUX tvheadend.initd 375 SHA256 696dee0e0959cd2358b5250f89a9faf8db95172e55658ec8827e7d4999d0114e SHA512 df6b66aef890f18f3fb21900b7015e2bd4f4d876fd68a04198a9424aca0d61dea5febf503609e90d0cc1e8a4fdf139cabcb5b0ab0064423aeb7c366e3607e392 WHIRLPOOL 1dc4bd1bcacc01ff6e72cc01f7305c86dffccecfe189345ab99045521e39ff09af75a39dec702033179a113d3785db5431e706a31684f9a37c2ac47475abe575
+DIST hts-tvheadend_2.12.tar.gz 1475053 SHA256 c2e33384b24356be036bf8e58a026efeed247b001d3674929dc0016bf2b0e11b SHA512 87808a57454b58f458e8e7db6d381e34917064a0f196ed4e91f2ee912575282e121ada72d11ce6c3f8c5e2913dc4510b0b1e6a7d252b702946c033ef35e85c68 WHIRLPOOL 953735a6796972dbf5a7b2f541fc07c7dc2666e4a15f007fdefd92b7445055c227ce8b570088e4fd0810ffebd3271a19af7fd023eb58dfd046b24d45be5053cc
+DIST tvheadend-3.0.tar.gz 1489692 SHA256 cdeccf8a6795d7386bb56389dd0440a1d78168abcf798577e7690618c707e192 SHA512 d7ab961b67aa455f354bbd452101362817e92e29403e3cac9edd48b9fd3f453ae57290543a69e1038b92a34e895b3132aa695d4aab921f3dad66bdd6dbf176a6 WHIRLPOOL 3c8990d7070c343899580b50e10745cd17a8117177722cd4cddd9bc7fee112d9cac9d9f61524aff826aa1f72cb1c1dd733e17ea0fd5105e67e0195a7f24ad0a3
+EBUILD tvheadend-2.12.ebuild 1635 SHA256 08bd73048fdd1fa84c124b68fc470dff9b9fe7973ea5e57cbe0414c7d0904cf8 SHA512 9af8557b1de0aebf9351d14664227448a3b7967797460f13c4a36a11afd1beefb8a9e210f611f04d4fcf085e7a30e94865d9acea4854fe8f14b4cb2f8b24e9ce WHIRLPOOL b7749dff9afcd3b93618568c97e9cfff9564cd5c7567a0ef5ab5a57509dda6ba20409e8e6666ee6a61e6133799c39516f47650194e9c393839c3e1dd2ffbc38b
+EBUILD tvheadend-3.0.ebuild 1711 SHA256 1c6729a213f546cc9e832da2f1d2da8f616dcba3bdb8125c15825d860b594f0f SHA512 c2ce7c2788c45a8d18f8490c161f222fc121ecb020502f97b290d4f8b77d2b0641a2a567a2af80dd71d95240af89a3c2d89e06557cb6a1a0731356c68fb47853 WHIRLPOOL 746c04ecc5ba9ef19195e3346a379511a611dd15763cdf605e4ba798c94721dc56cc200750acb6163fef714bb2ed7a2d568a66a3dbcf7c0f893531495c8590a8
+MISC ChangeLog 480 SHA256 a3199245ca92258cc6413f1253792acddd7e2e8afd662d5c87e1858b0e8c9c0b SHA512 7e139b0aad0e065f00c2ba0308f6b6adec1559e11a47e44ec28ba2dff50dc85d77532b02c0cf3462a1dc1b36422f73a16e6a0478aafdef005858e80179157b25 WHIRLPOOL 136164fe17859956c6460d8ba0d8f07abf7ad522711c86594bab3ab990af185739ea2583cc8fa370734684f48d246604ccb86026622f86ab7aa7c2787c5e120f
+MISC metadata.xml 342 SHA256 ef8886047057cfdbfb5ef59383994f160c693d5a5549326007eeadec6ae37f76 SHA512 032ff78f77fb34faee52b8c6e7e1411f8735e2d2b8bc1fe05e261f2095edb5347710b32bdbe5504882cb9fa83ad0dc7e877aa25b89e8f37f201007bd12f225c2 WHIRLPOOL 89844fbbd7430c55ede4d37fa52703fc701d3af1d6b3e3a616969dcc282955a8d70f7ee8ff74df9351915a68e6d7a1a8be80cf2bbe5658da927cd0713d219fe3
View
14 media-tv/tvheadend/files/tvheadend.confd
@@ -0,0 +1,14 @@
+# /etc/conf.d/tvheadend: config file for /etc/init.d/tvheadend
+# See the tvheadend(1) manpage for more info.
+
+# Run Tvheadend as this user.
+TVHEADEND_USER="tvheadend"
+
+# Run Tvheadend as this group.
+TVHEADEND_GROUP="video"
+
+# Path to Tvheadend config.
+TVHEADEND_CONFIG="/etc/tvheadend"
+
+# Other options you want to pass to Tvheadend.
+TVHEADEND_OPTIONS=""
View
19 media-tv/tvheadend/files/tvheadend.initd
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Tvheadend"
+ start-stop-daemon --start --quiet --exec /usr/bin/tvheadend \
+ -- -f -C -u ${TVHEADEND_USER} -g ${TVHEADEND_GROUP} \
+ -c ${TVHEADEND_CONFIG} ${TVHEADEND_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Tvheadend"
+ start-stop-daemon --stop --quiet --pidfile /var/run/tvheadend.pid
+ eend $?
+}
View
12 media-tv/tvheadend/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>leho@kraav.com</email>
+ <name>Leho Kraav</name>
+ </maintainer>
+ <use>
+ <flag name='xmltv'>Use <pkg>media-tv/xmltv</pkg></flag>
+ </use>
+</pkgmetadata>
View
66 media-tv/tvheadend/tvheadend-2.12.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvheadend/tvheadend-2.12.ebuild,v 1.1 2012/08/25 12:37:43 yngwin Exp $
+
+EAPI=4
+
+inherit eutils user
+
+MY_PN="hts-${PN}"
+
+DESCRIPTION="A combined DVB receiver, Digital Video Recorder and Live TV streaming server"
+HOMEPAGE="http://www.lonelycoder.com/hts/"
+SRC_URI="http://www.lonelycoder.com/debian/dists/hts/main/source/${MY_PN}_${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="avahi xmltv"
+
+DEPEND="virtual/linuxtv-dvb-headers"
+RDEPEND="${DEPEND}
+ avahi? ( net-dns/avahi )
+ xmltv? ( media-tv/xmltv )"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+pkg_setup() {
+ enewuser tvheadend -1 -1 /dev/null video
+}
+
+src_prepare() {
+ # set version number to avoid subversion and git dependencies
+ sed -e 's:\$(shell support/version.sh):${PV}:' \
+ -i Makefile || die "sed failed!"
+
+ # remove stripping
+ sed -e 's:install -s:install:' \
+ -i support/posix.mk || die "sed failed!"
+}
+
+src_configure() {
+ econf $(use_enable avahi) --release
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc ChangeLog README
+ doman man/tvheadend.1
+
+ newinitd "${FILESDIR}/tvheadend.initd" tvheadend
+ newconfd "${FILESDIR}/tvheadend.confd" tvheadend
+
+ dodir /etc/tvheadend
+ fperms 0700 /etc/tvheadend
+ fowners tvheadend:video /etc/tvheadend
+}
+
+pkg_postinst() {
+ elog "The Tvheadend web interface can be reached at:"
+ elog "http://localhost:9981/"
+ elog
+ elog "Make sure that you change the default username"
+ elog "and password via the Configuration / Access control"
+ elog "tab in the web interface."
+}
View
72 media-tv/tvheadend/tvheadend-3.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils vcs-snapshot
+
+DESCRIPTION="Tvheadend is a combined DVB receiver, Digital Video Recorder and Live TV streaming server"
+HOMEPAGE="https://www.lonelycoder.com/redmine/projects/tvheadend/"
+SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="avahi xmltv"
+
+DEPEND="dev-libs/openssl
+ virtual/linuxtv-dvb-headers"
+
+RDEPEND="${DEPEND}
+ xmltv? ( media-tv/xmltv )
+ avahi? ( net-dns/avahi )"
+
+pkg_setup() {
+ enewuser tvheadend -1 -1 /dev/null video
+}
+
+src_prepare() {
+ # set version number to avoid git dependency
+ sed -i \
+ -e 's:revision=`$1/support/getver.sh`:revision=${PV}:' \
+ support/version.sh || die "sed failed!"
+}
+
+src_configure() {
+ econf \
+ --prefix=/usr \
+ --mandir=/usr/share/man/man1 \
+ --datadir=/usr/share/tvheadend \
+ $(use_enable avahi) \
+ --release \
+ || die "Configure failed!"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed!"
+
+ dodoc README
+
+ newinitd "${FILESDIR}/tvheadend.initd" tvheadend
+ newconfd "${FILESDIR}/tvheadend.confd" tvheadend
+
+ dodir /etc/tvheadend
+ fperms 0700 /etc/tvheadend
+ fowners tvheadend:video /etc/tvheadend
+}
+
+pkg_postinst() {
+ elog "To start Tvheadend:"
+ elog "/etc/init.d/tvheadend start"
+ elog
+ elog "To start Tvheadend at boot:"
+ elog "rc-update add tvheadend default"
+ elog
+ elog "The Tvheadend web interface can be reached at:"
+ elog "http://localhost:9981/"
+ elog
+ elog "Make sure that you change the default username"
+ elog "and password via the Configuration / Access control"
+ elog "tab in the web interface."
+}
Please sign in to comment.
Something went wrong with that request. Please try again.