From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D3C1F138222 for ; Tue, 3 May 2016 16:29:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6D2D21C007; Tue, 3 May 2016 16:29:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 56CCF21C007 for ; Tue, 3 May 2016 16:29:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F296F33BF11 for ; Tue, 3 May 2016 16:29:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A386415F for ; Tue, 3 May 2016 16:29:07 +0000 (UTC) From: "Joerg Bornkessel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joerg Bornkessel" Message-ID: <1462292913.13e644bb36a0b1f3ef0c2091ab648978d18f369d.hd_brummy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/gentoo-vdr-scripts/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-tv/gentoo-vdr-scripts/Manifest media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild X-VCS-Directories: media-tv/gentoo-vdr-scripts/ X-VCS-Committer: hd_brummy X-VCS-Committer-Name: Joerg Bornkessel X-VCS-Revision: 13e644bb36a0b1f3ef0c2091ab648978d18f369d X-VCS-Branch: master Date: Tue, 3 May 2016 16:29:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 607cd7e5-447e-46f0-84b4-0d19fc4ba576 X-Archives-Hash: 39b483a9e071ae6ca51d9648728b7e7c commit: 13e644bb36a0b1f3ef0c2091ab648978d18f369d Author: Joerg Bornkessel gentoo org> AuthorDate: Tue May 3 16:28:33 2016 +0000 Commit: Joerg Bornkessel gentoo org> CommitDate: Tue May 3 16:28:33 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13e644bb eapi6; add support ionice, suggested by T.Loescher Package-Manager: portage-2.2.28 media-tv/gentoo-vdr-scripts/Manifest | 1 + .../gentoo-vdr-scripts-2.7.5.ebuild | 139 +++++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index b057b8e..c8658d7 100644 --- a/media-tv/gentoo-vdr-scripts/Manifest +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -2,4 +2,5 @@ DIST gentoo-vdr-scripts-2.0.0.tar.bz2 37438 SHA256 6c2025714546a25632c5b8103b3fa DIST gentoo-vdr-scripts-2.5.tar.bz2 39893 SHA256 39a3c5d1cf30f1b07a6218b2154835994bbf9d65358e916260bad970a6ca6432 SHA512 bed3db4e3c4f8195d5715d274a32485d067fa2e539ace417c2d73bac1294d46736754be589d5e18b77e0baa1b4d9cd7df5ff8a13db2850d92d2eb992f9b131a6 WHIRLPOOL 5a7626484784ad49624df92daab0997368f885d4d5f6ad732082c2a77c840f6e23f345cf35816890d43493c57fa70c90eb9a4ab785a8d4ead81f6779714138b9 DIST gentoo-vdr-scripts-2.7.2.tar.bz2 48584 SHA256 65de19d3738442a08cdb603ab0e0116e96bbcd8d58b9c9b3f2942e0bcb5365cb SHA512 cb0297c7e78e4c110097d1c08a5f6642d8194d01dd47308f7a41c6d76f7b1675cc612d47a7725eb4f47a393086b034ca09703af0867ae02a36af4be12701f861 WHIRLPOOL 7fe4e106512cca4e26a778320cadf93976897622dac2fd2cf7e21e20e44da27caa69da71f7a779747bc05872e6b90ee7440a7c8fbd2165e6c6a2544804c71da1 DIST gentoo-vdr-scripts-2.7.3.tar.bz2 49156 SHA256 a8fb04ca737080dd4fa4d300243d833f835885c0b4c9ca3f1808997713a626ec SHA512 9d00acaf77bbbf52f4a4d4b8284d94b9d191c354de52ea6f7bba0751be661feec4915cca20be3d24a0471efe4b3f24c5dcc025e3e8b0cc6b2c37f8843b91a520 WHIRLPOOL bd30b36284754d4e5c135c381e4114354b1292f4203d0367622c650252d8ecbcaabe58bc40b4d0ad26b54553f5ee0ff5e2e32e13abdd088bd26b0b41a97ee10c +DIST gentoo-vdr-scripts-2.7.5.tar.bz2 49457 SHA256 650220b1061672e5e021f3b2abaad01af0319833c3142aed7d27fe6cfc16469c SHA512 b79460ae73c1914b0057d44469c0ac3e30feab3fc9fa91af618a0753f5061184110af6f2426d0638861e899fe7ef8ddc749bee631e95dbf52da9d32ae3ae7afe WHIRLPOOL b94f40b82ddcce4e85469590136cf874450871abbb07359eb57ecda959e2ae1e66b662bc32e07e65af13a5c1d9f5fb023a62cf78ac64c31e2540e84b2a23beca DIST gentoo-vdr-scripts-2.7.tar.bz2 46618 SHA256 40f6e50e684b4dde9c026887119e80c9680212bfe41854c6526cc1346c0ae2a2 SHA512 95db4d2632d07cc86394fbc2898050d47175f01cc60b61230ba5363c770ba6ad5c5935987ac6a1131bc575887633ed6c8f6242f7de225fc875d0871123665bc5 WHIRLPOOL 889e2379fa9df6ae9992f6569779d4f485488e84c9c1065c43717ae07d15c601ce9a731e612e6bfaaf7df55d5eb4c7901f16bbf0eff680bc5b4ea25662885790 diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild new file mode 100644 index 0000000..4e8431b --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-2.7.5.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils user + +DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" +HOMEPAGE="https://www.gentoo.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + https://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 + +DOCS=( README* TODO ChangeLog ) + +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 + + eapply_user +} + +src_install() { + default + + # create necessary directories + diropts -ovdr -gvdr + keepdir "${VDR_HOME}" + + local kd + for kd in shutdown-data merged-config-files dvd-images; 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=$? + + has_version "<${CATEGORY}/${PN}-2.6" + previous_less_than_2_6=$? +} + +VDRSUDOENTRY="vdr ALL=NOPASSWD:/usr/share/vdr/bin/vdrshutdown-really.sh" + +pkg_postinst() { + if [[ $previous_less_than_0_5_4 = 0 ]] ; then + elog "\nVDR use now default the --cachedir parameter to store the epg.file" + elog "Please do not override this with the EPGFILE variable\n" + + elog "svdrp port 2001 support removed\n" + + elog "--rcu support removed, use media-plugin/vdr-rcu\n" + fi + + if [[ $previous_less_than_2_6 = 0 ]]; then + elog "${CATEGORY}/${PN} supports now a init script" + elog "to start a X server" + elog "Please refer for detailed info to" + elog "${CATGORY}/${PN} README.x11-setup\n" + fi + + if use nvram; then + elog "nvram wakeup is optional." + elog "To make use of it emerge sys-power/nvram-wakeup.\n" + fi + + 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.\n" + + 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 + + elog "systemd is supported by ${CATEGORY}/${PN}" + elog "Please read for detailed info on this" + elog "${CATEGORY}/${PN} README.systemd" +} + +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 +}