diff options
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/ChangeLog | 10 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/Manifest | 14 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-9999.ebuild | 122 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/metadata.xml | 12 |
4 files changed, 158 insertions, 0 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog new file mode 100644 index 0000000..2a7e048 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-tv/gentoo-vdr-scripts +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*gentoo-vdr-scripts-9999 (20 Jan 2014) + + 20 Jan 2014; Joerg Bornkessel <hd_brummy@gentoo.org> + +gentoo-vdr-scripts-9999.ebuild, +metadata.xml: + added pmasked -9999.ebuild to check out the git repo; pmasked + diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest new file mode 100644 index 0000000..3d880a2 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +EBUILD gentoo-vdr-scripts-9999.ebuild 3309 SHA256 5b23ef2cf7a6e17d5a949bf94218f7892cd3a00fb8b1f0cd79583b111a684ece SHA512 0bab90978bc87ef15a1eb63d8a4f836898d9bae7f98310cc6431f9a85e537e405518a232194a33ef642bc34c4508af2a77da6adb2184f9978184681506494109 WHIRLPOOL f5100fe4385e2b0596c10f7ccdf2f8d5f528adbd67ef78a0bbb274dccc8cda9ba82c4696182de89a3b5b6d4f1f5f8ff1f18d7e0fcba9b647dd3a513f17657673 +MISC ChangeLog 338 SHA256 5372340c09b4a974639c67f7bf6b8d8a94bbaf2ee0c2bc90d97ae09edec94505 SHA512 63a088dc133708ccd19cfd512c1d5a135a0ee23fb7a23dab9d84a7da01a3e57c748ac9df69a9fcd0e2d1774b67f40a2ca447ad2c9c7355692c017d9ca6fb7227 WHIRLPOOL 5d0e9b26ece5aa42619828962dea2a54c3a577e744eed766fe0b5696364b84e055b06667d80c830d6e520e49b6d69dce9310211e3926c00b314b90605c78b42f +MISC metadata.xml 366 SHA256 a92d2326d3f734f176d63173dd3a19fa2cd3b9744ee142cd3e4fb0771d08fd29 SHA512 f292ea44800b14564b12cf4f12be80fb822e69586e6ef6e8d4f57aa9bc52c59b57ec85b1bad329b27ac628c186255aa4121250d0026cecaadf7fb2c726951956 WHIRLPOOL 429e33decc3b1c25dae8ba99449f0b40246780649a53038b363505c7db7db25aa0c646a6d5e785556d977d88591488d1a2aca25fb2f26cdb65ea8d8f3a344340 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) +Comment: added by hd_brummy@gentoo.org + +iD8DBQFS3HR2dn07HTTCgIoRCNciAJ4ifg87jw7PtLQyIS27d9+kYt2c3wCaAnGZ +CpcXNiFFakChgCm2tKKr8CU= +=PgS2 +-----END PGP SIGNATURE----- diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-9999.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-9999.ebuild new file mode 100644 index 0000000..a3e0a91 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-9999.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2014 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-9999.ebuild,v 1.8 2006/10/13 10:43:30 zzam Exp $ + +EAPI=5 + +inherit eutils git-2 user + +EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoo-vdr-scripts.git" + +DESCRIPTION="Scripts necessary for use of vdr as a set-top-box" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="nvram systemd" + +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() { + use systemd && sed -i "${S}"/Makefile -e "s:VDRSYSTEMD ?= 0:VDRSYSTEMD = 1:" +} + +src_install() { + emake -s install DESTDIR="${D}" || die "make install failed" + nonfatal 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 "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 + + einfo "This snapshot was last changed:" + cd "${S}" + grep Id ChangeLog +} + +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 +} diff --git a/media-tv/gentoo-vdr-scripts/metadata.xml b/media-tv/gentoo-vdr-scripts/metadata.xml new file mode 100644 index 0000000..ecc47f1 --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>media-tv</herd> + <maintainer> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</name> + </maintainer> + <use> + <flag name="nvram">Add support for using nvram-wakeup to set wakeup time in bios</flag> + </use> +</pkgmetadata> |