diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-05-03 20:50:41 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-05-03 20:50:41 +0000 |
commit | 1df41859d55a5b48b8577169bebceaadb196e5d0 (patch) | |
tree | 527013e2a8b3f85037814bf7134a8923cad57d2c /media-tv | |
parent | Update metadata to list media-video@gentoo.org as maintainer. (diff) | |
download | gentoo-2-1df41859d55a5b48b8577169bebceaadb196e5d0.tar.gz gentoo-2-1df41859d55a5b48b8577169bebceaadb196e5d0.tar.bz2 gentoo-2-1df41859d55a5b48b8577169bebceaadb196e5d0.zip |
Version bumped. This contains needed changes for vdr-1.4.0
(Portage version: 2.1_pre10-r2)
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.1 | 3 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.1.ebuild | 108 |
3 files changed, 118 insertions, 1 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index abefd15897e5..27e5e024b995 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-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.50 2006/04/27 23:35:44 marienz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.51 2006/05/03 20:50:41 zzam Exp $ + +*gentoo-vdr-scripts-0.3.1 (03 May 2006) + + 03 May 2006; Matthias Schwarzott <zzam@gentoo.org> + +gentoo-vdr-scripts-0.3.1.ebuild: + Version bumped. This contains needed changes for vdr-1.4.0 27 Apr 2006; Marien Zwart <marienz@gentoo.org> Manifest: Fixing SHA256 digest, pass four diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.1 new file mode 100644 index 000000000000..691695e1eed1 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.1 @@ -0,0 +1,3 @@ +MD5 dc60064a529e68ae8680cf7ee4f1812f gentoo-vdr-scripts-0.3.1.tar.bz2 19798 +RMD160 629c486dadef2e817bb006d540aa5b089919c365 gentoo-vdr-scripts-0.3.1.tar.bz2 19798 +SHA256 e69eb3f52fd60494ffdc5769822a1e41069d63bba498aa36d0e48847133eb435 gentoo-vdr-scripts-0.3.1.tar.bz2 19798 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.1.ebuild new file mode 100644 index 000000000000..e782d21cd152 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.1.ebuild @@ -0,0 +1,108 @@ +# 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.1.ebuild,v 1.1 2006/05/03 20:50:41 zzam Exp $ + +inherit eutils + +IUSE="nvram" + +SRC_URI="mirror://gentoo/${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" + +VDR_HOME=/var/vdr + +pkg_setup() { + enewgroup vdr + if getent passwd vdr >/dev/null 2>&1; then + einfo "Modifying user vdr" + usermod -g vdr -s /bin/bash vdr + local grp + for grp in video audio cdrom; do + gpasswd -a vdr ${grp} >/dev/null + done + else + enewuser vdr -1 /bin/bash ${VDR_HOME} vdr,video,audio,cdrom + fi +} + +src_install() { + make install DESTDIR="${D}" || die "make install failed" + dodoc README TODO ChangeLog + + if use nvram; then + if use x86; then + make install-nvram DESTDIR="${D}" || die "make install-nvram failed" + else + ewarn "nvram-wakeup is not available on this architecture." + fi + fi + + keepdir /var/vdr/shutdown-data + keepdir /var/vdr/merged-config-files + keepdir /var/vdr/video/dvd-images + 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/lib/vdr/bin/vdrshutdown-really.sh" + +pkg_postinst() { + einfo + einfo "To make shutdown work add this line to /etc/sudoers" + einfo " $VDRSUDOENTRY" + einfo + einfo "or execute this command:" + einfo " emerge --config gentoo-vdr-scripts" + einfo + ewarn "The default video directory was moved to /var/vdr/video" + ewarn "If you have your video directory anywhere else, then" + ewarn "change the setting VIDEO in the file /etc/conf.d/vdr." + ewarn + if use x86 && use !nvram; then + ewarn "nvram wakeup is now optional." + ewarn "To make use of it enable the use flag nvram." + fi +} + +pkg_config() { + if grep -q /usr/lib/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 +} + |