diff options
-rw-r--r-- | media-tv/sundtek-tv/Manifest | 5 | ||||
-rw-r--r-- | media-tv/sundtek-tv/sundtek-tv-160810.161810.ebuild | 191 | ||||
-rw-r--r-- | media-tv/sundtek-tv/sundtek-tv-160814.135604.ebuild | 191 | ||||
-rw-r--r-- | media-tv/sundtek-tv/sundtek-tv-160819.052259.ebuild | 191 | ||||
-rw-r--r-- | media-tv/sundtek-tv/sundtek-tv-160822.223039.ebuild (renamed from media-tv/sundtek-tv/sundtek-tv-160714.211503.ebuild) | 0 |
5 files changed, 1 insertions, 577 deletions
diff --git a/media-tv/sundtek-tv/Manifest b/media-tv/sundtek-tv/Manifest index 6d3b5550..6b0bb7cf 100644 --- a/media-tv/sundtek-tv/Manifest +++ b/media-tv/sundtek-tv/Manifest @@ -1,4 +1 @@ -DIST sundtek_installer_160714.211503.sh 31945938 SHA256 728e13e0f74359bf74440eb39c942a21f2be8fab751abfdd5401478080a36e32 -DIST sundtek_installer_160810.161810.sh 31750954 SHA256 a5b563ea9a9577b975087f813e0be8413070fdbc914ce542b83c310139f31628 -DIST sundtek_installer_160814.135604.sh 31750625 SHA256 d97e7b3f344feab44d4a20bdbdd50cde03618ef72249489154c33189de25bd03 -DIST sundtek_installer_160819.052259.sh 31759422 SHA256 447e67426d6c51a51a62fba549b0ae892efd212cab76edd75ae23830bb7d3034 +DIST sundtek_installer_160822.223039.sh 31881173 SHA256 1d98bc52e7e9c1719a6cda5d7a761bf4e45d5983fc009f4f6f1be31e11227b3e diff --git a/media-tv/sundtek-tv/sundtek-tv-160810.161810.ebuild b/media-tv/sundtek-tv/sundtek-tv-160810.161810.ebuild deleted file mode 100644 index 45fa2b47..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-160810.161810.ebuild +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright 2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -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" -# 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="binchecks mirror strip" -LICENSE="sundtek" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="ld-preload-env +ld-preload-file pax_kernel" -RDEPEND="!<sys-apps/openrc-0.13" -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 -" - -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 - ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || - 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 - 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 - eapply_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" - 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-160814.135604.ebuild b/media-tv/sundtek-tv/sundtek-tv-160814.135604.ebuild deleted file mode 100644 index 45fa2b47..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-160814.135604.ebuild +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright 2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -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" -# 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="binchecks mirror strip" -LICENSE="sundtek" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="ld-preload-env +ld-preload-file pax_kernel" -RDEPEND="!<sys-apps/openrc-0.13" -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 -" - -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 - ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || - 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 - 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 - eapply_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" - 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-160819.052259.ebuild b/media-tv/sundtek-tv/sundtek-tv-160819.052259.ebuild deleted file mode 100644 index 45fa2b47..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-160819.052259.ebuild +++ /dev/null @@ -1,191 +0,0 @@ -# Copyright 2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -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" -# 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="binchecks mirror strip" -LICENSE="sundtek" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="ld-preload-env +ld-preload-file pax_kernel" -RDEPEND="!<sys-apps/openrc-0.13" -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 -" - -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 - ! test -r etc/udev/rules.d/80-mediasrv-eeti.rules || - 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 - 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 - eapply_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" - 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-160714.211503.ebuild b/media-tv/sundtek-tv/sundtek-tv-160822.223039.ebuild index 45fa2b47..45fa2b47 100644 --- a/media-tv/sundtek-tv/sundtek-tv-160714.211503.ebuild +++ b/media-tv/sundtek-tv/sundtek-tv-160822.223039.ebuild |