summaryrefslogtreecommitdiff
path: root/sys-apps/superiotool
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/superiotool
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/superiotool')
-rw-r--r--sys-apps/superiotool/Manifest7
-rwxr-xr-xsys-apps/superiotool/files/make-tarball.sh34
-rw-r--r--sys-apps/superiotool/metadata.xml10
-rw-r--r--sys-apps/superiotool/superiotool-6637.ebuild47
-rw-r--r--sys-apps/superiotool/superiotool-99999999.ebuild47
5 files changed, 145 insertions, 0 deletions
diff --git a/sys-apps/superiotool/Manifest b/sys-apps/superiotool/Manifest
new file mode 100644
index 000000000000..7d77ea082172
--- /dev/null
+++ b/sys-apps/superiotool/Manifest
@@ -0,0 +1,7 @@
+AUX make-tarball.sh 671 SHA256 ee2fe95929d7ff12b9aa2c61bc4b73497bfac4be754aa7a573f024a0bbf21b68 SHA512 7f3efac359f6da1521b26da4e57efbe7333f2841335ced85452c2a6a7575d0506c5fa3f3062b2e07b85db4c35194c3ea4dd3755d71b236f601776e4e3c471b5c WHIRLPOOL 80eb830afe5329ccdaf8c6816bc87dcb259afaf57f78d03701567d788e044b2598bf960bca31c19f008c653cd38164fabd286758142e44d2d9fd339df2b0059f
+DIST superiotool-6637.tar.xz 27364 SHA256 e21e091c7679c2eeac66aa49499c02587d64a41b3b36449f4ec06dafc8f0ba21 SHA512 dafb732b33205d1bdd368c1f752c7ba78cfb9f6174fc72075b9e8dcae962ab9ef10eb0860052a5925167b91e5b056f6b8a4a316799661d3950a630020f4330fd WHIRLPOOL 70ee5da7946cd93d978db2094dee1466a91239db96f640e5e2b7aa6d9487ccc43229e570bd084dcd6ef27353752059dfaa6fdf5b414d4eadf657549d0998bf39
+EBUILD superiotool-6637.ebuild 945 SHA256 924bf7e9beeb5812c9a57ae852f9c8632c4491e2fcebb873bc893f09c9af1163 SHA512 36377d290c33c7003e8ab961a2f51d40d35220a326728dab6cda0c91d51507ef60f50c88bcbd27ba2534b661cf4b8004debf47c7ac4edfe1bdc55ce2bdaf09ae WHIRLPOOL 9ce2beaaa6719905b04845d05f98aa67ab5674427fb2f5f13cce268716bb94923b6499a05e84bfab380e1fd14b961cba774f4b184e9ea39997bfc791048f5052
+EBUILD superiotool-99999999.ebuild 945 SHA256 924bf7e9beeb5812c9a57ae852f9c8632c4491e2fcebb873bc893f09c9af1163 SHA512 36377d290c33c7003e8ab961a2f51d40d35220a326728dab6cda0c91d51507ef60f50c88bcbd27ba2534b661cf4b8004debf47c7ac4edfe1bdc55ce2bdaf09ae WHIRLPOOL 9ce2beaaa6719905b04845d05f98aa67ab5674427fb2f5f13cce268716bb94923b6499a05e84bfab380e1fd14b961cba774f4b184e9ea39997bfc791048f5052
+MISC ChangeLog 2276 SHA256 09dcb150ca1e6a3b758dfeeda7d90256ca02806e5971b1d5568f02441a4df912 SHA512 783f09c602e7b61278bd9d5fd90ce5f11c600ab327b39f746e8b1865948d21e34580c7a131f1633387912134db4fa9da3a27ca903a6d49210736b53726da2444 WHIRLPOOL 4e595f24136705b685e8f216fde2303fa083c59ce46155457b81d46dd811b75ead7d1f46efb36b58020042bc96e258233ed346fc0986b2336f71740b0eb5b727
+MISC ChangeLog-2015 1011 SHA256 e10d25cfe8dad3ba6e28187e3f440e95274ed6b45dae32f1a2679e1fee721c11 SHA512 4cff0c33ecbc0df3d7d0bfc63428d93eb916cff5cecc4c962f5f99f7ffc9e8645ffb5ca14225e7d159d76a0fc1c432b69f930fc0a5663fde49f590bca58479bc WHIRLPOOL ea96afa853c576e1073a0366d47edea0b2b02ea0f7cc316d75306035b6fa33f6f51341903a5f71517c8fff758e45b6f78764b08686259a49209bd50810db033b
+MISC metadata.xml 322 SHA256 8d53ae5d7a4a77bf08ed70a88802b0bee1d70d291fca2f611a7d095f2370c61d SHA512 b10b11adf9b11f1a01a62a9968a99ced6a5b5744ca65967e0d0cea6d30ff0b84a8b84c720eb0362f4963d42daebc9fbe6e2540d9c972f48561a29f3efb27ca43 WHIRLPOOL 6f54ef00b58aec24e00177b8013d93fffd98239e5ebed317fef0ca0af979d2c55cb0c38833e6607d1fb08afdf8ea2a53b4c91ca991806f2b0cd5faa52ea4c8fd
diff --git a/sys-apps/superiotool/files/make-tarball.sh b/sys-apps/superiotool/files/make-tarball.sh
new file mode 100755
index 000000000000..3711db140db3
--- /dev/null
+++ b/sys-apps/superiotool/files/make-tarball.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+. /etc/init.d/functions.sh
+
+svnrev() { svn info "$1" | awk '$1 == "Revision:" { print $NF }'; }
+
+PN=superiotool
+SVN_ROOT=${2:-/usr/local/src}
+srcdir=${SVN_ROOT}/${PN}
+PV=${1:-$(svnrev "${srcdir}")}
+
+P=${PN}-${PV}
+T=/tmp
+
+if [[ -d ${srcdir} ]] ; then
+ cd "${T}" || die
+
+ rm -rf ${P}
+
+ ebegin "Exporting ${srcdir} ${PV} to ${P}"
+ svn export -q -r ${PV} ${srcdir} ${P}
+ eend $? || die
+
+ ebegin "Creating ${P}.tar.xz"
+ tar cf - ${P} | xz > ${P}.tar.xz
+ eend $?
+
+ einfo "Tarball now ready at: ${T}/${P}.tar.xz"
+else
+ einfo "You need to run:"
+ einfo " cd ${base}"
+ einfo " svn co svn://coreboot.org/coreboot/trunk/util/superiotool"
+ die "need svn checkout dir"
+fi
diff --git a/sys-apps/superiotool/metadata.xml b/sys-apps/superiotool/metadata.xml
new file mode 100644
index 000000000000..27a49c3348c6
--- /dev/null
+++ b/sys-apps/superiotool/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vapier@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="pci">Support for PCI-attached "Super I/Os" (e.g. in VIA VT82686A/B).</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-apps/superiotool/superiotool-6637.ebuild b/sys-apps/superiotool/superiotool-6637.ebuild
new file mode 100644
index 000000000000..9cd57fadcfca
--- /dev/null
+++ b/sys-apps/superiotool/superiotool-6637.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs eutils
+
+if [[ ${PV} == "99999999" ]] ; then
+ ESVN_REPO_URI="svn://coreboot.org/coreboot/trunk/util/${PN}"
+ inherit subversion
+ SRC_URI=""
+else
+ SRC_URI="mirror://gentoo/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="util to detect Super I/O chips and functionality"
+HOMEPAGE="http://www.coreboot.org/Superiotool"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="pci"
+
+RDEPEND="pci? ( sys-apps/pciutils )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_prepare() {
+ sed -i \
+ -e 's:-Werror ::' \
+ -e 's:-O2 ::' \
+ -e 's:\s\+\?-lz\s\+\?::' \
+ -e "/^CONFIG_PCI =/s:=.*:=$(usex pci yes no):" \
+ -e '/PREFIX/s:=.*:= /usr:' \
+ Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ SVNDEF="-D'SUPERIOTOOL_VERSION=\"${ESVN_WC_REVISION}\"'"
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+ dodoc README
+}
diff --git a/sys-apps/superiotool/superiotool-99999999.ebuild b/sys-apps/superiotool/superiotool-99999999.ebuild
new file mode 100644
index 000000000000..9cd57fadcfca
--- /dev/null
+++ b/sys-apps/superiotool/superiotool-99999999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs eutils
+
+if [[ ${PV} == "99999999" ]] ; then
+ ESVN_REPO_URI="svn://coreboot.org/coreboot/trunk/util/${PN}"
+ inherit subversion
+ SRC_URI=""
+else
+ SRC_URI="mirror://gentoo/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="util to detect Super I/O chips and functionality"
+HOMEPAGE="http://www.coreboot.org/Superiotool"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="pci"
+
+RDEPEND="pci? ( sys-apps/pciutils )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_prepare() {
+ sed -i \
+ -e 's:-Werror ::' \
+ -e 's:-O2 ::' \
+ -e 's:\s\+\?-lz\s\+\?::' \
+ -e "/^CONFIG_PCI =/s:=.*:=$(usex pci yes no):" \
+ -e '/PREFIX/s:=.*:= /usr:' \
+ Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ SVNDEF="-D'SUPERIOTOOL_VERSION=\"${ESVN_WC_REVISION}\"'"
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+ dodoc README
+}