From 61e6bd2189f907992dcd9764ecd338addd1c4a9e Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sun, 11 May 2014 08:09:09 +0200 Subject: Bump sundtek-tv --- media-tv/sundtek-tv/ChangeLog | 5 + media-tv/sundtek-tv/Manifest | 4 +- media-tv/sundtek-tv/sundtek-tv-20140428.ebuild | 180 ------------------------- media-tv/sundtek-tv/sundtek-tv-20140510.ebuild | 180 +++++++++++++++++++++++++ 4 files changed, 187 insertions(+), 182 deletions(-) delete mode 100644 media-tv/sundtek-tv/sundtek-tv-20140428.ebuild create mode 100644 media-tv/sundtek-tv/sundtek-tv-20140510.ebuild (limited to 'media-tv') diff --git a/media-tv/sundtek-tv/ChangeLog b/media-tv/sundtek-tv/ChangeLog index 46957984..a06fbaad 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-20140510 (11 May 2014) + + 11 May 2014; Martin Väth : + Version bump, remove old ebuild. + *sundtek-tv-20140428 (04 May 2014) 04 May 2014; Martin Väth : diff --git a/media-tv/sundtek-tv/Manifest b/media-tv/sundtek-tv/Manifest index 794d1031..98a655be 100644 --- a/media-tv/sundtek-tv/Manifest +++ b/media-tv/sundtek-tv/Manifest @@ -1,2 +1,2 @@ -DIST sundtek-tv-amd64-20140428.tar.gz 1245888 SHA256 a29651070203f12f649f5436c8dfbe07f353b950770e119b44d21309f259b0f1 SHA512 b411b48f981c5715999a066d3618a0dee818e0a129ac404f78daefa05137ccf4a56e225b5e93f86152f370befe2e78693d9ac1517149d5aeb6618e6074b6b2f6 WHIRLPOOL c643afa284d302d375d079742c1e87393b81da6646d4f6d9f9457174d79a39bfb5df4a60b0a51eb9e296b37938fd8ccbae556e202760bc32cd02955f8f28c3f4 -DIST sundtek-tv-x86-20140428.tar.gz 1168185 SHA256 e98a816c402221218eb7e25d92b01479a073549e5552f3e515c82bedde8db19a SHA512 3c1b10e8da46c6ef6db16e41b82fa716acbddd7972a4474eda99d5bdb9dddae650966388922595b8e1c2053b3a7f90d989318f6c0ecc7032caf367103287f6f9 WHIRLPOOL 8401335727869627dcceb95953b77bd7ed5fe92403b616a205c93de7b4a5173a26001fc21bc137bfcd133850338607b6700318541f585347c47c431a69245d54 +DIST sundtek-tv-amd64-20140510.tar.gz 1246063 SHA256 3fce3350a34475a532df4f4594a5b8d0ab50acb343066fdb7f322516f606ccf2 SHA512 a10efa1b5a3ae82422061975bcf3b5b4cd69e84b91af98b101d5f9d5f358c166b81579bd333b9d4bf116df659b978b0bf2f5d137d3ed237184a49ca3a0cb0439 WHIRLPOOL 8c7ead2d838b472b490349d0c7408676001b4d1128bc496ee2ddf1a7e9a7769d5dde0960db9b8e73c22b2ab9ce7363f156fdb526d98fda2d99d12dff56b037e9 +DIST sundtek-tv-x86-20140510.tar.gz 1168522 SHA256 60d637df778aacc815590a31c21baf057d3ce1019d44b8586c24e7af99b3975f SHA512 68822c065bbeac1f84b227a9484cd0d6d5819908ddbea79cdc67661e3901afcb6cb7eb9cab7ad7ea8e8c6847fdee7d59cc8dab12efecf1bd1dd0bf1fa54b9151 WHIRLPOOL 5e57facb4371ce68184b2ac8f7c7d66cd292a1f7d2b64b7fbe0c3de05d08398cb4aa802263f88a1e48d1172a54b44b22e1a4afa209abd38bd2080fe91cb4bddd diff --git a/media-tv/sundtek-tv/sundtek-tv-20140428.ebuild b/media-tv/sundtek-tv/sundtek-tv-20140428.ebuild deleted file mode 100644 index 3a3e60a1..00000000 --- a/media-tv/sundtek-tv/sundtek-tv-20140428.ebuild +++ /dev/null @@ -1,180 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -inherit eutils pax-utils readme.gentoo systemd - -develop=false -keep_original=false - -tar_amd64="${PN}-amd64-${PV}.tar.gz" -tar_x86="${PN}-x86-${PV}.tar.gz" -drivertar="installer.tar.gz" -driverfile="${PN}-20140223.sh" -driverdist="sundtek_netinst.sh" -docdist="sundtek_smart_facts_de.pdf" -DESCRIPTION="Sundtek MediaTV Pro III Drivers" -HOMEPAGE="http://support.sundtek.com/index.php/topic,2.0.html" -SRC_URI="amd64? ( http://www.sundtek.de/media/netinst/64bit/installer.tar.gz -> ${tar_amd64} ) -x86? ( http://www.sundtek.de/media/netinst/32bit/installer.tar.gz -> ${tar_x86} )" -${develop} && SRC_URI="${SRC_URI} http://www.sundtek.de/media/${driverdist} -> ${driverfile}" - -RESTRICT="mirror" -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/* usr/lib*" - -pkg_setup() { - if use amd64 - then sourcetar="${tar_amd64}" - elif use x86 - then sourcetar="${tar_x86}" - else die "This ebuild does not support the architecture. -Download from Sundtek directly or write your own ebuild" - fi - elog "sundtek provides regular updates to the driver." - elog "I do not have time to bump this ebuild regularly." - elog "In case of checksum mismatches, copy to your local overlay," - elog "rename the ebuild version to the current date and call" - elog "ebuild [name to the new ebuild] manifest" - elog "Although the ebuild tries to be generic, there is no guarantee that" - elog "the most current driver will work in this case, of course." - elog "If you cannot get this ebuild to work, use sundtek's installer." -} - -src_unpack() { - mkdir "${S}" && cd "${S}" - unpack ${A} - cp -- \ - "${FILESDIR}"/sundtek.initd \ - "${FILESDIR}"/sundtek-local.service \ - "${FILESDIR}"/_mediaclient \ - "${FILESDIR}"/mediaclient.video \ - "${S}" - ! ${develop} || cp "${DISTDIR}/${driverfile}" "${S}/${driverdist}" \ - || die "could not copy ${driverfile}" -} - -extract_driver() { - local size - size=`sed -n -e 's/^_SIZE=//p' -- "${S}/${driverdist}"` \ - && [ -n "${size}" ] || die "cannot determine size" - dd "if=${S}/${driverdist}" of="${S}/installer.tar.gz" skip=1 "bs=${size}" \ - || die "failed to extract driver tarball" - dd "if=${S}/${driverdist}" of="${S}/installer.sh" count=1 "bs=${size}" \ - || die "failed to extract installer script" -} - -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 - ${develop} && extract_driver - 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 - # The systemd unit need only be patched if PAX flags are not properly set - : sed -i -e 's/^\(\(Exec\(Start\|Stop\)\|Type\)=\)/#\1/' \ - -e '/^#ExecStart=/iExecStart=/opt/bin/mediasrv --pluginpath /opt/bin' \ - -e '/^#ExecStop=/i#ExecStop=/bin/kill $MAINPID' \ - 1/doc/sundtek.service || 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 - ${develop} && die "Developer mode: Dying after unpacking all" - 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/lib* "${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_postinst() { - false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \ - elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv" - 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" - } -} diff --git a/media-tv/sundtek-tv/sundtek-tv-20140510.ebuild b/media-tv/sundtek-tv/sundtek-tv-20140510.ebuild new file mode 100644 index 00000000..3a3e60a1 --- /dev/null +++ b/media-tv/sundtek-tv/sundtek-tv-20140510.ebuild @@ -0,0 +1,180 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit eutils pax-utils readme.gentoo systemd + +develop=false +keep_original=false + +tar_amd64="${PN}-amd64-${PV}.tar.gz" +tar_x86="${PN}-x86-${PV}.tar.gz" +drivertar="installer.tar.gz" +driverfile="${PN}-20140223.sh" +driverdist="sundtek_netinst.sh" +docdist="sundtek_smart_facts_de.pdf" +DESCRIPTION="Sundtek MediaTV Pro III Drivers" +HOMEPAGE="http://support.sundtek.com/index.php/topic,2.0.html" +SRC_URI="amd64? ( http://www.sundtek.de/media/netinst/64bit/installer.tar.gz -> ${tar_amd64} ) +x86? ( http://www.sundtek.de/media/netinst/32bit/installer.tar.gz -> ${tar_x86} )" +${develop} && SRC_URI="${SRC_URI} http://www.sundtek.de/media/${driverdist} -> ${driverfile}" + +RESTRICT="mirror" +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/* usr/lib*" + +pkg_setup() { + if use amd64 + then sourcetar="${tar_amd64}" + elif use x86 + then sourcetar="${tar_x86}" + else die "This ebuild does not support the architecture. +Download from Sundtek directly or write your own ebuild" + fi + elog "sundtek provides regular updates to the driver." + elog "I do not have time to bump this ebuild regularly." + elog "In case of checksum mismatches, copy to your local overlay," + elog "rename the ebuild version to the current date and call" + elog "ebuild [name to the new ebuild] manifest" + elog "Although the ebuild tries to be generic, there is no guarantee that" + elog "the most current driver will work in this case, of course." + elog "If you cannot get this ebuild to work, use sundtek's installer." +} + +src_unpack() { + mkdir "${S}" && cd "${S}" + unpack ${A} + cp -- \ + "${FILESDIR}"/sundtek.initd \ + "${FILESDIR}"/sundtek-local.service \ + "${FILESDIR}"/_mediaclient \ + "${FILESDIR}"/mediaclient.video \ + "${S}" + ! ${develop} || cp "${DISTDIR}/${driverfile}" "${S}/${driverdist}" \ + || die "could not copy ${driverfile}" +} + +extract_driver() { + local size + size=`sed -n -e 's/^_SIZE=//p' -- "${S}/${driverdist}"` \ + && [ -n "${size}" ] || die "cannot determine size" + dd "if=${S}/${driverdist}" of="${S}/installer.tar.gz" skip=1 "bs=${size}" \ + || die "failed to extract driver tarball" + dd "if=${S}/${driverdist}" of="${S}/installer.sh" count=1 "bs=${size}" \ + || die "failed to extract installer script" +} + +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 + ${develop} && extract_driver + 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 + # The systemd unit need only be patched if PAX flags are not properly set + : sed -i -e 's/^\(\(Exec\(Start\|Stop\)\|Type\)=\)/#\1/' \ + -e '/^#ExecStart=/iExecStart=/opt/bin/mediasrv --pluginpath /opt/bin' \ + -e '/^#ExecStop=/i#ExecStop=/bin/kill $MAINPID' \ + 1/doc/sundtek.service || 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 + ${develop} && die "Developer mode: Dying after unpacking all" + 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/lib* "${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_postinst() { + false chmod 6111 "${EPREFIX}/opt/bin/mediasrv" || \ + elog "You might need to chmod 6111 ${EPREFIX}/opt/bin/mediasrv" + 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" + } +} -- cgit v1.2.3-65-gdbad