diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2012-03-14 15:11:00 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2012-03-14 15:11:00 +0000 |
commit | b8de473d2587c1acb28c3e981bf41baacc71e3c4 (patch) | |
tree | 51777a4e454174266160be106646656211f51083 /media-tv | |
parent | Initial import. (diff) | |
download | historical-b8de473d2587c1acb28c3e981bf41baacc71e3c4.tar.gz historical-b8de473d2587c1acb28c3e981bf41baacc71e3c4.tar.bz2 historical-b8de473d2587c1acb28c3e981bf41baacc71e3c4.zip |
bump, minor fixes, new --rcu handling for >=media-video/vdr-1.7.25 in plugin media-plugins/vdr-rcu
Package-Manager: portage-2.1.10.11/cvs/Linux i686
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/ChangeLog | 9 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/Manifest | 10 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.2.ebuild | 145 |
3 files changed, 159 insertions, 5 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index ffb9af5a97d2..b65716bf5538 100644 --- a/media-tv/gentoo-vdr-scripts/ChangeLog +++ b/media-tv/gentoo-vdr-scripts/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-tv/gentoo-vdr-scripts # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.118 2012/02/24 04:43:12 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.119 2012/03/14 15:11:00 hd_brummy Exp $ + +*gentoo-vdr-scripts-0.5.2 (14 Mar 2012) + + 14 Mar 2012; Joerg Bornkessel <hd_brummy@gentoo.org> + +gentoo-vdr-scripts-0.5.2.ebuild: + bump, minor fixes, new --rcu handling for >=media-video/vdr-1.7.25 in plugin + media-plugins/vdr-rcu *gentoo-vdr-scripts-0.5.1 (24 Feb 2012) diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index ac5d44918780..526d2b35f718 100644 --- a/media-tv/gentoo-vdr-scripts/Manifest +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -5,17 +5,19 @@ DIST gentoo-vdr-scripts-0.4.7.tar.bz2 35564 RMD160 381c81f51e05e8736615b2f53f13e DIST gentoo-vdr-scripts-0.4.9.tar.bz2 36868 RMD160 d6efc87d2bced33dd03291ebd0e231993bf2c604 SHA1 7179904a73ad857a6015dd286b544f077f354dcd SHA256 ea5475347d7a2a3b42f0ea216a659a7440b3d23119902c390d4457f8e6631677 DIST gentoo-vdr-scripts-0.5.0_rc2.tar.bz2 36236 RMD160 a97e44e60c33a809bef5385c164af077a591454b SHA1 131a6bc742b1f3433f67d6949c6162be3323c999 SHA256 40c11ac4f8d65cb8626b7c719f6db17f114fbf957c4e50e60cb14e7775d9e537 DIST gentoo-vdr-scripts-0.5.1.tar.bz2 36503 RMD160 c685b8a36ac380d5547c95df7441439c0be9c803 SHA1 a718ccf83c113e7629e5754ae8655317f0a7eeb0 SHA256 42a2821ab1fc83b31974b6e8155a7f8907a196d4ff1cfcf26ff134ffad5daf12 +DIST gentoo-vdr-scripts-0.5.2.tar.bz2 36614 RMD160 9313720786c86c7399a259ce3a9ab94bd7d0a837 SHA1 6a2f73d23704c93854c8838121e7a44de8893eac SHA256 5d1ea7ff2993384da3e3d85398b0b4cd311f92a953b2c1bfa7178be27d068fa5 EBUILD gentoo-vdr-scripts-0.4.7.ebuild 3826 RMD160 847e895f87267bf1c8c988bd3eb807dacecabaa6 SHA1 9e136ed7bda95bd0e990b9f1e9f502af6fdd4bd1 SHA256 1920e8cd78a2787a3682d9056a2b580707cbd91f4196a104eda1a04d86f323ca EBUILD gentoo-vdr-scripts-0.4.9.ebuild 3600 RMD160 a13cbb094bf4119e1b14e35d564932de443dacea SHA1 7af040a791412d89bab11cd05001badc8bbb5de6 SHA256 7f8573744e7f2cadccda59ad88397191396d3f9b4f0ea72d4050f5e320119d87 EBUILD gentoo-vdr-scripts-0.5.0_rc2.ebuild 3606 RMD160 1cda6c23d347a534ba21384d1193d636c2b11e3a SHA1 ec903b35d2e2b11118e26e61ae7b1ebf01b6537a SHA256 7229cce8d95e489d4d75d932edba3353da43b268fabed2297144eacb61adf48e EBUILD gentoo-vdr-scripts-0.5.1.ebuild 3921 RMD160 e0e6803c5e507807bddd2b568c99362d39bb6ebe SHA1 b1207619997e20b7c3008d65d40d7b1c3cb0e10e SHA256 804cfce29fb65d4aef8eb60e4f334d8eeaa9a3720babc445bacdf6b58bcd64b3 -MISC ChangeLog 23592 RMD160 a5f72cd947b35f02db542798e559fc5de1c375c7 SHA1 a4a67e8e1b67ab5dce41b77f8c040a83356e2e88 SHA256 4f60380317a9667eee616d9d1359eada404bdd28ab34fa0b22609174b81288cc +EBUILD gentoo-vdr-scripts-0.5.2.ebuild 3921 RMD160 d44fb47acebfe70dbb5456f04882e7ef67da4935 SHA1 2704e46e697b85a61e63a8e2d65b661feb5481e6 SHA256 9cf07d0bb251348cf5d341a509dd3ddd51648a7732f098e06016c1cbcb3c4392 +MISC ChangeLog 23828 RMD160 d18b23ea84fdfe6dc923e906b2226b9326c67fe9 SHA1 bdd42c329a2434a819b38391783fb75e2b4b6e39 SHA256 d38d9190d42f8ef5d906980f2d116b1c531114603adb624bbd8d6b3f587f5848 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 -iD8DBQFPRxVrdn07HTTCgIoRAu6UAKComSa689HaLj/0eeYysW5IuA6+aACfc7hm -j13N1egDA+85ZTnPf5mZSHA= -=6lIa +iD8DBQFPYLbidn07HTTCgIoRAjlwAJ48WhrzZVRXFf9PNary6+1ftsp+RwCgrJox +SpwY3kLc7hTkhiLAZ2P2XbI= +=yY8S -----END PGP SIGNATURE----- diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.2.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.2.ebuild new file mode 100644 index 000000000000..bd5c28941fe9 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.2.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2012 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.5.2.ebuild,v 1.1 2012/03/14 15:11:00 hd_brummy Exp $ + +EAPI="4" + +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/~hd_brummy/distfiles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="nvram" + +RDEPEND="nvram? ( sys-power/nvram-wakeup ) + app-admin/sudo + sys-process/wait_on_pid" + +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 + + has_version "<${CATEGORY}/${PN}-0.5.0_rc3" + previous_less_than_0_5_0_rc3=$? +} + +VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" + +pkg_postinst() { + if [[ $previous_less_than_0_5_0_rc3 = 0 ]] ; then + + if grep -q /usr/share/vdr/bin/vdrshutdown-really.sh "${ROOT}"/etc/sudoers; then + eerror + eerror "Depricated sudo entry in /etc/sudoers" + eerror + fi + + einfo "new file /etc/sudoers.d/vdr added" + echo + ewarn "IMPORTEND !!!" + ewarn "Please migrate to new sudo handling" + echo + ewarn "Upgrade Info:" + ewarn + ewarn "To keep the shutdown work correctly, remove the line from /etc/sudoers" + ewarn "\t${VDRSUDOENTRY}" + echo + ewarn "or execute this command:" + ewarn "\temerge --config gentoo-vdr-scripts" + echo + fi + + 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 "Removing depricated entry from /etc/sudoers:" + einfo "- ${VDRSUDOENTRY}" + + cd "${T}" + cat >sudoedit-vdr.sh <<-SUDOEDITOR + #!/bin/bash + sed -i \${1} -e '/\/usr\/share\/vdr\/bin\/vdrshutdown-really.sh *$/d' + + 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 +} |