diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2013-03-30 19:33:19 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2013-03-30 19:33:19 +0000 |
commit | 595a380e78e58fe32cbca49a5f31d8402ff787fb (patch) | |
tree | 677d56b8f227660c42eb15203d19883dabfd7c03 /media-tv | |
parent | bump, whitespace (diff) | |
download | devel-595a380e78e58fe32cbca49a5f31d8402ff787fb.tar.gz devel-595a380e78e58fe32cbca49a5f31d8402ff787fb.tar.bz2 devel-595a380e78e58fe32cbca49a5f31d8402ff787fb.zip |
bump, some cleanups, added README.grub2
(Portage version: 2.1.11.50/svn/Linux i686, unsigned Manifest commit)
svn path=/vdr-devel/; revision=1172
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/ChangeLog | 6 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/Manifest | 4 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild | 131 |
3 files changed, 140 insertions, 1 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index 8440a7b..d02f295 100644 --- a/media-tv/gentoo-vdr-scripts/ChangeLog +++ b/media-tv/gentoo-vdr-scripts/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*gentoo-vdr-scripts-2.0.0 (30 Mar 2013) + + 30 Mar 2013; Joerg Bornkessel <hd_brummy@gentoo.org> + +gentoo-vdr-scripts-2.0.0.ebuild: + bump, some cleanups, added README.grub2 + *gentoo-vdr-scripts-2.0.0_rc2 (15 Mar 2013) 15 Mar 2013; Joerg Bornkessel <hd_brummy@gentoo.org> diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index 997fe9a..de5a4e5 100644 --- a/media-tv/gentoo-vdr-scripts/Manifest +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -1,6 +1,8 @@ +DIST gentoo-vdr-scripts-2.0.0.tar.bz2 37438 SHA256 6c2025714546a25632c5b8103b3fa4b7ca6adf963189800c91e99cb23f7b2a79 SHA512 0214b390e1e4fe4f65ceb940a1d092f88fe5263eda3c97ebfa7d2925a772165af3a3c62bfc964e577e374ce723aefccb29082f8219fda918ad17f966ad8ad392 WHIRLPOOL a3de83d95a51622de997d8231b973d6899a2fa21324492e11eb4001ad3c15dee5c6e65f20ee44fd43ebe2974b2b1acf623956d2d44b955bfee799d1a696ace65 DIST gentoo-vdr-scripts-2.0.0_rc1.tar.bz2 36992 SHA256 0ff7bd706cc673971fec81f42afd028dfe32e51ffda7cbfd0454c9f818d9dacd SHA512 19aa5b9064a8d85280f5f2d6d298b0089efe190066b1a2efb15db9143911cee735632c40849c302ce6b24e9c9fe18489a21731d3a072c51a7822ef467b510914 WHIRLPOOL 8c26c8cde5367691c5d0a47a1435bfe89f0bbe74a49924bd0217cc2e093e26b81afee85821c161a3405e2d52e340b6cf4467427c777fdddbe26bd9e7c67453d9 DIST gentoo-vdr-scripts-2.0.0_rc2.tar.bz2 37061 SHA256 3e7475b85b61e38f84c2387f2b946ed3aebc8381254627d26747a3bef02a108a SHA512 28ca0eef022720391d7e06f7d3108d2333ca2a9ec6618c562fbb3550d83c4a60ebd912cb34afe9b326404579886bf75d73729bbaa2a7c09725f6852542ccc07e WHIRLPOOL 6cf2bf7758a304acc90793fa0944cfe172b58f13726cdd975e29154a64d9e67a20504f475c3ecb5890eb18785ec1ca206d1720dea8d7778837636cf3c3cfd449 +EBUILD gentoo-vdr-scripts-2.0.0.ebuild 3654 SHA256 9600655f1a6afe82f70f288329032a856d0b295ef3595d64b3f71640f9acc2ac SHA512 aa42e2f6280b703f0adceb881f2eefbeb87f730625ec8c58b382c7d3512153259b775623fa7b56f4cc609eba7c8eb9a422361f36472190c57d9b0d79fa7d9b85 WHIRLPOOL b2c16d684707579343a96963bf4a9ed76d159888246e08b1e01ff3b7d355fe56795403655263bf2ab5c6c6941e73684a60177312c50f2b666d33f07ac3a4db3e EBUILD gentoo-vdr-scripts-2.0.0_rc1.ebuild 3641 SHA256 6bd2e2bf520fb3fa8f65b003bd63f6f1c6ec29ad73c481c593cd31af4cb3c1b8 SHA512 b28c369e53987a599b88a6353afcd4583c1d3737ffb48dd7c0c314ee0bc51ff9c62c1f5fc570ade7f6beb22d5476421078703760ad8e3a9aade6c1e849155edf WHIRLPOOL 4c5cbff2a09962048664d726bb236c943ae031727eabfcc11439e2dcf4ae560fbb5527015948c53e879260bf602840b639d73ab9c1589a14009a01623ee3658b EBUILD gentoo-vdr-scripts-2.0.0_rc2.ebuild 3641 SHA256 6bd2e2bf520fb3fa8f65b003bd63f6f1c6ec29ad73c481c593cd31af4cb3c1b8 SHA512 b28c369e53987a599b88a6353afcd4583c1d3737ffb48dd7c0c314ee0bc51ff9c62c1f5fc570ade7f6beb22d5476421078703760ad8e3a9aade6c1e849155edf WHIRLPOOL 4c5cbff2a09962048664d726bb236c943ae031727eabfcc11439e2dcf4ae560fbb5527015948c53e879260bf602840b639d73ab9c1589a14009a01623ee3658b -MISC ChangeLog 535 SHA256 e18f1f41d919d3f9e3b71d57f75e1e74475de19cd5d23f16903de02df9a9a72e SHA512 7242fe64987a65d5f9cf69f829f7983922c0ef183f071028804357aa8091c8ea1854a7bba59c1516cdab7536c12fb80b94505b6c67807faf036a679d7e8f436a WHIRLPOOL 8a45788acc838310bcb719c9c39c492d92e49b26a614e1cde55040f3880f6b421e40b59c121798de9bd8dc7620f50829ef7131b9d2969c2d44f91857313e0a1b +MISC ChangeLog 710 SHA256 36989d35acf661b1b934ce65b7ac875fc5b5293ff7cb6cf9a6a5273015ae903b SHA512 7958c71257ff15156d554ec26d3cf01fd386b11b9c314f79c4cbaeace7a63db6b2f0f2394ceae2f5b6d881579836997051c0912ba2164367abff313576c605e1 WHIRLPOOL a199d38d6f7b3a5ea6f29efe7699955149d2401fb25ccaac25b0859df1e2ea16285d7083314d554612de9f1135b0d84a92e612e00ad24a25c2da13ead522de1c MISC metadata.xml 366 SHA256 a92d2326d3f734f176d63173dd3a19fa2cd3b9744ee142cd3e4fb0771d08fd29 SHA512 f292ea44800b14564b12cf4f12be80fb822e69586e6ef6e8d4f57aa9bc52c59b57ec85b1bad329b27ac628c186255aa4121250d0026cecaadf7fb2c726951956 WHIRLPOOL 429e33decc3b1c25dae8ba99449f0b40246780649a53038b363505c7db7db25aa0c646a6d5e785556d977d88591488d1a2aca25fb2f26cdb65ea8d8f3a344340 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild new file mode 100644 index 0000000..1266d6a --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.0.0.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2013 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.3.ebuild,v 1.2 2013/01/20 18:17:34 hd_brummy Exp $ + +EAPI="5" + +inherit eutils user + +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 README.grub2 + + # 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.4" + previous_less_than_0_5_4=$? +} + +VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" + +pkg_postinst() { + if [[ $previous_less_than_0_5_4 = 0 ]] ; then + einfo "\nVDR use now default the --cachedir parameter to store the epg.file" + einfo "Please do not override this with the EPGFILE variable\n" + + einfo "svdrp port 2001 support removed\n" + + einfo "--rcu support removed, use media-plugin/vdr-rcu\n" + 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 +} |