diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-03-21 21:17:20 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-03-21 21:17:20 +0000 |
commit | d208d04b5b985af87eabb1332ef6dd4f0a0a64bf (patch) | |
tree | ac3c7a42eb35f4a4fbfff08933c62cd213bde624 /media-tv/gentoo-vdr-scripts | |
parent | Fix gcc-3.3 compiling, bug 126358, remove old ebuilds (diff) | |
download | historical-d208d04b5b985af87eabb1332ef6dd4f0a0a64bf.tar.gz historical-d208d04b5b985af87eabb1332ef6dd4f0a0a64bf.tar.bz2 historical-d208d04b5b985af87eabb1332ef6dd4f0a0a64bf.zip |
Version bumped.
Package-Manager: portage-2.1_pre6-r5
Diffstat (limited to 'media-tv/gentoo-vdr-scripts')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/Manifest | 18 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0 | 3 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0.ebuild | 108 |
4 files changed, 130 insertions, 7 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index b68f80ccc920..727a5777b9f8 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.46 2006/03/20 16:03:49 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.47 2006/03/21 21:17:20 zzam Exp $ + +*gentoo-vdr-scripts-0.3.0 (21 Mar 2006) + + 21 Mar 2006; Matthias Schwarzott <zzam@gentoo.org> + +gentoo-vdr-scripts-0.3.0.ebuild: + Version bumped. 20 Mar 2006; Matthias Schwarzott <zzam@gentoo.org> gentoo-vdr-scripts-0.2.3-r1.ebuild: diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index 42681ff9f056..e8d4beca7a49 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 9df4391662967ae5335c6274b22b9681 ChangeLog 9336 -RMD160 d6571d3249d3912632c6969dd65070b6fc61156f ChangeLog 9336 -SHA256 a3a5b26e18a2b8598b99f237afa89691b3d86b926797fa41fbffde324d10ee91 ChangeLog 9336 +MD5 ec97d409450d29079c67804f7b95fc01 ChangeLog 9485 +RMD160 54ee755bb7fd3b82b5d913b5630d1c405842b42d ChangeLog 9485 +SHA256 949b1bcd3a91ad7140451d9d4455268a53a84213d0ff29caf01ce46e7f437f2c ChangeLog 9485 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 @@ -13,6 +13,9 @@ SHA256 864fd0be170e089c02da9200bb5299d651a9938d24e3c048d984c61fd3cf57e6 files/di MD5 0ce9544712897d79a02b8ce7ff7859a7 files/digest-gentoo-vdr-scripts-0.2.4 262 RMD160 470b8c6b7ffd409595905510024a7c8eb3e0c041 files/digest-gentoo-vdr-scripts-0.2.4 262 SHA256 f0c9dcf2fcdc9de00cde11f0f3b8bd05f51af31c80195e8adc1ed8524a54b575 files/digest-gentoo-vdr-scripts-0.2.4 262 +MD5 80aa44359af42df1b2e8414b9f168351 files/digest-gentoo-vdr-scripts-0.3.0 274 +RMD160 086d4980929a03b2f3ef8c89e24742c406be47b5 files/digest-gentoo-vdr-scripts-0.3.0 274 +SHA256 ccb048ac0f420c0d04fa48339d72eefd1795af0620c75903948f380a9666de46 files/digest-gentoo-vdr-scripts-0.3.0 274 MD5 2c0ddf52666cbc805eae30989a76847c files/gentoo-vdr-scripts-0.2.2-config-comment-irctrl.patch 933 RMD160 bc1b4dc47200e3195af0d163dd4ece3cc563bc9a files/gentoo-vdr-scripts-0.2.2-config-comment-irctrl.patch 933 SHA256 432002c03faf23aa4306fe1887c2c491b5d568f191d66d86d344eca34d00992d files/gentoo-vdr-scripts-0.2.2-config-comment-irctrl.patch 933 @@ -34,13 +37,16 @@ SHA256 08592ca39aa0157f9a6668a84627fc8c9ead5b5f72fb36371e9dc26d439500e1 gentoo-v MD5 2258dd86970e500ecc22acb0e4c9b478 gentoo-vdr-scripts-0.2.4.ebuild 2640 RMD160 c09afe78f0f935a2e29243e5603b2e86a236cd89 gentoo-vdr-scripts-0.2.4.ebuild 2640 SHA256 9b4155703a00af75c85f884bb8a8e0150769704c49951f3dd7295cb8648bd913 gentoo-vdr-scripts-0.2.4.ebuild 2640 +MD5 51fa20c231aebee4808afa40a7e85328 gentoo-vdr-scripts-0.3.0.ebuild 2644 +RMD160 6733f3a2e18b0be13453cf9b592e0be52ee07635 gentoo-vdr-scripts-0.3.0.ebuild 2644 +SHA256 848265ccf7054e022be70c781e8a2970fc685e58e9e0898db95b64f80f844351 gentoo-vdr-scripts-0.3.0.ebuild 2644 MD5 a973dfa1638779880ca99f1c1435cac7 metadata.xml 259 RMD160 cc3cadd479ce9fb1e22948ac9f01f5725da33fa6 metadata.xml 259 SHA256 313f79a460281914a7f72cb73e91eec5f5cfec67c79f657743d49036d04951fe metadata.xml 259 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) -iD8DBQFEHtJ5ZfSl1Kp5KmoRAh6DAKDLZItQ5FEEa5rXyMNq9h3zsJ2UvQCeMOYi -2SSFclR1pSCkWdJ97Jz2WFE= -=whLM +iD8DBQFEIG15ZfSl1Kp5KmoRAnQ7AJ9ZOaP/rQ7bXNFfHzdF0gJSH4yIPQCgjFCY +Yf2k4DMp8+4kXVUUSZCao88= +=3hy1 -----END PGP SIGNATURE----- diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0 new file mode 100644 index 000000000000..bfc73a23bc9f --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.0 @@ -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 c3947015ef8522e0e62f124d046c553668e7b5356ae165ee124a955527612402 gentoo-vdr-scripts-0.3.0.tar.bz2 20023 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0.ebuild new file mode 100644 index 000000000000..574735cb9f4b --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.3.0.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.0.ebuild,v 1.1 2006/03/21 21:17:20 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 +} + |