diff options
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/gentoo-vdr-scripts/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/Manifest | 10 | ||||
-rw-r--r-- | media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.3.ebuild | 145 |
3 files changed, 158 insertions, 5 deletions
diff --git a/media-tv/gentoo-vdr-scripts/ChangeLog b/media-tv/gentoo-vdr-scripts/ChangeLog index 64eb01164c67..fc02653c5da3 100644 --- a/media-tv/gentoo-vdr-scripts/ChangeLog +++ b/media-tv/gentoo-vdr-scripts/ChangeLog @@ -1,6 +1,12 @@ # 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.121 2012/10/07 17:20:04 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/gentoo-vdr-scripts/ChangeLog,v 1.122 2012/10/07 19:13:58 hd_brummy Exp $ + +*gentoo-vdr-scripts-0.5.3 (07 Oct 2012) + + 07 Oct 2012; Joerg Bornkessel <hd_brummy@gentoo.org> + +gentoo-vdr-scripts-0.5.3.ebuild: + bump 07 Oct 2012; Joerg Bornkessel <hd_brummy@gentoo.org> -gentoo-vdr-scripts-0.4.7.ebuild, -gentoo-vdr-scripts-0.5.0_rc2.ebuild, diff --git a/media-tv/gentoo-vdr-scripts/Manifest b/media-tv/gentoo-vdr-scripts/Manifest index d1b1f6f2d975..0a7f2601e87d 100644 --- a/media-tv/gentoo-vdr-scripts/Manifest +++ b/media-tv/gentoo-vdr-scripts/Manifest @@ -3,15 +3,17 @@ Hash: SHA256 DIST gentoo-vdr-scripts-0.4.9.tar.bz2 36868 SHA256 ea5475347d7a2a3b42f0ea216a659a7440b3d23119902c390d4457f8e6631677 DIST gentoo-vdr-scripts-0.5.2.tar.bz2 36614 SHA256 5d1ea7ff2993384da3e3d85398b0b4cd311f92a953b2c1bfa7178be27d068fa5 +DIST gentoo-vdr-scripts-0.5.3.tar.bz2 36820 SHA256 d8cc8f7a42be56cb9a45c269ed0c2042bfe9a68826913893336900d7e0190d0d SHA512 23e1d41f681d363c64402e464c93dd907810a6f7d33e27be12e8d6ddd3d11ad21fa769661a16d4a68defc2c59479435d70fca56eb3f247aaa4bd8312b2ef7522 WHIRLPOOL 9078f39771302e5ecb18d734c612c4b4e62e0a748b39cec107bf1a902fb1ac812a3e8491f3bc189893a8061a1874c6d767cd04d4804a7dece638152f7c8e0d34 EBUILD gentoo-vdr-scripts-0.4.9.ebuild 3603 SHA256 e8c8164e616812023581cb6bc23777a1cf137f85c7e300008671987df107f6a5 SHA512 38eb47264f40694dca7a65b8613902333231b17238e795ecd53bac292d12c990d59b06ef078034875e17a7dfcaafe155331c14c5edb5fbfb0279109eeb6db1b7 WHIRLPOOL 1e99c8f7ed2879c0fdf5c13933981945b63bde96279e1c9a101107afe01901a133081ae02b7c736847ad70061cef2294aad766e8aacaf5dc8273f4149fb29410 EBUILD gentoo-vdr-scripts-0.5.2.ebuild 3924 SHA256 15d0b60e914eb9e2bcfdf0b04688868c1c642ae0bda976a6f5387196370abe1d SHA512 eeeeab054484413bd29adb1148b92a121dfc5c2f7c8e01ef979395eb08bd242fe71d1c81d702830b7a2bb326ffb6f2fe27db6ee9230d71ff960721b026fc0729 WHIRLPOOL 845e5078d1cc07e5cc1c3e6478ce1ef196aab76496c32bf47c22d18b85e759f22d472a295e2e94689d7bc2cfb1a680c167bc85f30c6075bc26d70971c78a4eba -MISC ChangeLog 24318 SHA256 28c74492ab563b0827f10c37594ac1a15aa4f55d8634741e11d23850c81d638a SHA512 27ea498b8a5a0b0b5c7aeec0f00fe508dcabd39b93019b94af8b7aec6046939facf5277c41564aa9e94af786b06eecabefdfc1f4e8e100e2eefe4110505f3f04 WHIRLPOOL 1122dfa2479acd13422724bfa1ccdc4ccc296dc1e535e620b30ca8ccff5671b5ae60fe07ef46588ac5b2ab39c752f87ecda8daca6ccb235e9bb3c4ed6a5753c9 +EBUILD gentoo-vdr-scripts-0.5.3.ebuild 3926 SHA256 dc169b8e0b83656ef92a87048a6babf8f0f95880baa1fafb42d6a04f5a8c6266 SHA512 78c996ac9e9e125e7fdd878f9ce08e6e2ba1e2a20ebd1870aa4110977b3368ba41d097b9a25895a6218bfabb0861b0e97f5e5693ac3c31953defce8194c959c5 WHIRLPOOL 3286c1d1e52c2d6ba7a1b3cb2be82475b94afc2ff0778f485e1bca09ae291d32dee92a5709935dcdbc50c5c6df9fc05fb658ab49a9babb09431ebcffab7c996f +MISC ChangeLog 24458 SHA256 66c94c2cbc16cafdb0b416e3c3674ab9e928f72fd9e751da706e51c64c2b2ac4 SHA512 b361d51a825f886b7694627def7497d3b9a6986b4cbb830602ff4e74d77c03dea776fbffc671de1c422de6aef92b7236af4dc4d40ff6a52fcf43a2c86a5bce0b WHIRLPOOL cdfb28875aa1dae28da876be87aeed3137686ae106019743e1a35f64d1b1b57b6a4fc36eddc6101bcab6a61ae0bc0913b9130b2f6c6f9b656377b80792bf5eb6 MISC metadata.xml 366 SHA256 a92d2326d3f734f176d63173dd3a19fa2cd3b9744ee142cd3e4fb0771d08fd29 SHA512 f292ea44800b14564b12cf4f12be80fb822e69586e6ef6e8d4f57aa9bc52c59b57ec85b1bad329b27ac628c186255aa4121250d0026cecaadf7fb2c726951956 WHIRLPOOL 429e33decc3b1c25dae8ba99449f0b40246780649a53038b363505c7db7db25aa0c646a6d5e785556d977d88591488d1a2aca25fb2f26cdb65ea8d8f3a344340 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: added by hd_brummy@gentoo.org -iD8DBQFQcbnLdn07HTTCgIoRCDaPAJ4zzNFqz7GtVX9qILQ+T4h4RnibrACgkGWE -pBOSe1p3aTDNAmw4WCkkalM= -=MnyU +iD8DBQFQcdR7dn07HTTCgIoRCMPoAJ46xjV9svZ6YFc/5OvH2nXegEDSOACdHhVN +f0ZBQDgEZS2Uv2KyttxiZl4= +=lOTz -----END PGP SIGNATURE----- diff --git a/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.3.ebuild b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.3.ebuild new file mode 100644 index 000000000000..dbd891f8eabf --- /dev/null +++ b/media-tv/gentoo-vdr-scripts/gentoo-vdr-scripts-0.5.3.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.3.ebuild,v 1.1 2012/10/07 19:13:58 hd_brummy Exp $ + +EAPI="4" + +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 + + # 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 +} |