diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-06-12 20:08:55 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-06-12 20:08:55 +0000 |
commit | d4ea0772012a1ac0c051842ad1f25429f9093774 (patch) | |
tree | 6fab17e9fbf23de83a430234c39e7200c12c1ddd /media-tv/gentoo-vdr-scripts | |
parent | New beta release. (diff) | |
download | historical-d4ea0772012a1ac0c051842ad1f25429f9093774.tar.gz historical-d4ea0772012a1ac0c051842ad1f25429f9093774.tar.bz2 historical-d4ea0772012a1ac0c051842ad1f25429f9093774.zip |
Backported correction of missing quotes.
Package-Manager: portage-2.1
Diffstat (limited to 'media-tv/gentoo-vdr-scripts')
8 files changed, 379 insertions, 1 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index fa958a4df7f1..bfd6fa9e12fe 100644 --- a/media-tv/gentoo-vdr-scripts/ChangeLog +++ b/media-tv/gentoo-vdr-scripts/ChangeLog @@ -1,6 +1,21 @@ # 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.54 2006/06/12 17:20:11 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.55 2006/06/12 20:08:55 zzam Exp $ + +*gentoo-vdr-scripts-0.3.4-r1 (12 Jun 2006) +*gentoo-vdr-scripts-0.3.3-r1 (12 Jun 2006) +*gentoo-vdr-scripts-0.3.0-r1 (12 Jun 2006) + + 12 Jun 2006; Matthias Schwarzott <zzam@gentoo.org> + -files/gentoo-vdr-scripts-0.2.2-config-comment.patch, + -files/gentoo-vdr-scripts-0.2.2-config-comment-irctrl.patch, + -files/gentoo-vdr-scripts-0.2.3-chuid-option.patch, + -files/gentoo-vdr-scripts-0.2.3-sed-path.patch, + +files/vdr-bg-quoting.patch, -gentoo-vdr-scripts-0.3.0.ebuild, + +gentoo-vdr-scripts-0.3.0-r1.ebuild, -gentoo-vdr-scripts-0.3.3.ebuild, + +gentoo-vdr-scripts-0.3.3-r1.ebuild, -gentoo-vdr-scripts-0.3.4.ebuild, + +gentoo-vdr-scripts-0.3.4-r1.ebuild: + Backported correction of missing quotes. 12 Jun 2006; Matthias Schwarzott <zzam@gentoo.org> -gentoo-vdr-scripts-0.2.2-r1.ebuild, -gentoo-vdr-scripts-0.2.3-r1.ebuild, diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0-r1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0-r1 new file mode 100644 index 000000000000..45c988ab3421 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0-r1 @@ -0,0 +1,3 @@ +MD5 7e5da230c03c0b1afe867e265b2d6bfd gentoo-vdr-scripts-0.3.0.tar.bz2 20023 +RMD160 89509a697d2ad68c2fdcb5fd3ecef5a8884ebcd0 gentoo-vdr-scripts-0.3.0.tar.bz2 20023 +SHA256 68e7acf476df9b42e398faea2160e5614d8279e586c6b187a740ae6a3dfccff8 gentoo-vdr-scripts-0.3.0.tar.bz2 20023 diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.3-r1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.3-r1 new file mode 100644 index 000000000000..e17d2232d0f0 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.3-r1 @@ -0,0 +1,3 @@ +MD5 b85e038137db321912b9dec641d3c0a8 gentoo-vdr-scripts-0.3.3.tar.bz2 20730 +RMD160 cfcf532fcebe674eaaa115449dd4714462e678db gentoo-vdr-scripts-0.3.3.tar.bz2 20730 +SHA256 0b1cd10c763eeb97cb21953fb990207ea844a5864c1a4b5000de96e17fdeb964 gentoo-vdr-scripts-0.3.3.tar.bz2 20730 diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.4-r1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.4-r1 new file mode 100644 index 000000000000..49f0528e51c7 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.4-r1 @@ -0,0 +1,3 @@ +MD5 83b8cb377161ac37d4986b14d757a05c gentoo-vdr-scripts-0.3.4.tar.bz2 21460 +RMD160 0797e337559b081e95ef77b428d808b78245aaac gentoo-vdr-scripts-0.3.4.tar.bz2 21460 +SHA256 2086f451d8a274d9bd489c0e9d24a37b07db15e8ebb6ca684ab6a24e807407da gentoo-vdr-scripts-0.3.4.tar.bz2 21460 diff --git a/media-tv/gentoo-vdr-scripts/files/vdr-bg-quoting.patch b/media-tv/gentoo-vdr-scripts/files/vdr-bg-quoting.patch new file mode 100644 index 000000000000..d1612013f4d4 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/vdr-bg-quoting.patch @@ -0,0 +1,9 @@ +--- usr/lib/vdr/bin/vdr-bg.sh ++++ usr/lib/vdr/bin/vdr-bg.sh +@@ -4,4 +4,5 @@ + # Start command in background and disconnects outputs. + # Use this instead of echo "..." | at now + +-${@} >/dev/null 2>&1 & ++export EXECUTED_BY_VDR_BG=1 ++"${@}" >/dev/null 2>&1 & diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0-r1.ebuild new file mode 100644 index 000000000000..11dd16c15bc1 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0-r1.ebuild @@ -0,0 +1,115 @@ +# 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.0-r1.ebuild,v 1.1 2006/06/12 20:08:55 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_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/vdr-bg-quoting.patch +} + +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 +} + diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.3-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.3-r1.ebuild new file mode 100644 index 000000000000..f2385d0a4f0e --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.3-r1.ebuild @@ -0,0 +1,115 @@ +# 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.3-r1.ebuild,v 1.1 2006/06/12 20:08:55 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_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/vdr-bg-quoting.patch +} + +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 +} + diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.4-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.4-r1.ebuild new file mode 100644 index 000000000000..2a3884082169 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.4-r1.ebuild @@ -0,0 +1,115 @@ +# 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.4-r1.ebuild,v 1.1 2006/06/12 20:08:55 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_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/vdr-bg-quoting.patch +} + +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 +} + |