summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2014-10-01 11:38:50 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 10:49:18 +0200
commitadd1e57175e7b192b669579ab3bf015c2f6d19f4 (patch)
tree38ec58f0471db6c95c537ab7b7d603ad5bc9d732
parentBump mv_perl, sundtek-tv, noscript (diff)
downloadmv-add1e57175e7b192b669579ab3bf015c2f6d19f4.tar.gz
mv-add1e57175e7b192b669579ab3bf015c2f6d19f4.tar.bz2
mv-add1e57175e7b192b669579ab3bf015c2f6d19f4.zip
Bump mv_perl. sundtek-tv: restore prevoius ebuild
-rw-r--r--dev-util/mv_perl/ChangeLog5
-rw-r--r--dev-util/mv_perl/Manifest2
-rw-r--r--dev-util/mv_perl/mv_perl-2.43.ebuild (renamed from dev-util/mv_perl/mv_perl-2.42.ebuild)0
-rw-r--r--media-tv/sundtek-tv/ChangeLog2
-rw-r--r--media-tv/sundtek-tv/Manifest1
-rw-r--r--media-tv/sundtek-tv/sundtek-tv-140727.221230.ebuild160
6 files changed, 168 insertions, 2 deletions
diff --git a/dev-util/mv_perl/ChangeLog b/dev-util/mv_perl/ChangeLog
index fd0ee6ea..d9590093 100644
--- a/dev-util/mv_perl/ChangeLog
+++ b/dev-util/mv_perl/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*mv_perl-2.43 (01 Oct 2014)
+
+ 01 Oct 2014; Martin Väth <martin@mvath.de>:
+ Version bump, remove old ebuild
+
*mv_perl-2.42 (30 Sep 2014)
30 Sep 2014; Martin Väth <martin@mvath.de>:
diff --git a/dev-util/mv_perl/Manifest b/dev-util/mv_perl/Manifest
index 54be9f70..70660465 100644
--- a/dev-util/mv_perl/Manifest
+++ b/dev-util/mv_perl/Manifest
@@ -1 +1 @@
-DIST mv_perl-v2.42.tar.gz 66961 SHA256 1bc5dd0adb64fec9042cbb54ba07bd675d29dc48250a03276d6b45517a53169b SHA512 6d0c052bbd7e1800877e35820991d5231ce64adb4b9a3d482b9b70525e43bff6317c08d51320a1367fb4ac6a13b4ab625f1f3f75817d139025e55da5e826ec26 WHIRLPOOL 9570857a583510b51afb4a141f5bb43462a967005c8603ac19c829ec1cde46a2c1abb02ea460fbf08fd12559631e5e28bdcd9e4ace45c50e1e172189c64a6688
+DIST mv_perl-v2.43.tar.gz 66963 SHA256 a541323c6125d511d6a63838b9ad797c4ef8bf78381e0ac4a49c2ce44ec6d899 SHA512 801064b62d4a750808495579d85bfddfeb2b8df4c22ceb99381ba443307abeb835fb313c2cacc64a7c2f24452b6f9bf3bc6c2545197e188451e69d968c47c1c2 WHIRLPOOL 9a0a2f5f90a97f7624320094ff3239cb4e14b245e945b5aef5f682ddb7234acb24d7a791f6274f4c518d55ba60c2f34ec5bc6f65d3830029bd076bc34ab12fa6
diff --git a/dev-util/mv_perl/mv_perl-2.42.ebuild b/dev-util/mv_perl/mv_perl-2.43.ebuild
index 6823664e..6823664e 100644
--- a/dev-util/mv_perl/mv_perl-2.42.ebuild
+++ b/dev-util/mv_perl/mv_perl-2.43.ebuild
diff --git a/media-tv/sundtek-tv/ChangeLog b/media-tv/sundtek-tv/ChangeLog
index 4b8b92c7..cec747dc 100644
--- a/media-tv/sundtek-tv/ChangeLog
+++ b/media-tv/sundtek-tv/ChangeLog
@@ -5,7 +5,7 @@
*sundtek-tv-140918.104249 (20 Sep 2014)
20 Sep 2014; Martin Väth <martin@mvath.de>:
- Version bump, remove old ebuild
+ Version bump.
*sundtek-tv-140727.221230 (29 Jul 2014)
diff --git a/media-tv/sundtek-tv/Manifest b/media-tv/sundtek-tv/Manifest
index f6413584..c577025f 100644
--- a/media-tv/sundtek-tv/Manifest
+++ b/media-tv/sundtek-tv/Manifest
@@ -1 +1,2 @@
+DIST sundtek_installer_140727.221230.sh 23242106 SHA256 094b947eb43be671fddfc69409b09facf5fecb338b6e587d9ee595bfda0d5fe0 SHA512 56ac2f5066aabf59414ad0837f6a3d3a7915e097b0b8cb5caf2376d39398050d5ec93a356460e7ece0299ad89671fd0c0bb126396949416a0f4ba583c4a197ef WHIRLPOOL df632a0eead5d289cdb63a1815d89ec10b42f5a1a5248fe86f78eab3cb3825e39eaaadabbb338a026b9136525f287c4283f87c2b53e6a02c83541b50a10a78c9
DIST sundtek_installer_140927.215955.sh 23401666 SHA256 47da59f5f78c671488169155eed6f58473c3270be22e203baa6f701b054974ce SHA512 5b29a21feadac5a74c1e045d66ccb09f7376af39ec85c55b4009da87050a165f2b68e42eefc116a3eba43859525644d36a4d76c9ef1ccc62b614f8fdad7e31ed WHIRLPOOL 2fa6d424c6954ecc7cf3582a978e60f2b391d22cd96272767514c3734432b62331159d95646a5e1e775fe39f51c9f786ce7b70c8529830200080ff02c4500b7e
diff --git a/media-tv/sundtek-tv/sundtek-tv-140727.221230.ebuild b/media-tv/sundtek-tv/sundtek-tv-140727.221230.ebuild
new file mode 100644
index 00000000..4ab9eee2
--- /dev/null
+++ b/media-tv/sundtek-tv/sundtek-tv-140727.221230.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"
+}