summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2008-02-23 16:29:53 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2008-02-23 16:29:53 +0000
commit73bc2ffa92ef1f79fba5de96e6b31dcc847b965e (patch)
treeead10dc191c65e6ece193236e7369d4cfa0cf888 /media-tv
parentAdd experimental note (diff)
downloadhistorical-73bc2ffa92ef1f79fba5de96e6b31dcc847b965e.tar.gz
historical-73bc2ffa92ef1f79fba5de96e6b31dcc847b965e.tar.bz2
historical-73bc2ffa92ef1f79fba5de96e6b31dcc847b965e.zip
Version bumped. Most visible change is support of new kernel rtc interface for wakeup and a general cleanup of the wakeup code. Should now also work with baselayout-2/openrc.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/gentoo-vdr-scripts/ChangeLog12
-rw-r--r--media-tv/gentoo-vdr-scripts/Manifest14
-rw-r--r--media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild148
3 files changed, 171 insertions, 3 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog
index 3df4c5ef16d9..3ee432f8654d 100644
--- a/media-tv/gentoo-vdr-scripts/ChangeLog
+++ b/media-tv/gentoo-vdr-scripts/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-tv/gentoo-vdr-scripts
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.88 2007/12/11 23:16:07 zzam Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.89 2008/02/23 16:29:53 zzam Exp $
+
+*gentoo-vdr-scripts-0.4.3 (23 Feb 2008)
+
+ 23 Feb 2008; Matthias Schwarzott <zzam@gentoo.org>
+ +gentoo-vdr-scripts-0.4.3.ebuild:
+ Version bumped. Most visible change is support of new kernel rtc interface
+ for wakeup and a general cleanup of the wakeup code. Should now also work
+ with baselayout-2/openrc.
11 Dec 2007; Matthias Schwarzott <zzam@gentoo.org>
gentoo-vdr-scripts-0.4.2.ebuild:
diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest
index cdfde5d52fa0..6bfbcf904ec3 100644
--- a/media-tv/gentoo-vdr-scripts/Manifest
+++ b/media-tv/gentoo-vdr-scripts/Manifest
@@ -1,8 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
DIST gentoo-vdr-scripts-0.4.0.tar.bz2 27936 RMD160 221063e8296281087b9d0f0031f7a37c405ff72d SHA1 d8f76b4c2977c0dc6d159111519ba0001b922440 SHA256 71ed687787aef0e9d263824505bd1244b6527bda95c0aa2c8ed408be53d2a301
DIST gentoo-vdr-scripts-0.4.1.tar.bz2 30683 RMD160 5dc4a9ef2e2a6ab6f3cea879c1a546a883ac9b7c SHA1 b29088a0746e27941984e6cf26f4e9046fd6c3f5 SHA256 5e5a826936523208994a64d12fd04421eaaf6de474d7bfa3ff1e6f08233c0d1f
DIST gentoo-vdr-scripts-0.4.2.tar.bz2 32110 RMD160 7c8bb70cb5a9e766b91ea57ec17786130448812e SHA1 e242092ae444cac1f835b56690f4449b4bffcca5 SHA256 1c3f10166e1a2012f4274d8b2c348243795603899195a3231b8c7cbf005f9e49
+DIST gentoo-vdr-scripts-0.4.3.tar.bz2 33196 RMD160 29f0b8b1c0fdb6b4ad8d6604ad58dd34cccdf442 SHA1 162b15c6d9d508968040512507ca106f021f3f29 SHA256 68036e2fe63bc40e357b3e9e4a7be991c344875229393a6f2dbe0fc54425348f
EBUILD gentoo-vdr-scripts-0.4.0.ebuild 3710 RMD160 f96264a5f57907e2a1a34f3c2377f034cfb7244c SHA1 d402f1646a969298887b080512932d12de732eee SHA256 9b0e3bac194f3d2ff374c87a4c775dc88a3b1951e5a6947ede226f31580295ff
EBUILD gentoo-vdr-scripts-0.4.1.ebuild 4013 RMD160 a3de3f4b0882cb1f44c159173bd8843c21d44b36 SHA1 3ce643b3c64c4e5253b2e06971fb8e929e1e45e6 SHA256 e20823c197c1fcccb80755a7f7105851a26f9ae80c728b629a48400653896c5b
EBUILD gentoo-vdr-scripts-0.4.2.ebuild 4041 RMD160 8747187d52e696b5bc5b7b039f895f35babd017d SHA1 0090e47e75e0b8933015af44447f5454f1edf6c7 SHA256 bcedd17d4e2df8332f34a49d79d3e1e3ecb4078805f7c4502ec2b0bb34a86a24
-MISC ChangeLog 17798 RMD160 a23bae91f21adcae1549ef518715b2f22862b318 SHA1 8c69fe2b774b3f3e3267dcf3cd52eeab71033091 SHA256 51f1b4d3b3807328793e8b492208694842cdab84ee7bb9d443740c305d001845
+EBUILD gentoo-vdr-scripts-0.4.3.ebuild 4042 RMD160 213b9c3a0b009f19d0bf82fcf9db76de42773f6e SHA1 6f12b8818728e9f61cf84dc6c8cd59263432db22 SHA256 d26c57f8df7a0bf4f009ae1246a2f161333888c04398e81a6a87abe64a1ec098
+MISC ChangeLog 18110 RMD160 ead6caf73ca768619ba4d6293ff6ee0b36598a8b SHA1 7bd75c2292e4bddadde912096a2753e9e59ce235 SHA256 4cca3bf40e202064eba20e2c32ad697d176c8a257ade40ee5077ca02e0e18f33
MISC metadata.xml 257 RMD160 8bee49b98c59996aaaa019fb2c764c08d8004507 SHA1 d2419394e7d5c7463d7dea33e9190ebd57484531 SHA256 0dd45fbbaf1c6173535e371e3ff8a3faa41f3f89123ac9dffe338998599ebe26
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFHwEpCt2vP6XvVdOcRAl/vAJ9CTGLIV4AjQ9KmDOss0tDJgldJygCg5icf
+8h3STSh5WjyUOSmxweWFRH4=
+=eIQs
+-----END PGP SIGNATURE-----
diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild
new file mode 100644
index 000000000000..403548cbb68a
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild,v 1.1 2008/02/23 16:29:53 zzam Exp $
+
+inherit eutils
+
+DESCRIPTION="Scripts necessary for use of vdr as a set-top-box"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nvram"
+
+RDEPEND="nvram? ( sys-power/nvram-wakeup )
+ app-admin/sudo
+ !media-tv/vdr-dvd-scripts
+ !media-tv/vdrplugin-rebuild"
+
+VDR_HOME=/var/vdr
+
+pkg_setup() {
+ enewgroup vdr
+
+ # Add user vdr to these groups:
+ # video - accessing dvb-devices
+ # audio - playing sound when using software-devices
+ # cdrom - playing dvds/audio-cds ...
+ enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom
+}
+
+src_install() {
+ local myopts=""
+ if use nvram ; then
+ myopts="${myopts} NVRAM=1"
+ fi
+
+ emake -s install DESTDIR="${D}" ${myopts} || die "make install failed"
+ dodoc README TODO ChangeLog
+
+ # create necessary directories
+ diropts -ovdr -gvdr
+ keepdir "${VDR_HOME}"
+
+ local kd
+ for kd in shutdown-data merged-config-files dvd-images tmp; do
+ keepdir "${VDR_HOME}/${kd}"
+ done
+}
+
+pkg_preinst() {
+ einfo "Smart updating /etc/conf.d/vdr.plugins"
+ local PLUGINS_NEW=0
+ if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then
+ PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l)
+ fi
+ if [[ ${PLUGINS_NEW} > 0 ]]; then
+ einfo "Using existing /etc/conf.d/vdr.plugins"
+ cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins
+ else
+ einfo "Using PLUGINS from /etc/conf.d/vdr"
+ local PLUGIN
+ for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do
+ echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins
+ done
+ fi
+}
+
+VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
+
+pkg_postinst() {
+ if has_version "<media-tv/gentoo-vdr-scripts-0.3.6"; then
+ ewarn
+ ewarn "A shutdown-file has been changed."
+ ewarn "You really have to execute"
+ ewarn "\temerge --config gentoo-vdr-scripts"
+ ewarn "to keep shutdown working."
+ ewarn
+
+ ebeep 5
+ else
+ elog
+ elog "To make shutdown work add this line to /etc/sudoers"
+ elog "\t${VDRSUDOENTRY}"
+ elog
+ elog "or execute this command:"
+ elog "\temerge --config gentoo-vdr-scripts"
+ elog
+ fi
+
+ if ! use nvram ; then
+ elog "nvram wakeup is now optional."
+ elog "To make use of it enable the use flag nvram for ${PN}"
+ elog "or just emerge nvram-wakeup."
+ fi
+
+ if has_version "<media-tv/gentoo-vdr-scripts-0.3.7"; then
+ einfo
+ einfo "Plugins which should be used are now set via its"
+ einfo "own config-file called /etc/conf.d/vdr.plugins"
+ einfo
+ einfo "Smart updating should have moved all your settings"
+ einfo
+ fi
+
+ if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then
+ ewarn
+ ewarn "You have dvbsplash installed!"
+ ewarn "/etc/init.d/dvbsplash will now be deleted"
+ ewarn "as it causes difficult to debug problems."
+ ewarn
+ rm "${ROOT}/etc/init.d/dvbsplash"
+ fi
+
+ if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] &&
+ grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch
+ then
+ ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch"
+ ewarn "This no longer has any effect, please use"
+ ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd"
+ fi
+}
+
+pkg_config() {
+ if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then
+ einfo "sudoers-entry for vdr already in place."
+ else
+ einfo "Adding this line to /etc/sudoers:"
+ einfo "+ ${VDRSUDOENTRY}"
+
+ cd "${T}"
+ cat >sudoedit-vdr.sh <<-SUDOEDITOR
+ #!/bin/bash
+ echo Commenting out old entry
+ sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/'
+ echo Adding new entry
+ echo "" >> \${1}
+ echo "${VDRSUDOENTRY}" >> \${1}
+ SUDOEDITOR
+ chmod a+x sudoedit-vdr.sh
+
+ VISUAL="${T}"/sudoedit-vdr.sh visudo -f "${ROOT}"/etc/sudoers || die "visudo failed"
+
+ einfo "Edited /etc/sudoers"
+ fi
+}