summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-07-09 16:32:53 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-07-09 16:32:53 +0000
commit5e55d37e53a10ca11193ec28c2c35f8d4cfcb235 (patch)
tree652b82f8b3ce95f41d9c98e4ff939b69504bea73 /media-tv
parentFix build issues on ppc, bug #130175. (diff)
downloadgentoo-2-5e55d37e53a10ca11193ec28c2c35f8d4cfcb235.tar.gz
gentoo-2-5e55d37e53a10ca11193ec28c2c35f8d4cfcb235.tar.bz2
gentoo-2-5e55d37e53a10ca11193ec28c2c35f8d4cfcb235.zip
Bumped version. Main change: The shutdown-script called via sudo was moved, call emerge --config gentoo-vdr-scripts to update.
(Portage version: 2.1.1_pre2-r6)
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/gentoo-vdr-scripts/ChangeLog9
-rw-r--r--media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.63
-rw-r--r--media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.6.ebuild125
3 files changed, 136 insertions, 1 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog
index 66333f45fa0b..c5e14546896b 100644
--- a/media-tv/gentoo-vdr-scripts/ChangeLog
+++ b/media-tv/gentoo-vdr-scripts/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-tv/gentoo-vdr-scripts
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.61 2006/07/06 13:45:33 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.62 2006/07/09 16:32:53 zzam Exp $
+
+*gentoo-vdr-scripts-0.3.6 (09 Jul 2006)
+
+ 09 Jul 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +gentoo-vdr-scripts-0.3.6.ebuild:
+ Bumped version. Main change: The shutdown-script called via sudo was moved,
+ call emerge --config gentoo-vdr-scripts to update.
06 Jul 2006; Matthias Schwarzott <zzam@gentoo.org>
files/gentoo-vdr-scripts-0.3.5-merged-file-permissions.diff:
diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.6 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.6
new file mode 100644
index 000000000000..c40d399dfbec
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.6
@@ -0,0 +1,3 @@
+MD5 2c121326d01b0546bb4b25b7fcd0ba27 gentoo-vdr-scripts-0.3.6.tar.bz2 23246
+RMD160 e0c0ea7db23d77b419bb85cdd7c8e38357bd763e gentoo-vdr-scripts-0.3.6.tar.bz2 23246
+SHA256 60c3889714f188a7412c9528bfcdd7c8a371ac4ec1ce35c27078a7776c96e896 gentoo-vdr-scripts-0.3.6.tar.bz2 23246
diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.6.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.6.ebuild
new file mode 100644
index 000000000000..981163a70db0
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.6.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2006 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.3.6.ebuild,v 1.1 2006/07/09 16:32:53 zzam Exp $
+
+inherit eutils
+
+IUSE="nvram"
+
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2"
+
+DESCRIPTION="scripts necessary for use of vdr as a set-top-box"
+HOMEPAGE="http://www.gentoo.org/"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="nvram? ( x86? ( sys-power/nvram-wakeup ) )
+ app-admin/sudo
+ !<media-tv/vdr-dvd-scripts-0.0.2"
+
+VDR_HOME=/var/vdr
+
+pkg_setup() {
+ enewgroup vdr
+ enewuser vdr -1 /bin/bash ${VDR_HOME} vdr,video,audio,cdrom
+}
+
+src_install() {
+ local myopts=""
+ if use nvram; then
+ if use x86; then
+ myopts="${myopts} NVRAM=1"
+ else
+ ewarn "nvram-wakeup is not available on this architecture."
+ fi
+ fi
+
+ make install DESTDIR="${D}" ${myopts} || die "make install failed"
+ dodoc README TODO ChangeLog
+
+
+ keepdir /var/vdr/shutdown-data
+ keepdir /var/vdr/merged-config-files
+ keepdir /var/vdr/dvd-images
+
+ local MAKE_VIDEO_DIR=1
+ local testd
+ for testd in video0 video00 video.0 video.00; do
+ [[ -d ${ROOT}/var/vdr/${testd} ]] && MAKE_VIDEO_DIR=0
+ done
+ if [[ ${MAKE_VIDEO_DIR} == 1 ]]; then
+ keepdir /var/vdr/video
+ fi
+
+ chown vdr:vdr -R ${D}/var/vdr
+}
+
+pkg_preinst() {
+ local owner
+ local d
+ for d in /etc/vdr /var/vdr; do
+ if [[ -d ${d} ]]; then
+ owner=$(stat ${d} -c "%U")
+ if [[ ${owner} != vdr ]]; then
+ einfo "Changing ownership of ${d}"
+ chown -R vdr:vdr ${d}
+ fi
+ fi
+ done
+}
+
+VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh"
+
+pkg_postinst() {
+ elog
+ elog "To make shutdown work add this line to /etc/sudoers"
+ elog " $VDRSUDOENTRY"
+ elog
+ elog "or execute this command:"
+ elog " emerge --config gentoo-vdr-scripts"
+ elog
+ elog "The default video directory was moved to /var/vdr/video"
+ elog "If you have your video directory anywhere else, then"
+ elog "change the setting VIDEO in the file /etc/conf.d/vdr."
+ elog
+ if use x86 && use !nvram; then
+ elog "nvram wakeup is now optional."
+ elog "To make use of it enable the use flag nvram."
+ fi
+
+ 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 " emerge --config gentoo-vdr-scripts"
+ ewarn "to keep shutdown working."
+ ewarn
+
+ ebeep 5
+ 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 "" >> \${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
+}
+