summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2008-04-20 19:49:21 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2008-04-20 19:49:21 +0000
commit74d50666848978bd9116643267b563a0f501bbfd (patch)
tree3f67039fab0a3539ecb246484f83a308c472eaa9 /media-tv
parentAdded a patch for gcc 4.3 compatibility as kindly provided by Steve Warren on... (diff)
downloadhistorical-74d50666848978bd9116643267b563a0f501bbfd.tar.gz
historical-74d50666848978bd9116643267b563a0f501bbfd.tar.bz2
historical-74d50666848978bd9116643267b563a0f501bbfd.zip
Version bumped.
Package-Manager: portage-2.1.5_rc5
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/gentoo-vdr-scripts/ChangeLog8
-rw-r--r--media-tv/gentoo-vdr-scripts/Manifest10
-rw-r--r--media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.4.ebuild148
3 files changed, 161 insertions, 5 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog
index ae0685ad88b2..886ebe3c83e5 100644
--- a/media-tv/gentoo-vdr-scripts/ChangeLog
+++ b/media-tv/gentoo-vdr-scripts/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-tv/gentoo-vdr-scripts
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.92 2008/04/19 12:26:21 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.93 2008/04/20 19:49:21 zzam Exp $
+
+*gentoo-vdr-scripts-0.4.4 (20 Apr 2008)
+
+ 20 Apr 2008; Matthias Schwarzott <zzam@gentoo.org>
+ +gentoo-vdr-scripts-0.4.4.ebuild:
+ Version bumped.
19 Apr 2008; Matthias Schwarzott <zzam@gentoo.org>
gentoo-vdr-scripts-0.4.3-r1.ebuild:
diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest
index 8962d4a28ef2..054c229a127e 100644
--- a/media-tv/gentoo-vdr-scripts/Manifest
+++ b/media-tv/gentoo-vdr-scripts/Manifest
@@ -6,17 +6,19 @@ DIST gentoo-vdr-scripts-0.4.0.tar.bz2 27936 RMD160 221063e8296281087b9d0f0031f7a
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
+DIST gentoo-vdr-scripts-0.4.4.tar.bz2 33500 RMD160 ef80dc1d3d6e483434ac1486297ce1a5dfdbec13 SHA1 420a6419ac1f0a06d56544b18b385e43def54c73 SHA256 8ee95144942b9ea5164fac2b068dc8698fc1114f34cc951b1c472c58f33ebf3c
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
EBUILD gentoo-vdr-scripts-0.4.3-r1.ebuild 4136 RMD160 60d198afc143d70505d28399d1055d0be31d1614 SHA1 b3466ac63e27fdbf234eb4945b78a9f18ca63553 SHA256 bd153ddb6c50a686879874ac688b712f3f26105ecfbd15ac6b445d440e170f78
EBUILD gentoo-vdr-scripts-0.4.3.ebuild 4041 RMD160 4f885ef804b6b052899b3924ee53d97b85cecef1 SHA1 e1d0b1d9fa1412ffe7f6782848a1e69533608c04 SHA256 d9f45c4d949dde4b268d766daaae0a6048ec80e33e761359f5ed3da4934625c8
-MISC ChangeLog 18635 RMD160 5343891f8c2c0453a6ec7675a54d40949e5a8256 SHA1 cfd18b30d336464590f71c9521c0e9acfa65144a SHA256 cfa80e343ec20938c7162d0e0d3febc56d3bd3b0cac7892f7711018926219aca
+EBUILD gentoo-vdr-scripts-0.4.4.ebuild 4042 RMD160 84c8fe4bff8c80fd1019177ed0d373f2834d39d0 SHA1 fbfd7b54e047180b9dd7f30b374dd4a6d2b46ea3 SHA256 6c66bdc3bc738a441f70afba31343129c81b7aa2bbebd80eb688ac51ee64ca8e
+MISC ChangeLog 18784 RMD160 07154671b46134f38f75027ef84a8b4467f3854f SHA1 0295fba124c7f3d801d095a376baee9544606b7b SHA256 10d192c9d40eb02e6e349ce56adf0dba02c3ae2a11e627745171eabefd388c20
MISC metadata.xml 257 RMD160 8bee49b98c59996aaaa019fb2c764c08d8004507 SHA1 d2419394e7d5c7463d7dea33e9190ebd57484531 SHA256 0dd45fbbaf1c6173535e371e3ff8a3faa41f3f89123ac9dffe338998599ebe26
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkgJ5PMACgkQt2vP6XvVdOdNwQCg1Bm9StivRBKJgAufIaIqZHsa
-TCgAoOQ0o8qfc3Dm1lkVzOJPPvgywsLU
-=7WbD
+iEYEARECAAYFAkgLnkcACgkQt2vP6XvVdOe5QwCgmTA2PYEnst8H8am1WSxWA0Zw
+R9AAn14i6Zq7wtJYzDhhcLqawApXOcKa
+=W3XG
-----END PGP SIGNATURE-----
diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.4.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.4.ebuild
new file mode 100644
index 000000000000..15fa92fd7bbd
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.4.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.4.ebuild,v 1.1 2008/04/20 19:49:21 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
+}