diff options
author | 2006-02-13 22:17:08 +0000 | |
---|---|---|
committer | 2006-02-13 22:17:08 +0000 | |
commit | 8047853157e4cd983806b81a78ebf447a62bca08 (patch) | |
tree | a34343941a53990549043d0cd51bcb4299dcfb54 /media-tv | |
parent | modular X dep fix and Bug 106706 (diff) | |
download | historical-8047853157e4cd983806b81a78ebf447a62bca08.tar.gz historical-8047853157e4cd983806b81a78ebf447a62bca08.tar.bz2 historical-8047853157e4cd983806b81a78ebf447a62bca08.zip |
corrected sed-path also in stable ebuild
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'media-tv')
4 files changed, 138 insertions, 7 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index 5755d47b3e54..647cdb5a6c9f 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.42 2006/02/12 21:51:41 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.43 2006/02/13 22:17:08 zzam Exp $ + +*gentoo-vdr-scripts-0.2.2-r1 (13 Feb 2006) + + 13 Feb 2006; Matthias Schwarzott <zzam@gentoo.org> + +gentoo-vdr-scripts-0.2.2-r1.ebuild: + corrected sed-path also in stable ebuild *gentoo-vdr-scripts-0.2.3-r1 (12 Feb 2006) diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index 055ceb627fa8..d2b31d084f1c 100644 --- a/media-tv/gentoo-vdr-scripts/Manifest +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -1,9 +1,9 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 45a78f5ee9d1fc0b64175cb7cfe70594 ChangeLog 8469 -RMD160 52e784b85adfa3a83f30d77cf1dc13fa0e22d5e7 ChangeLog 8469 -SHA256 8175de3661f9065e52926cc6585188fef48a8aa0a13e011bd72650ac8b725834 ChangeLog 8469 +MD5 97ff19054930b78e1b5f92253b48783c ChangeLog 8649 +RMD160 1777a663857c47ec11e8aae9afaffef5a4e6df03 ChangeLog 8649 +SHA256 1d45bb31edb12e5c56fa6518a3b0fd13223d8a42de3aa61e36ac09ef71dd48d4 ChangeLog 8649 MD5 f138047c23306296259dd46c6a272ef3 files/digest-gentoo-vdr-scripts-0.2 70 RMD160 cf00f8968872a3aa00c0e3d239ab6ddb6f2fb57f files/digest-gentoo-vdr-scripts-0.2 70 SHA256 dfc8798967b9aff50db3951e079b434834407de067b8f1e5ec304a506d389b9b files/digest-gentoo-vdr-scripts-0.2 70 @@ -13,6 +13,9 @@ SHA256 fa08b833918d35f0250b626b0532f9ed0d487c248f6690cf9f1091ff6db58719 files/di MD5 fa1f6ce69e8ecaf989509674ffa0ce00 files/digest-gentoo-vdr-scripts-0.2.2 262 RMD160 54252ac78215ccc47966955b3c87474c2cb3feb4 files/digest-gentoo-vdr-scripts-0.2.2 262 SHA256 bd1595a4fe85c584f3c8a10157a4876943a7c98fd966bf28f5ec91bbbb0a527c files/digest-gentoo-vdr-scripts-0.2.2 262 +MD5 fa1f6ce69e8ecaf989509674ffa0ce00 files/digest-gentoo-vdr-scripts-0.2.2-r1 262 +RMD160 54252ac78215ccc47966955b3c87474c2cb3feb4 files/digest-gentoo-vdr-scripts-0.2.2-r1 262 +SHA256 bd1595a4fe85c584f3c8a10157a4876943a7c98fd966bf28f5ec91bbbb0a527c files/digest-gentoo-vdr-scripts-0.2.2-r1 262 MD5 6ab2a9a17ac258d5c9266ec41dde06b8 files/digest-gentoo-vdr-scripts-0.2.3 262 RMD160 49c7fea92af5fc3042a69133d6e6d7bcfc77dcd3 files/digest-gentoo-vdr-scripts-0.2.3 262 SHA256 864fd0be170e089c02da9200bb5299d651a9938d24e3c048d984c61fd3cf57e6 files/digest-gentoo-vdr-scripts-0.2.3 262 @@ -46,6 +49,9 @@ SHA256 363c833d02fb8dbe994b42d8d6a870c8a2539286afc84cf47cdff2dc4c4ede57 files/ge MD5 d207ee6dbb8a33d2ef231bcde114b195 gentoo-vdr-scripts-0.2.1.ebuild 2640 RMD160 e4fe99a3472a661da860a89bbbcbc67c3e6d5009 gentoo-vdr-scripts-0.2.1.ebuild 2640 SHA256 5d45bc91ef77c05bbced572cf811e767a96d59491ce35501617b036d31436489 gentoo-vdr-scripts-0.2.1.ebuild 2640 +MD5 3a6a2096788263b1e322015e28b10239 gentoo-vdr-scripts-0.2.2-r1.ebuild 2828 +RMD160 d2452dd005c5f4f1cb10dd37e4c6783df26ca1e8 gentoo-vdr-scripts-0.2.2-r1.ebuild 2828 +SHA256 cb7448a1ab1f9751d44ed32eb42d6ac84b75cbe1e365a0e2e08bd3f08b7cfe02 gentoo-vdr-scripts-0.2.2-r1.ebuild 2828 MD5 970aebb755d491fd5ed4f4f75dd00ed6 gentoo-vdr-scripts-0.2.2.ebuild 2778 RMD160 72e09e2044cee8eb51ecbf62b8c5321023675d6c gentoo-vdr-scripts-0.2.2.ebuild 2778 SHA256 0426fc76a8d7d6b19fc5d8a62aa2fa3796a37ad2f72f0b0a528746a3870ea1b9 gentoo-vdr-scripts-0.2.2.ebuild 2778 @@ -70,7 +76,7 @@ SHA256 313f79a460281914a7f72cb73e91eec5f5cfec67c79f657743d49036d04951fe metadata -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFD764oZfSl1Kp5KmoRAh/UAJ0amOYcvhbTPH4dqK2lB//Loxed7QCgiytj -Sa3FsG6scrnTtBKFMj+aAzg= -=7c3I +iD8DBQFD8QWjZfSl1Kp5KmoRAleBAJ9KO9hUPGuNKXYS5B+HhaZUGzqfXgCfQ47t +d8WnzlMw5n05fqVzTxaLXIc= +=AJC5 -----END PGP SIGNATURE----- diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2.2-r1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2.2-r1 new file mode 100644 index 000000000000..0501b635fa51 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.2.2-r1 @@ -0,0 +1,3 @@ +MD5 043ce513a60f73074962a3ac78dd343d gentoo-vdr-scripts-0.2.2.tgz 19589 +RMD160 342ec06f153246f219387cec771dfedb48cc9a96 gentoo-vdr-scripts-0.2.2.tgz 19589 +SHA256 21e476b4827db9a3f9323a3a7381228657e4cc068641ad7bc74e6c6043bb10d1 gentoo-vdr-scripts-0.2.2.tgz 19589 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.2-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.2-r1.ebuild new file mode 100644 index 000000000000..f845ea4eee38 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.2.2-r1.ebuild @@ -0,0 +1,116 @@ +# 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.2.2-r1.ebuild,v 1.1 2006/02/13 22:17:08 zzam Exp $ + +inherit eutils + +IUSE="nvram" + +SRC_URI="mirror://gentoo/${P}.tgz" +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}/${P}-config-comment.patch + epatch ${FILESDIR}/${P}-config-comment-irctrl.patch + epatch ${FILESDIR}/${PN}-0.2.3-sed-path.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 +} + |