From ba109bca28a9afdc466580d857b8a45095bf8121 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sun, 9 Aug 2020 08:32:20 +0200 Subject: www-plugins squashfs-tool googleearth sundtek-tv schily-tools: Version bumps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Väth --- media-tv/sundtek-tv/Manifest | 2 +- .../sundtek-tv/sundtek-tv-200325.155550.ebuild | 202 --------------------- .../sundtek-tv/sundtek-tv-200507.155645.ebuild | 202 +++++++++++++++++++++ 3 files changed, 203 insertions(+), 203 deletions(-) delete mode 100644 media-tv/sundtek-tv/sundtek-tv-200325.155550.ebuild create mode 100644 media-tv/sundtek-tv/sundtek-tv-200507.155645.ebuild (limited to 'media-tv') diff --git a/media-tv/sundtek-tv/Manifest b/media-tv/sundtek-tv/Manifest index 33efc645..162853e9 100644 --- a/media-tv/sundtek-tv/Manifest +++ b/media-tv/sundtek-tv/Manifest @@ -1 +1 @@ -DIST sundtek_installer_200325.155550.sh 44265663 SHA512 af2f15229ea2a70cce821bea77dcafa56a4f3ef24bcce0d4d3e925c8ab4a965b0f64e9a14287ab7ae45472450a127b606527b815426117f75768359c9d86d3d7 +DIST sundtek_installer_200507.155645.sh 44289525 SHA512 d33f45571591f0b8c7406c97df22e0ed715c8616f88696e1ce297f40510569fc244798d747071341acc4bf2f49c8162e1220670dd6858e26628cfe0190216da4 diff --git a/media-tv/sundtek-tv/sundtek-tv-200325.155550.ebuild b/media-tv/sundtek-tv/sundtek-tv-200325.155550.ebuild deleted file mode 100644 index e1205f17..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-200325.155550.ebuild +++ /dev/null @@ -1,202 +0,0 @@ -# Copyright 2014-2020 Martin V\"ath -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit linux-info pax-utils readme.gentoo-r1 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 -http://sundtek.de/media/latest.phtml" -SRC_URI="http://www.sundtek.de/media/sundtek_installer_${PV}.sh" - -RESTRICT="binchecks mirror strip" -LICENSE="sundtek" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="ld-preload-env +ld-preload-file pax_kernel pulseaudio split-usr" -RDEPEND="!"${mypkgconfig}/libmedia.pc" || die - sed -i -e "s#/opt#${EPREFIX}/${mybinprefix}#" \ - etc/udev/rules.d/*.rules 1/doc/*.service sundtek.initd || die - ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || - sed -i -e "s/^\([^#]\)/#\1/" etc/udev/rules.d/80-mediasrv-eeti.rules \ - || die - rm etc/systemd/system/multi-user.target.wants/sundtek.service || die - rmdir etc/systemd/system/multi-user.target.wants || die - rmdir etc/systemd/system || die - rmdir etc/systemd || 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 - rm etc/ld.so.conf.d/optlib.conf && rmdir etc/ld.so.conf.d || 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 - if use ld-preload-file - then echo "/${mylibdir}/libmediaclient.so" >etc/ld.so.preload - else sed -i -e 's/preload:-NO/preload:-YES/' sundtek.initd - fi - sed -i -e "s'preload_lib:-/usr/lib'preload_lib:-/${mylibdir}'" sundtek.initd - if use ld-preload-env - then mkdir etc/env.d - echo "LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\"" >etc/env.d/50sundtek-tv - fi - DOC_CONTENTS="${DOC_CONTENTS} -You have to put /${mylibdir}/libmediaclient.so into /etc/ld.so.preload -or to export LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\" -before you start a multimedia applications like mplayer or mpv which should -be able to access the sundtek device. - -This happens with USE=ld-preload-file or with ld-preload-env (in the global -environment), respectively. - -However, such a global setting in some cases this gives warnings when -32-bit applications are used. - -Thus, it might be a good idea to do it only locally by writing -corresponding wrapper scripts for those multimedia applications you -want to use with sundtek-tv. -" - ln -sfn mediaclient.video mediaclient.audio - ln -sfn mediaclient.video mediaclient.dvb - default -} - -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" - if ! use ld-preload-file - then if use ld-preload-env - then elog "You might have to call env-update and source /etc/profile" - else elog "You need to set LD_PRELOAD locally, see" - elog "${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" - fi - fi - readme.gentoo_print_elog -} diff --git a/media-tv/sundtek-tv/sundtek-tv-200507.155645.ebuild b/media-tv/sundtek-tv/sundtek-tv-200507.155645.ebuild new file mode 100644 index 00000000..e1205f17 --- /dev/null +++ b/media-tv/sundtek-tv/sundtek-tv-200507.155645.ebuild @@ -0,0 +1,202 @@ +# Copyright 2014-2020 Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit linux-info pax-utils readme.gentoo-r1 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 +http://sundtek.de/media/latest.phtml" +SRC_URI="http://www.sundtek.de/media/sundtek_installer_${PV}.sh" + +RESTRICT="binchecks mirror strip" +LICENSE="sundtek" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="ld-preload-env +ld-preload-file pax_kernel pulseaudio split-usr" +RDEPEND="!"${mypkgconfig}/libmedia.pc" || die + sed -i -e "s#/opt#${EPREFIX}/${mybinprefix}#" \ + etc/udev/rules.d/*.rules 1/doc/*.service sundtek.initd || die + ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || + sed -i -e "s/^\([^#]\)/#\1/" etc/udev/rules.d/80-mediasrv-eeti.rules \ + || die + rm etc/systemd/system/multi-user.target.wants/sundtek.service || die + rmdir etc/systemd/system/multi-user.target.wants || die + rmdir etc/systemd/system || die + rmdir etc/systemd || 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 + rm etc/ld.so.conf.d/optlib.conf && rmdir etc/ld.so.conf.d || 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 + if use ld-preload-file + then echo "/${mylibdir}/libmediaclient.so" >etc/ld.so.preload + else sed -i -e 's/preload:-NO/preload:-YES/' sundtek.initd + fi + sed -i -e "s'preload_lib:-/usr/lib'preload_lib:-/${mylibdir}'" sundtek.initd + if use ld-preload-env + then mkdir etc/env.d + echo "LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\"" >etc/env.d/50sundtek-tv + fi + DOC_CONTENTS="${DOC_CONTENTS} +You have to put /${mylibdir}/libmediaclient.so into /etc/ld.so.preload +or to export LD_PRELOAD=\"/${mylibdir}/libmediaclient.so\" +before you start a multimedia applications like mplayer or mpv which should +be able to access the sundtek device. + +This happens with USE=ld-preload-file or with ld-preload-env (in the global +environment), respectively. + +However, such a global setting in some cases this gives warnings when +32-bit applications are used. + +Thus, it might be a good idea to do it only locally by writing +corresponding wrapper scripts for those multimedia applications you +want to use with sundtek-tv. +" + ln -sfn mediaclient.video mediaclient.audio + ln -sfn mediaclient.video mediaclient.dvb + default +} + +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" + if ! use ld-preload-file + then if use ld-preload-env + then elog "You might have to call env-update and source /etc/profile" + else elog "You need to set LD_PRELOAD locally, see" + elog "${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" + fi + fi + readme.gentoo_print_elog +} -- cgit v1.2.3-18-g5258