diff options
author | Ben de Groot <yngwin@gentoo.org> | 2012-08-25 12:37:43 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2012-08-25 12:37:43 +0000 |
commit | 8d6ca8a7cb1da0b0394656ee36f8e62cc8ea7b5e (patch) | |
tree | 6ff66e5b8e2ae4e6b8f22367b7810603aef4aee2 /media-tv/tvheadend | |
parent | Drop faulty -r10, add fixes for crash (bug #432344) and hang (bug #432562) in... (diff) | |
download | historical-8d6ca8a7cb1da0b0394656ee36f8e62cc8ea7b5e.tar.gz historical-8d6ca8a7cb1da0b0394656ee36f8e62cc8ea7b5e.tar.bz2 historical-8d6ca8a7cb1da0b0394656ee36f8e62cc8ea7b5e.zip |
Initial commit. Ebuild developed by users in bug #288022. Will be proxy-maintained by Leho Kraav.
Package-Manager: portage-2.2.0_alpha122/cvs/Linux x86_64
Diffstat (limited to 'media-tv/tvheadend')
-rw-r--r-- | media-tv/tvheadend/ChangeLog | 10 | ||||
-rw-r--r-- | media-tv/tvheadend/Manifest | 6 | ||||
-rw-r--r-- | media-tv/tvheadend/files/tvheadend.confd | 14 | ||||
-rw-r--r-- | media-tv/tvheadend/files/tvheadend.initd | 19 | ||||
-rw-r--r-- | media-tv/tvheadend/metadata.xml | 12 | ||||
-rw-r--r-- | media-tv/tvheadend/tvheadend-2.12.ebuild | 66 |
6 files changed, 127 insertions, 0 deletions
diff --git a/media-tv/tvheadend/ChangeLog b/media-tv/tvheadend/ChangeLog new file mode 100644 index 000000000000..92911f084149 --- /dev/null +++ b/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. diff --git a/media-tv/tvheadend/Manifest b/media-tv/tvheadend/Manifest new file mode 100644 index 000000000000..992735e55829 --- /dev/null +++ b/media-tv/tvheadend/Manifest @@ -0,0 +1,6 @@ +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 +EBUILD tvheadend-2.12.ebuild 1635 SHA256 08bd73048fdd1fa84c124b68fc470dff9b9fe7973ea5e57cbe0414c7d0904cf8 SHA512 9af8557b1de0aebf9351d14664227448a3b7967797460f13c4a36a11afd1beefb8a9e210f611f04d4fcf085e7a30e94865d9acea4854fe8f14b4cb2f8b24e9ce WHIRLPOOL b7749dff9afcd3b93618568c97e9cfff9564cd5c7567a0ef5ab5a57509dda6ba20409e8e6666ee6a61e6133799c39516f47650194e9c393839c3e1dd2ffbc38b +MISC ChangeLog 480 SHA256 a3199245ca92258cc6413f1253792acddd7e2e8afd662d5c87e1858b0e8c9c0b SHA512 7e139b0aad0e065f00c2ba0308f6b6adec1559e11a47e44ec28ba2dff50dc85d77532b02c0cf3462a1dc1b36422f73a16e6a0478aafdef005858e80179157b25 WHIRLPOOL 136164fe17859956c6460d8ba0d8f07abf7ad522711c86594bab3ab990af185739ea2583cc8fa370734684f48d246604ccb86026622f86ab7aa7c2787c5e120f +MISC metadata.xml 342 SHA256 ef8886047057cfdbfb5ef59383994f160c693d5a5549326007eeadec6ae37f76 SHA512 032ff78f77fb34faee52b8c6e7e1411f8735e2d2b8bc1fe05e261f2095edb5347710b32bdbe5504882cb9fa83ad0dc7e877aa25b89e8f37f201007bd12f225c2 WHIRLPOOL 89844fbbd7430c55ede4d37fa52703fc701d3af1d6b3e3a616969dcc282955a8d70f7ee8ff74df9351915a68e6d7a1a8be80cf2bbe5658da927cd0713d219fe3 diff --git a/media-tv/tvheadend/files/tvheadend.confd b/media-tv/tvheadend/files/tvheadend.confd new file mode 100644 index 000000000000..8be4a5dadce9 --- /dev/null +++ b/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="" diff --git a/media-tv/tvheadend/files/tvheadend.initd b/media-tv/tvheadend/files/tvheadend.initd new file mode 100644 index 000000000000..58ded5e5f93c --- /dev/null +++ b/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 $? +} diff --git a/media-tv/tvheadend/metadata.xml b/media-tv/tvheadend/metadata.xml new file mode 100644 index 000000000000..b202becf81ae --- /dev/null +++ b/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> diff --git a/media-tv/tvheadend/tvheadend-2.12.ebuild b/media-tv/tvheadend/tvheadend-2.12.ebuild new file mode 100644 index 000000000000..5f41ea14c417 --- /dev/null +++ b/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." +} |