diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2011-01-23 23:10:33 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2011-01-23 23:10:33 +0000 |
commit | 78ddb0bffa84329430fc796ca0c4bbe694d64cc4 (patch) | |
tree | 132dbe83ec23d17eea15659252d6433bc5020e1a /media-tv | |
parent | There is only one test routine, and that one requires a dbus session bus. Tes... (diff) | |
download | historical-78ddb0bffa84329430fc796ca0c4bbe694d64cc4.tar.gz historical-78ddb0bffa84329430fc796ca0c4bbe694d64cc4.tar.bz2 historical-78ddb0bffa84329430fc796ca0c4bbe694d64cc4.zip |
cleanup old versions
Package-Manager: portage-2.1.9.25/cvs/Linux i686
Diffstat (limited to 'media-tv')
14 files changed, 16 insertions, 1588 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index 377c375c531e..f1603bc8b54a 100644 --- a/media-tv/gentoo-vdr-scripts/ChangeLog +++ b/media-tv/gentoo-vdr-scripts/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for media-tv/gentoo-vdr-scripts -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.109 2010/12/22 10:22:46 hd_brummy Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.110 2011/01/23 23:10:33 hd_brummy Exp $ + + 23 Jan 2011; Joerg Bornkessel <hd_brummy@gentoo.org> + -gentoo-vdr-scripts-0.4.0.ebuild, -gentoo-vdr-scripts-0.4.1.ebuild, + -gentoo-vdr-scripts-0.4.2.ebuild, -gentoo-vdr-scripts-0.4.3.ebuild, + -gentoo-vdr-scripts-0.4.3-r1.ebuild, + -files/gentoo-vdr-scripts-0.4.3-fix-wakeup-reboot.diff, + -gentoo-vdr-scripts-0.4.4.ebuild, -gentoo-vdr-scripts-0.4.5_rc1.ebuild, + -gentoo-vdr-scripts-0.4.5_rc2.ebuild, -gentoo-vdr-scripts-0.4.5.ebuild, + -gentoo-vdr-scripts-0.4.6.ebuild, -gentoo-vdr-scripts-0.4.6-r1.ebuild: + cleanup old versions 22 Dec 2010; Joerg Bornkessel <hd_brummy@gentoo.org> gentoo-vdr-scripts-0.4.7.ebuild: diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index e201f634c930..3ab08ef8c3dc 100644 --- a/media-tv/gentoo-vdr-scripts/Manifest +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -1,40 +1,19 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX gentoo-vdr-scripts-0.4.3-fix-wakeup-reboot.diff 602 RMD160 65225f656eb3c5026502c02a291ad4d433b20401 SHA1 13c51cdc4953cdc751a5ec4a56919eb79e0be7db SHA256 671ac882d7c30b84d7d10d5c54ac2ccc264e6cd0ef2e7621bd3e62fd8a136042 -DIST gentoo-vdr-scripts-0.4.0.tar.bz2 27936 RMD160 221063e8296281087b9d0f0031f7a37c405ff72d SHA1 d8f76b4c2977c0dc6d159111519ba0001b922440 SHA256 71ed687787aef0e9d263824505bd1244b6527bda95c0aa2c8ed408be53d2a301 -DIST gentoo-vdr-scripts-0.4.1.tar.bz2 30683 RMD160 5dc4a9ef2e2a6ab6f3cea879c1a546a883ac9b7c SHA1 b29088a0746e27941984e6cf26f4e9046fd6c3f5 SHA256 5e5a826936523208994a64d12fd04421eaaf6de474d7bfa3ff1e6f08233c0d1f -DIST gentoo-vdr-scripts-0.4.2.tar.bz2 32110 RMD160 7c8bb70cb5a9e766b91ea57ec17786130448812e SHA1 e242092ae444cac1f835b56690f4449b4bffcca5 SHA256 1c3f10166e1a2012f4274d8b2c348243795603899195a3231b8c7cbf005f9e49 -DIST gentoo-vdr-scripts-0.4.3.tar.bz2 33196 RMD160 29f0b8b1c0fdb6b4ad8d6604ad58dd34cccdf442 SHA1 162b15c6d9d508968040512507ca106f021f3f29 SHA256 68036e2fe63bc40e357b3e9e4a7be991c344875229393a6f2dbe0fc54425348f -DIST gentoo-vdr-scripts-0.4.4.tar.bz2 33500 RMD160 ef80dc1d3d6e483434ac1486297ce1a5dfdbec13 SHA1 420a6419ac1f0a06d56544b18b385e43def54c73 SHA256 8ee95144942b9ea5164fac2b068dc8698fc1114f34cc951b1c472c58f33ebf3c -DIST gentoo-vdr-scripts-0.4.5.tar.bz2 35411 RMD160 d7e47effaeccbb527ce4fbc997ee11aa09e1c6e5 SHA1 17c0a631359b977a8be7ff01141465f76c35c144 SHA256 4883c59e0a8cc7625fde24609501baf0e0d265de266a4a3777cd0ad6e60cf406 -DIST gentoo-vdr-scripts-0.4.5_rc1.tar.bz2 35532 RMD160 9f8640734da9c697cbe0df3ebf51f6b96878c487 SHA1 feb2b52c1f25b1f44bd9e1f2045b0d18817c9088 SHA256 662e7c708dd07e1968c104209cae6d35568bc4722825d4f01e942c0029e3e28c -DIST gentoo-vdr-scripts-0.4.5_rc2.tar.bz2 35423 RMD160 96879f5a5047ba18c49652934bba2791c3cdf73f SHA1 6f403716d13fe17ab5a0333dd4b0f277a8edde49 SHA256 9b11ad8c40f572641e8b7051d2184a79c9f2688d8a09464585c1dc80c92cdf21 -DIST gentoo-vdr-scripts-0.4.6.tar.bz2 35351 RMD160 7b6339d0964c3bb5b791b99a2c7beff28c8cdcea SHA1 4712bd8176d11e60631012f23b8fd8ecee810dc0 SHA256 5cba625513156b3a8374fa38147a18373c530419da2cc83ef57063061dba5326 DIST gentoo-vdr-scripts-0.4.7.tar.bz2 35564 RMD160 381c81f51e05e8736615b2f53f13ed4ac29eddc8 SHA1 a7ce08dd43369b2bc1ee8bca0126238c181a5178 SHA256 388181976069ca42dcbe865b7ae19014aa140bb4473f2bc1a085a9fbed79a515 DIST gentoo-vdr-scripts-0.4.8_rc1.tar.bz2 35711 RMD160 87f26229f6397feef7b40f8ae6c0cedc084cabb7 SHA1 904b403007ed91ccf034551cadd296bf49244084 SHA256 e4c444de77543028d00ed6c8a0115201283bf52e88d802f75aa2a161408b1d7c DIST gentoo-vdr-scripts-0.4.8_rc2.tar.bz2 35960 RMD160 b990466d2da4595f9935f3dc2410796aa05f9ea5 SHA1 606bd4e34154036fb1c1c8084ca82dd263cefc9d SHA256 c263fea8c8056becbd462efff6f99a3d3427f6ae6371adac6aaa3e2e00e3f396 -EBUILD gentoo-vdr-scripts-0.4.0.ebuild 3829 RMD160 78a0e6f0706e2e98148bd48f9e7e2ecc15dcfff1 SHA1 c736bd058284e4aa350dbe8a1928fc9ff51f22b2 SHA256 0ba19e54c81eed852953ffd8206671fcf0b37baf3ab3e7d85a51f4a2c008edc4 -EBUILD gentoo-vdr-scripts-0.4.1.ebuild 4132 RMD160 7742c5dc2bcafe63ae0954f498e2319983e2f0d3 SHA1 a985f383fc7405ee0bd18036b8af40d4a265ac9c SHA256 6dcb8558464f0fcba8b14c08a66d5b871c890851954601fc80e3e42f0f1c3498 -EBUILD gentoo-vdr-scripts-0.4.2.ebuild 4160 RMD160 49ff19e8f87f83cd924fd00000f940792ecdd846 SHA1 0e61ffcde9ff744d1ab955980dbdd66056ec492c SHA256 7e0397dee5134cf56b156400c5fb935183661b4cbc9b386bd904ef96b9e52e47 -EBUILD gentoo-vdr-scripts-0.4.3-r1.ebuild 4255 RMD160 ed59150dc900a58a8dab685eb692f78ca1bbccc1 SHA1 e1ee853d3510df6d5225bed1be54a22ab329c896 SHA256 d4cb4470d5d61142cca6e351595b892fc63f084d09bd8625cce9b7922486689f -EBUILD gentoo-vdr-scripts-0.4.3.ebuild 4160 RMD160 7c8f405c8538574a66a0ba01ac5387b437d6aa65 SHA1 7ef58c09f5b824e0422e68c9f852c1e5f26c3990 SHA256 bee752b252028b92aac0da0b0f279b4735eb0d2541a95d3e28bab2ffc79eb2d2 -EBUILD gentoo-vdr-scripts-0.4.4.ebuild 4160 RMD160 554687fb50f3f4d704d8804c29489b987f28346d SHA1 80d3a666d609be4235f162296beee66fb471e749 SHA256 1a12fe3cfb03e8d2cd66630d4bfe024ebc095b04dd4e97c2ebdb2f9b1b62f9bc -EBUILD gentoo-vdr-scripts-0.4.5.ebuild 3474 RMD160 18581f62c0b56c46f9a75324ad7ef5594ea63a52 SHA1 7672c3743e8f7b7a7ff9e9d1b7ea3a16b01c8c1b SHA256 b28163f1f96d38f8db2ef952d4d8febe564d52bc693b0a8e669f4c6e66a28636 -EBUILD gentoo-vdr-scripts-0.4.5_rc1.ebuild 3479 RMD160 f6ad4d93df837464deb881d78c47f03d43f536ff SHA1 0a6209c42218c1bd4705fa7087fbb015028b4fc2 SHA256 7e9a4c5ae3e33bafaa5900169e852ff067e3520e279a417daef91896c03a3a95 -EBUILD gentoo-vdr-scripts-0.4.5_rc2.ebuild 3479 RMD160 52eae58354fe566ec0b28c4d59154b3b6b7b645a SHA1 57a92543084caa9dea51d156b285d36f08b45593 SHA256 3763270693a927aef1e34123f8ff87f39c9f6681b00b21a411531d8026c377da -EBUILD gentoo-vdr-scripts-0.4.6-r1.ebuild 3641 RMD160 7b3a8bce3589daab61046b7fd155734d81458a21 SHA1 0430b0c6979debb73b9560d7671d4220d5f4f8fd SHA256 1b2692b7552583c53d9b846c16dbfe10f79402d004ce4f8ff2c9f9b0d60a4cc4 -EBUILD gentoo-vdr-scripts-0.4.6.ebuild 3474 RMD160 a6933cde8605941ed9da5c04b5bd2e627d49c884 SHA1 299ac3cdbeaad4076b53a2832e22b4ea2d5bf412 SHA256 d4d82629fab55b38a9f3049f419219c1a4708e5228a732e38788ba577e340e46 EBUILD gentoo-vdr-scripts-0.4.7.ebuild 3826 RMD160 847e895f87267bf1c8c988bd3eb807dacecabaa6 SHA1 9e136ed7bda95bd0e990b9f1e9f502af6fdd4bd1 SHA256 1920e8cd78a2787a3682d9056a2b580707cbd91f4196a104eda1a04d86f323ca EBUILD gentoo-vdr-scripts-0.4.8_rc1.ebuild 3652 RMD160 dd29b664fe0f432d4e13f1dd1a3fccf82b455553 SHA1 a3ce9213a6f97e65e0bf47b146f04066378c3354 SHA256 8640d630ef2ecd04849b9826f0491fefce1b6222cf8c6796beea18795f495f61 EBUILD gentoo-vdr-scripts-0.4.8_rc2.ebuild 3652 RMD160 2f17acf1dc0731ad889118ed56f170f9f2c9189b SHA1 5a5482e07ad505bd355f7c0432ae39b46ca45644 SHA256 54c528c0d11528d6415de4c93ba6647954b7f3d4f2c37aef993ebe0593ba7b25 -MISC ChangeLog 21516 RMD160 45393d7d5fd00ec5b5e2104998c1ed66ba2797a1 SHA1 f073412cd4d0f4ae6b346c8351ff4d24417de5ba SHA256 4ecd8e652e629f0f1e1845dda94025d5f8eb4d7ff7c07113f3cc484f48d57469 +MISC ChangeLog 22053 RMD160 417aea6263ec09b0d8678609edbabeed19454bc7 SHA1 7f5d659eff94f6db3642e27d006bbd6cb1c4d1c3 SHA256 4081129b2e96e18af59f65070f06809dbcd7b1190413baa3086806a437a1f5e3 MISC metadata.xml 366 RMD160 2c6ee9297820274dce664dfc05d65b36b5342984 SHA1 6e0c2ac753886340601e6058e5c306e0fbc1c760 SHA256 a92d2326d3f734f176d63173dd3a19fa2cd3b9744ee142cd3e4fb0771d08fd29 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: added by hd_brummy@gentoo.org -iD8DBQFNEdGhdn07HTTCgIoRArvwAKCsEr+dqQvgLfv5jEcywzsnBxayHQCfa2pk -l4u6tct9HpOX1XkzENi1sRw= -=l9SC +iD8DBQFNPLWQdn07HTTCgIoRAptWAJsHTOgBCRCG7WJN97Qs/ne/E1M9+ACePvkF +JuEhFCdKjXr3TZpxqoWDPJM= +=nlVK -----END PGP SIGNATURE----- diff --git a/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.4.3-fix-wakeup-reboot.diff b/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.4.3-fix-wakeup-reboot.diff deleted file mode 100644 index 9ea6957bda53..000000000000 --- a/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.4.3-fix-wakeup-reboot.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff -ru gentoo-vdr-scripts-0.4.3-orig/etc/init.d/wakeup-reboot-halt gentoo-vdr-scripts-0.4.3/etc/init.d/wakeup-reboot-halt ---- gentoo-vdr-scripts-0.4.3-orig/etc/init.d/wakeup-reboot-halt 2008-04-19 14:13:33.322545533 +0200 -+++ gentoo-vdr-scripts-0.4.3/etc/init.d/wakeup-reboot-halt 2008-04-19 14:13:56.422544885 +0200 -@@ -3,7 +3,7 @@ - # Distributed under the terms of the GNU General Public License v2 - # $Id: gentoo-vdr-scripts-0.4.3-fix-wakeup-reboot.diff,v 1.1 2008/04/19 12:23:23 zzam Exp $ - --extra_commands="mark_for_reboot" -+opts="${opts} mark_for_reboot" - - STATEFILE=/force_reboot_shutdown - diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.0.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.0.ebuild deleted file mode 100644 index d22dd4f6da29..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.0.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# Copyright 1999-2008 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.4.0.ebuild,v 1.5 2008/06/15 08:13:58 zmedico Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !<media-tv/vdr-dvd-scripts-0.0.2" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - local myopts="" - if use nvram ; then - myopts="${myopts} NVRAM=1" - fi - - emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - einfo "Smart updating /etc/conf.d/vdr.plugins" - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - einfo "Using existing /etc/conf.d/vdr.plugins" - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Using PLUGINS from /etc/conf.d/vdr" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi - - has_version "<${CATEGORY}/${PN}-0.3.6" - previous_less_than_0_3_6=$? - - has_version "<${CATEGORY}/${PN}-0.3.7" - previous_less_than_0_3_7=$? -} - -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" - -pkg_postinst() { - if [[ $previous_less_than_0_3_6 = 0 ]] ; then - ewarn - ewarn "A shutdown-file has been changed." - ewarn "You really have to execute" - ewarn "\temerge --config gentoo-vdr-scripts" - ewarn "to keep shutdown working." - ewarn - - ebeep 5 - else - elog - elog "To make shutdown work add this line to /etc/sudoers" - elog "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - fi - - if ! use nvram ; then - elog "nvram wakeup is now optional." - elog "To make use of it enable the use flag nvram for ${PN}" - elog "or just emerge nvram-wakeup." - fi - - if [[ $previous_less_than_0_3_7 = 0 ]] ; then - einfo - einfo "Plugins which should be used are now set via its" - einfo "own config-file called /etc/conf.d/vdr.plugins" - einfo - einfo "Smart updating should have moved all your settings" - einfo - fi - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.1.ebuild deleted file mode 100644 index 369eccff8d1e..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2008 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.4.1.ebuild,v 1.2 2008/06/15 08:13:58 zmedico Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - local myopts="" - if use nvram ; then - myopts="${myopts} NVRAM=1" - fi - - emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - einfo "Smart updating /etc/conf.d/vdr.plugins" - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - einfo "Using existing /etc/conf.d/vdr.plugins" - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Using PLUGINS from /etc/conf.d/vdr" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi - - has_version "<${CATEGORY}/${PN}-0.3.6" - previous_less_than_0_3_6=$? - - has_version "<${CATEGORY}/${PN}-0.3.7" - previous_less_than_0_3_7=$? -} - -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" - -pkg_postinst() { - if [[ $previous_less_than_0_3_6 = 0 ]] ; then - ewarn - ewarn "A shutdown-file has been changed." - ewarn "You really have to execute" - ewarn "\temerge --config gentoo-vdr-scripts" - ewarn "to keep shutdown working." - ewarn - - ebeep 5 - else - elog - elog "To make shutdown work add this line to /etc/sudoers" - elog "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - fi - - if ! use nvram ; then - elog "nvram wakeup is now optional." - elog "To make use of it enable the use flag nvram for ${PN}" - elog "or just emerge nvram-wakeup." - fi - - if [[ $previous_less_than_0_3_7 = 0 ]] ; then - einfo - einfo "Plugins which should be used are now set via its" - einfo "own config-file called /etc/conf.d/vdr.plugins" - einfo - einfo "Smart updating should have moved all your settings" - einfo - fi - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.2.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.2.ebuild deleted file mode 100644 index fe595dd44065..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.2.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2008 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.4.2.ebuild,v 1.3 2008/06/15 08:13:58 zmedico Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - local myopts="" - if use nvram ; then - myopts="${myopts} NVRAM=1" - fi - - emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - einfo "Smart updating /etc/conf.d/vdr.plugins" - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - einfo "Using existing /etc/conf.d/vdr.plugins" - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Using PLUGINS from /etc/conf.d/vdr" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi - - has_version "<${CATEGORY}/${PN}-0.3.6" - previous_less_than_0_3_6=$? - - has_version "<${CATEGORY}/${PN}-0.3.7" - previous_less_than_0_3_7=$? -} - -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" - -pkg_postinst() { - if [[ $previous_less_than_0_3_6 = 0 ]] ; then - ewarn - ewarn "A shutdown-file has been changed." - ewarn "You really have to execute" - ewarn "\temerge --config gentoo-vdr-scripts" - ewarn "to keep shutdown working." - ewarn - - ebeep 5 - else - elog - elog "To make shutdown work add this line to /etc/sudoers" - elog "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - fi - - if ! use nvram ; then - elog "nvram wakeup is now optional." - elog "To make use of it enable the use flag nvram for ${PN}" - elog "or just emerge nvram-wakeup." - fi - - if [[ $previous_less_than_0_3_7 = 0 ]] ; then - einfo - einfo "Plugins which should be used are now set via its" - einfo "own config-file called /etc/conf.d/vdr.plugins" - einfo - einfo "Smart updating should have moved all your settings" - einfo - fi - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.3-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3-r1.ebuild deleted file mode 100644 index d4661ecd859d..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3-r1.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2008 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.4.3-r1.ebuild,v 1.3 2008/06/15 08:13:58 zmedico Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}-fix-wakeup-reboot.diff" -} - -src_install() { - local myopts="" - if use nvram ; then - myopts="${myopts} NVRAM=1" - fi - - emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - einfo "Smart updating /etc/conf.d/vdr.plugins" - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - einfo "Using existing /etc/conf.d/vdr.plugins" - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Using PLUGINS from /etc/conf.d/vdr" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi - - has_version "<${CATEGORY}/${PN}-0.3.6" - previous_less_than_0_3_6=$? - - has_version "<${CATEGORY}/${PN}-0.3.7" - previous_less_than_0_3_7=$? -} - -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" - -pkg_postinst() { - if [[ $previous_less_than_0_3_6 = 0 ]] ; then - ewarn - ewarn "A shutdown-file has been changed." - ewarn "You really have to execute" - ewarn "\temerge --config gentoo-vdr-scripts" - ewarn "to keep shutdown working." - ewarn - - ebeep 5 - else - elog - elog "To make shutdown work add this line to /etc/sudoers" - elog "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - fi - - if ! use nvram ; then - elog "nvram wakeup is now optional." - elog "To make use of it enable the use flag nvram for ${PN}" - elog "or just emerge nvram-wakeup." - fi - - if [[ $previous_less_than_0_3_7 = 0 ]] ; then - einfo - einfo "Plugins which should be used are now set via its" - einfo "own config-file called /etc/conf.d/vdr.plugins" - einfo - einfo "Smart updating should have moved all your settings" - einfo - fi - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.3.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild deleted file mode 100644 index 49bc5b8522c2..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.3.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2008 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.4.3.ebuild,v 1.3 2008/06/15 08:13:58 zmedico Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - local myopts="" - if use nvram ; then - myopts="${myopts} NVRAM=1" - fi - - emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - einfo "Smart updating /etc/conf.d/vdr.plugins" - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - einfo "Using existing /etc/conf.d/vdr.plugins" - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Using PLUGINS from /etc/conf.d/vdr" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi - - has_version "<${CATEGORY}/${PN}-0.3.6" - previous_less_than_0_3_6=$? - - has_version "<${CATEGORY}/${PN}-0.3.7" - previous_less_than_0_3_7=$? -} - -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" - -pkg_postinst() { - if [[ $previous_less_than_0_3_6 = 0 ]] ; then - ewarn - ewarn "A shutdown-file has been changed." - ewarn "You really have to execute" - ewarn "\temerge --config gentoo-vdr-scripts" - ewarn "to keep shutdown working." - ewarn - - ebeep 5 - else - elog - elog "To make shutdown work add this line to /etc/sudoers" - elog "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - fi - - if ! use nvram ; then - elog "nvram wakeup is now optional." - elog "To make use of it enable the use flag nvram for ${PN}" - elog "or just emerge nvram-wakeup." - fi - - if [[ $previous_less_than_0_3_7 = 0 ]] ; then - einfo - einfo "Plugins which should be used are now set via its" - einfo "own config-file called /etc/conf.d/vdr.plugins" - einfo - einfo "Smart updating should have moved all your settings" - einfo - fi - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.4.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.4.ebuild deleted file mode 100644 index 63dc6c18c323..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.4.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2008 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.4.4.ebuild,v 1.3 2008/06/15 08:13:58 zmedico Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - local myopts="" - if use nvram ; then - myopts="${myopts} NVRAM=1" - fi - - emake -s install DESTDIR="${D}" ${myopts} || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - einfo "Smart updating /etc/conf.d/vdr.plugins" - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - einfo "Using existing /etc/conf.d/vdr.plugins" - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Using PLUGINS from /etc/conf.d/vdr" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi - - has_version "<${CATEGORY}/${PN}-0.3.6" - previous_less_than_0_3_6=$? - - has_version "<${CATEGORY}/${PN}-0.3.7" - previous_less_than_0_3_7=$? -} - -VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" - -pkg_postinst() { - if [[ $previous_less_than_0_3_6 = 0 ]] ; then - ewarn - ewarn "A shutdown-file has been changed." - ewarn "You really have to execute" - ewarn "\temerge --config gentoo-vdr-scripts" - ewarn "to keep shutdown working." - ewarn - - ebeep 5 - else - elog - elog "To make shutdown work add this line to /etc/sudoers" - elog "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - fi - - if ! use nvram ; then - elog "nvram wakeup is now optional." - elog "To make use of it enable the use flag nvram for ${PN}" - elog "or just emerge nvram-wakeup." - fi - - if [[ $previous_less_than_0_3_7 = 0 ]] ; then - einfo - einfo "Plugins which should be used are now set via its" - einfo "own config-file called /etc/conf.d/vdr.plugins" - einfo - einfo "Smart updating should have moved all your settings" - einfo - fi - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.5.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.5.ebuild deleted file mode 100644 index d970fefdd360..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.5.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2008 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.4.5.ebuild,v 1.2 2008/11/11 12:37:14 zzam Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - emake -s install DESTDIR="${D}" || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi -} - -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 "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - - elog "nvram wakeup is optional." - elog "To make use of it emerge sys-power/nvram-wakeup." - elog - - elog "Plugins which should be used are now set via its" - elog "own config-file called /etc/conf.d/vdr.plugins" - elog "or enabled via the frontend eselect vdr-plugin." - elog - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.5_rc1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.5_rc1.ebuild deleted file mode 100644 index eb7779df756a..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.5_rc1.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2008 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.4.5_rc1.ebuild,v 1.1 2008/08/02 21:03:05 zzam Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - emake -s install DESTDIR="${D}" || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi -} - -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 "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - - elog "nvram wakeup is optional." - elog "To make use of it emerge sys-power/nvram-wakeup." - elog - - elog "Plugins which should be used are now set via its" - elog "own config-file called /etc/conf.d/vdr.plugins" - elog "or enabled via the frontend eselect vdr-plugin." - elog - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.5_rc2.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.5_rc2.ebuild deleted file mode 100644 index 929b72772f9c..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.5_rc2.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2008 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.4.5_rc2.ebuild,v 1.1 2008/08/14 17:56:01 zzam Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - emake -s install DESTDIR="${D}" || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi -} - -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 "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - - elog "nvram wakeup is optional." - elog "To make use of it emerge sys-power/nvram-wakeup." - elog - - elog "Plugins which should be used are now set via its" - elog "own config-file called /etc/conf.d/vdr.plugins" - elog "or enabled via the frontend eselect vdr-plugin." - elog - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.6-r1.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.6-r1.ebuild deleted file mode 100644 index 6aaf3c256110..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.6-r1.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2010 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.4.6-r1.ebuild,v 1.2 2010/01/11 20:21:37 zzam Exp $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - sys-process/wait_on_pid - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_prepare() { - # moved into own package - sed -e '/SUBDIRS =/s# bin # #' -i usr/Makefile - sed -e '/all:/s#compile##' -i Makefile -} - -src_install() { - emake -s install DESTDIR="${D}" || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi -} - -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 "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - - elog "nvram wakeup is optional." - elog "To make use of it emerge sys-power/nvram-wakeup." - elog - - elog "Plugins which should be used are now set via its" - elog "own config-file called /etc/conf.d/vdr.plugins" - elog "or enabled via the frontend eselect vdr-plugin." - elog - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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.4.6.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.6.ebuild deleted file mode 100644 index aaf00b26e619..000000000000 --- a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.4.6.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2009 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.4.6.ebuild,v 1.2 2009/03/03 11:19:42 zzam Exp $ - -inherit eutils - -DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~zzam/distfiles/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86" -IUSE="nvram" - -RDEPEND="nvram? ( sys-power/nvram-wakeup ) - app-admin/sudo - !media-tv/vdr-dvd-scripts - !media-tv/vdrplugin-rebuild" - -VDR_HOME=/var/vdr - -pkg_setup() { - enewgroup vdr - - # Add user vdr to these groups: - # video - accessing dvb-devices - # audio - playing sound when using software-devices - # cdrom - playing dvds/audio-cds ... - enewuser vdr -1 /bin/bash "${VDR_HOME}" vdr,video,audio,cdrom -} - -src_install() { - emake -s install DESTDIR="${D}" || die "make install failed" - dodoc README TODO ChangeLog - - # create necessary directories - diropts -ovdr -gvdr - keepdir "${VDR_HOME}" - - local kd - for kd in shutdown-data merged-config-files dvd-images tmp; do - keepdir "${VDR_HOME}/${kd}" - done -} - -pkg_preinst() { - local PLUGINS_NEW=0 - if [[ -f "${ROOT}"/etc/conf.d/vdr.plugins ]]; then - PLUGINS_NEW=$(grep -v '^#' "${ROOT}"/etc/conf.d/vdr.plugins |grep -v '^$'|wc -l) - fi - if [[ ${PLUGINS_NEW} > 0 ]]; then - cp "${ROOT}"/etc/conf.d/vdr.plugins "${D}"/etc/conf.d/vdr.plugins - else - einfo "Migrating PLUGINS setting from /etc/conf.d/vdr to /etc/conf.d/vdr.plugins" - local PLUGIN - for PLUGIN in $(source "${ROOT}"/etc/conf.d/vdr;echo $PLUGINS); do - echo ${PLUGIN} >> "${D}"/etc/conf.d/vdr.plugins - done - fi -} - -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 "\t${VDRSUDOENTRY}" - elog - elog "or execute this command:" - elog "\temerge --config gentoo-vdr-scripts" - elog - - elog "nvram wakeup is optional." - elog "To make use of it emerge sys-power/nvram-wakeup." - elog - - elog "Plugins which should be used are now set via its" - elog "own config-file called /etc/conf.d/vdr.plugins" - elog "or enabled via the frontend eselect vdr-plugin." - elog - - if [[ -f "${ROOT}/etc/init.d/dvbsplash" ]]; then - ewarn - ewarn "You have dvbsplash installed!" - ewarn "/etc/init.d/dvbsplash will now be deleted" - ewarn "as it causes difficult to debug problems." - ewarn - rm "${ROOT}/etc/init.d/dvbsplash" - fi - - if [[ -f "${ROOT}"/etc/conf.d/vdr.dvdswitch ]] && - grep -q ^DVDSWITCH_BURNSPEED= "${ROOT}"/etc/conf.d/vdr.dvdswitch - then - ewarn "You are setting DVDSWITCH_BURNSPEED in /etc/conf.d/vdr.dvdswitch" - ewarn "This no longer has any effect, please use" - ewarn "VDR_DVDBURNSPEED in /etc/conf.d/vdr.cd-dvd" - 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 Commenting out old entry - sed -i \${1} -e '/\/usr\/lib\/vdr\/bin\/vdrshutdown-really.sh/s/^/#/' - echo Adding new entry - 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 -} |