From 7e7d33a094e8674e715010dcb8067649a2c572b4 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sun, 29 Jun 2014 15:25:29 +0200 Subject: Bump zram-init, sundtek-tv, noscript --- media-tv/sundtek-tv/ChangeLog | 5 + media-tv/sundtek-tv/Manifest | 2 +- .../sundtek-tv/sundtek-tv-140601.005015.ebuild | 155 -------------------- .../sundtek-tv/sundtek-tv-140629.115654.ebuild | 160 +++++++++++++++++++++ 4 files changed, 166 insertions(+), 156 deletions(-) delete mode 100644 media-tv/sundtek-tv/sundtek-tv-140601.005015.ebuild create mode 100644 media-tv/sundtek-tv/sundtek-tv-140629.115654.ebuild (limited to 'media-tv') diff --git a/media-tv/sundtek-tv/ChangeLog b/media-tv/sundtek-tv/ChangeLog index 1b9362bd..7d9a831a 100644 --- a/media-tv/sundtek-tv/ChangeLog +++ b/media-tv/sundtek-tv/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*sundtek-tv-140629.115654 (29 Jun 2014) + + 29 Jun 2014; Martin Väth : + Version bump, remove old ebuild. + *sundtek-tv-140601.005015 (03 Jun 2014) 03 Jun 2014; Martin Väth : diff --git a/media-tv/sundtek-tv/Manifest b/media-tv/sundtek-tv/Manifest index cd1aa416..bceacb5d 100644 --- a/media-tv/sundtek-tv/Manifest +++ b/media-tv/sundtek-tv/Manifest @@ -1 +1 @@ -DIST sundtek_installer_140601.005015.sh 22301516 SHA256 1697dc94e7dcc519b9964a36bf7f97736e9a558bacc24d54a0f0c0f63ecb584f SHA512 022b781e6cf23bcbf9fcef855c3ba46da96daf5df18dc090f2f276dd09fb65967b46d6aee3aea62112a7f08a92d73a065bd03d403224e9ea3c03d35ff1abb926 WHIRLPOOL 7fe0552cd7c5d5c4747cf91dce3d2135035a930bbede304222f9d760c62d5538e83dd9efa66894639b7f193656126817b9d69b0828e02a1dc18d9abc13506761 +DIST sundtek_installer_140629.115654.sh 23214123 SHA256 f579e47f6777494b8bcd7af461b4544ba3bb23f4c34eae8dd9dda69638b3b217 SHA512 a23ff8e7d0e562de702ec8a9af9031014b2778c3619994ad192e8e1ece91e51f7fff30658203a5c2bb007ebb3556cc88899cb50ac4128ad0cb219d315c050674 WHIRLPOOL d4bf4c79c452c64f6028a7fe06ef57a589936c35380152544df706ce4204cc3387c69876dad4cced716c9da413f9a0bdf31095b8b3a6b5374ce2ef382462b268 diff --git a/media-tv/sundtek-tv/sundtek-tv-140601.005015.ebuild b/media-tv/sundtek-tv/sundtek-tv-140601.005015.ebuild deleted file mode 100644 index 76556af7..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-140601.005015.ebuild +++ /dev/null @@ -1,155 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -inherit eutils linux-info pax-utils readme.gentoo systemd unpacker - -# The following variable is only for testing purposes. Leave it to "false" -keep_original=false - -DESCRIPTION="Sundtek MediaTV Pro III Drivers" -HOMEPAGE="http://support.sundtek.com/index.php/topic,2.0.html" -# Current version number can be found in http://sundtek.de/media/latest.phtml -SRC_URI="http://www.sundtek.de/media/sundtek_installer_${PV}.sh" - -RESTRICT="mirror strip" -LICENSE="sundtek" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="pax_kernel" -RDEPEND="" -DEPEND="pax_kernel? ( || ( sys-apps/elfix sys-apps/paxctl ) )" - -DISABLE_AUTOFORMATTING="true" -DOC_CONTENTS="To initialize sundtek drivers during booting call - rc-update add sundtek default # for openrc - systemctl enable sundtek-local.service # for systemd -You will probably need to adapt sundtek-local.service to your defaults -" - -QA_PREBUILT="opt/bin/* opt/bin/*/* usr/$(get_libdir)/*" - -src_unpack() { - local subdir a - a="${S}/archives" - mkdir -- "${S}" # "|| die" no necessary: test happens in cd - mkdir -- "${a}" - cd -- "${a}" || die "cannot cd to ${a}" - bash -- "${DISTDIR}/${A}" -e || die "extracting failed" - cd -- "${S}" || die - if use amd64 - then subdir=64bit - elif use x86 - then subdir=32bit - else die "This ebuild does not support the architecture. -Download from Sundtek directly, write your own ebuild, or send me patches." - fi - unpacker "${a}/${subdir}/installer.tar.gz" || die - rm -rf -- "${a}" || die "cannot remove ${a}" - cp -- \ - "${FILESDIR}"/sundtek.initd \ - "${FILESDIR}"/sundtek-local.service \ - "${FILESDIR}"/_mediaclient \ - "${FILESDIR}"/mediaclient.video \ - "${S}" || die -} - -my_movlibdir() { - local i - for i in bin/* - do if test -d "${i}" - then mv "${i}" "${2}" || die - fi - done -} - -src_prepare() { - local mybinprefix mylibdir myinclude myinclsundtek mysystemd \ - myudev mypkgconfig mylirc myusr - if ${keep_original} - then mylibdir="opt/lib" - myinclude="opt/include" - myusr= - else mylibdir="usr/$(get_libdir)" - myinclude="usr/include" - myusr="usr" - fi - mybinprefix="opt" - mypkgconfig="usr/share/pkgconfig" - myinclsundtek="${myinclude}/sundtek" - myudev="lib/udev" - mylirc="etc/lirc" - umask 022 - if use pax_kernel - then pax-mark em opt/bin/mediasrv - pax-mark e opt/bin/mediaclient - fi - mv opt 1 || die - mkdir -p ${myusr} "${mybinprefix}" lib "${mypkgconfig}" "${mylirc}" \ - 1/lib/pm-utils || die - mv 1/bin "${mybinprefix}" || die - ${keep_original} || mv 1/lib/pm 1/lib/pm-utils/sleep.d || die - mv 1/lib "${mylibdir}" || die - mv 1/include "${myinclude}" || die - sed -e "s#/opt/lib#${EPREFIX}/${mylibdir}#" \ - -e "s#/opt/include#${EPREFIX}/${myinclsundtek}#" \ - -e "s#prefix=/opt#prefix=${EPREFIX}/${mybinprefix}#" \ - 1/doc/libmedia.pc >"${mypkgconfig}/libmedia.pc" || die - sed -i -e "s#/opt#${EPREFIX}/${mybinprefix}#" \ - etc/udev/rules.d/*.rules 1/doc/*.service sundtek.initd || die - sed -i -e "s/^\([^#]\)/#\1/" \ - etc/udev/rules.d/80-mediasrv-eeti.rules || die - mv etc/udev/rules.d/80-mediasrv.rules etc/hal . || die - mv etc/udev "${myudev}" || die - mv 1/doc/hardware.conf 1/doc/sundtek.conf "${mylirc}" || die - rm 1/doc/lirc_install.sh 1/doc/libmedia.pc || die - mv 1/doc/README 1/doc/*.service 1/doc/*.conf "${S}" || die - rmdir 1/doc || die "${S}/1/doc contains files not known to the ebuild" - rmdir 1 || die "${S}/1 contains files not known to the ebuild" - my_movlibdir "${mylibdir}" - mkdir etc/revdep-rebuild || die - echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${mybinprefix}/bin/audio/libpulse.so\"" \ - >etc/revdep-rebuild/50-sundtek-tv - echo "/${mylibdir}/libmediaclient.so" >etc/ld.so.preload - ln -sfn mediaclient.video mediaclient.audio - ln -sfn mediaclient.video mediaclient.dvb - epatch_user -} - -src_install() { - insinto / - local i - for i in etc lib64 lib32 lib usr opt - do test -d "${i}" && mv -- "${i}" "${ED}" - done - for i in "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) "${ED}"/opt - do test -d "${i}" && chmod -R 755 "${i}" - done - if ! ${keep_original} - then newinitd sundtek.initd sundtek - systemd_dounit *.service - dodoc README *.conf - fi - dobin mediaclient.video - insinto /usr/bin - doins mediaclient.dvb mediaclient.audio - insinto /usr/share/zsh/site-functions - doins _mediaclient - readme.gentoo_create_doc -} - -pkg_pretend() { - local CONFIG_CHECK="~INPUT_UINPUT" - check_extra_config -} - -pkg_postinst() { - einfo "Adding root to the audio group" - usermod -aG audio root || { - ewarn "Could not add root to the audio group." - ewarn "You should do this manually if you have problems with sound" - } - false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \ - elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv" -} diff --git a/media-tv/sundtek-tv/sundtek-tv-140629.115654.ebuild b/media-tv/sundtek-tv/sundtek-tv-140629.115654.ebuild new file mode 100644 index 00000000..4ab9eee2 --- /dev/null +++ b/media-tv/sundtek-tv/sundtek-tv-140629.115654.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit eutils linux-info pax-utils readme.gentoo systemd unpacker + +# The following variable is only for testing purposes. Leave it to "false" +keep_original=false + +DESCRIPTION="Sundtek MediaTV Pro III Drivers" +HOMEPAGE="http://support.sundtek.com/index.php/topic,2.0.html" +# Current version number can be found in http://sundtek.de/media/latest.phtml +SRC_URI="http://www.sundtek.de/media/sundtek_installer_${PV}.sh" + +RESTRICT="mirror strip" +LICENSE="sundtek" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="pax_kernel" +RDEPEND="" +DEPEND="pax_kernel? ( || ( sys-apps/elfix sys-apps/paxctl ) )" + +DISABLE_AUTOFORMATTING="true" +DOC_CONTENTS="To initialize sundtek drivers during booting call + rc-update add sundtek default # for openrc + systemctl enable sundtek-local.service # for systemd +You will probably need to adapt sundtek-local.service to your defaults +" + +QA_PREBUILT="opt/bin/* opt/bin/*/* usr/$(get_libdir)/*" + +src_unpack() { + local subdir a + a="${S}/archives" + mkdir -- "${S}" # "|| die" no necessary: test happens in cd + mkdir -- "${a}" + cd -- "${a}" || die "cannot cd to ${a}" + bash -- "${DISTDIR}/${A}" -e || die "extracting failed" + cd -- "${S}" || die + if use amd64 + then subdir=64bit + elif use x86 + then subdir=32bit + else die "This ebuild does not support the architecture. +Download from Sundtek directly, write your own ebuild, or send me patches." + fi + unpacker "${a}/${subdir}/installer.tar.gz" || die + rm -rf -- "${a}" || die "cannot remove ${a}" + cp -- \ + "${FILESDIR}"/sundtek.initd \ + "${FILESDIR}"/sundtek-local.service \ + "${FILESDIR}"/_mediaclient \ + "${FILESDIR}"/mediaclient.video \ + "${S}" || die +} + +my_movlibdir() { + local i + for i in bin/* + do if test -d "${i}" + then mv "${i}" "${2}" || die + fi + done +} + +src_prepare() { + local mybinprefix mylibdir myinclude myinclsundtek mysystemd \ + myudev mypkgconfig mylirc myusr + if ${keep_original} + then mylibdir="opt/lib" + myinclude="opt/include" + myusr= + else mylibdir="usr/$(get_libdir)" + myinclude="usr/include" + myusr="usr" + fi + mybinprefix="opt" + mypkgconfig="usr/share/pkgconfig" + myinclsundtek="${myinclude}/sundtek" + myudev="lib/udev" + mylirc="etc/lirc" + umask 022 + if use pax_kernel + then pax-mark em opt/bin/mediasrv + pax-mark e opt/bin/mediaclient + fi + mv opt 1 || die + mkdir -p ${myusr} "${mybinprefix}" lib "${mypkgconfig}" "${mylirc}" \ + 1/lib/pm-utils || die + mv 1/bin "${mybinprefix}" || die + ${keep_original} || mv 1/lib/pm 1/lib/pm-utils/sleep.d || die + mv 1/lib "${mylibdir}" || die + mv 1/include "${myinclude}" || die + sed -e "s#/opt/lib#${EPREFIX}/${mylibdir}#" \ + -e "s#/opt/include#${EPREFIX}/${myinclsundtek}#" \ + -e "s#prefix=/opt#prefix=${EPREFIX}/${mybinprefix}#" \ + 1/doc/libmedia.pc >"${mypkgconfig}/libmedia.pc" || die + sed -i -e "s#/opt#${EPREFIX}/${mybinprefix}#" \ + etc/udev/rules.d/*.rules 1/doc/*.service sundtek.initd || die + sed -i -e "s/^\([^#]\)/#\1/" \ + etc/udev/rules.d/80-mediasrv-eeti.rules || die + mv etc/udev/rules.d/80-mediasrv.rules etc/hal . || die + mv etc/udev "${myudev}" || die + mv 1/doc/hardware.conf 1/doc/sundtek.conf "${mylirc}" || die + rm 1/doc/lirc_install.sh 1/doc/libmedia.pc || die + mv 1/doc/*.service "${S}" || die + mkdir "${S}/doc" && mkdir "${S}/doc/bin" || die + mv 1/doc/README 1/doc/*.conf "${S}/doc" || die + mv 1/doc/*.cgi "${S}/doc/bin" || die + rmdir 1/doc || die "${S}/1/doc contains files not known to the ebuild" + rmdir 1 || die "${S}/1 contains files not known to the ebuild" + my_movlibdir "${mylibdir}" + mkdir etc/revdep-rebuild || die + echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${mybinprefix}/bin/audio/libpulse.so\"" \ + >etc/revdep-rebuild/50-sundtek-tv + echo "/${mylibdir}/libmediaclient.so" >etc/ld.so.preload + ln -sfn mediaclient.video mediaclient.audio + ln -sfn mediaclient.video mediaclient.dvb + epatch_user +} + +src_install() { + insinto / + local i + for i in etc lib64 lib32 lib usr opt + do test -d "${i}" && mv -- "${i}" "${ED}" + done + for i in "${ED}"/usr/bin "${ED}"/usr/$(get_libdir) "${ED}"/opt + do test -d "${i}" && chmod -R 755 "${i}" + done + if ! ${keep_original} + then newinitd sundtek.initd sundtek + systemd_dounit *.service + dodoc doc/README doc/*.conf + mv -- doc/bin "${ED}/usr/share/doc/${PF}" || die + docompress -x "/usr/share/doc/${PF}/bin" + fi + dobin mediaclient.video + insinto /usr/bin + doins mediaclient.dvb mediaclient.audio + insinto /usr/share/zsh/site-functions + doins _mediaclient + readme.gentoo_create_doc +} + +pkg_pretend() { + local CONFIG_CHECK="~INPUT_UINPUT" + check_extra_config +} + +pkg_postinst() { + einfo "Adding root to the audio group" + usermod -aG audio root || { + ewarn "Could not add root to the audio group." + ewarn "You should do this manually if you have problems with sound" + } + false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \ + elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv" +} -- cgit v1.2.3-65-gdbad