diff options
Diffstat (limited to 'sys-libs/libsmbios')
-rw-r--r-- | sys-libs/libsmbios/Manifest | 13 | ||||
-rw-r--r-- | sys-libs/libsmbios/files/libsmbios-2.2.28-cppunit-tests.patch | 10 | ||||
-rw-r--r-- | sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch | 16 | ||||
-rw-r--r-- | sys-libs/libsmbios/files/libsmbios-2.3.3-doxygen_target.patch | 19 | ||||
-rw-r--r-- | sys-libs/libsmbios/files/libsmbios-fix-pie.patch | 29 | ||||
-rw-r--r-- | sys-libs/libsmbios/libsmbios-2.3.0-r1.ebuild | 76 | ||||
-rw-r--r-- | sys-libs/libsmbios/libsmbios-2.3.2.ebuild | 81 | ||||
-rw-r--r-- | sys-libs/libsmbios/libsmbios-2.3.3.ebuild | 78 | ||||
-rw-r--r-- | sys-libs/libsmbios/metadata.xml | 14 |
9 files changed, 336 insertions, 0 deletions
diff --git a/sys-libs/libsmbios/Manifest b/sys-libs/libsmbios/Manifest new file mode 100644 index 000000000000..7f1ab55d5cc9 --- /dev/null +++ b/sys-libs/libsmbios/Manifest @@ -0,0 +1,13 @@ +AUX libsmbios-2.2.28-cppunit-tests.patch 350 SHA256 cd9ad94636ae8af4ad5606e012f2da5571210d7369c3bd8a003bb044516b4834 SHA512 51cfb62fce69afaf73659a2c4c819aa3554831b48d69bc35c1b299cd2e0b4d3be7f156a2cb57912cf10f21182e49fd5ce17aad0205a25d151f55ab3e0e58ddd7 WHIRLPOOL 5b3a49ba5da5fc1f0d47af78d99525c02c5fec83194c9315be206379e9e81967f5e7799cb215a683718a4a8859f91208557cd201e3b4dac5963518ac36d0115f +AUX libsmbios-2.3.0-doxygen_target.patch 305 SHA256 c2c7ddceef497a88fb5e17970ce3310f337fde5349ad812243cd27c91a7fa042 SHA512 f1f85f052265d88f4735a18ce0205a56256dba5416e6153291d27a4f958bbe9618401b1b70a5e462d12287490a42fe5a6e5e196091b9ec2afa01728a7910815d WHIRLPOOL f0e3770f0143d7bacbfa448d33ca50ffdd500c939960ec24211e4b76df7ac04a817c5616412b8522fb182c2451aed9e5eb69aab17211da848f523298e7db0438 +AUX libsmbios-2.3.3-doxygen_target.patch 351 SHA256 6e4a79056d177b9d5b9c7bc77d2d776117c749fc9b66292efa0f2b87cc50e0eb SHA512 d86df4b1c3ab389360d07f4fab84219bb03e270e77984996d7c53d55b4a0e5a29e2d097e79da5a49f7be0ff9118722aaa955acdbffd4d59cbefa7a1a0ad6f1c3 WHIRLPOOL b423b37de8721d33473aa823a738f1eddc6d54ec88232816c165a8d1566d1d3bc6cd184dc1ed366889bc2610658e0e5ece8108be4bb3aa16de63255f0e98eaf4 +AUX libsmbios-fix-pie.patch 816 SHA256 de81310aa499ad6bacc4b095cb3e90d45c35f035bbdeb18850a9921c71bc4328 SHA512 2567fe1dfe2e858103c3732e7059888731c207234022a24c1cd4b158253330699af6b2e90cf98881e57e0b7cb8c70a8627fe1d7eb370f2cbb3969189538baf7e WHIRLPOOL b16a585cf2d5652ce8efce8a293485317957c55ac97f2427cac1f34d2e8c2c7cf005dd55ad2bac64c383a507ee3c69b0d40c96e42fcf1067f2be98253889b1ff +DIST libsmbios-2.3.0.tar.xz 830840 SHA256 c71f040df170f6b55a874f292929792449ba1fad6029ba18544ed04a88343c1c SHA512 944df2dde0df8a02d4c5a84ff6e535e112e6d72b81177c8faba7c45b349ec8c8b2149439c4dc6ea834c5eedad1ac59d8bf073a3d48bf7caccc73d0317f00e216 WHIRLPOOL ac2acbb780f45ebcc9c616881432c981fc9907682b3b4d1e7164921cfa6beeef1a25bdde949375455843209556938ce45a92df8b2a190ab689f1673e72561ac9 +DIST libsmbios-2.3.2.tar.gz 800862 SHA256 527874a2abad8f8a9320eeb6b5dd11b6d5b8fff6cdc90bb0f757c39da519714f SHA512 6ef3d71892e157d81fc466689b67c19b83567ee1c4893816da935cfc42738cf958f972eed811aad375fee5bb7d4a6b4e13fb1b5760cd0d7cdb5e65170ebeb129 WHIRLPOOL 499c27d690b2f7b26272423ac9835c7726ef6667e34ed9212cb41d1ff207fddd75749228995de746b2daf5c24b9c4bb7d6d6e72b009c56f4fd53caa455ecf755 +DIST libsmbios-2.3.3.tar.gz 801164 SHA256 272ba8c9fa4a468938b8fa81b23a09c72acc97371f3be7c882bb222c1ae7157d SHA512 d4ee556fc0b734827e1a0def9c9914e79130ce9f164f62a5aa752276772f9ed27874fd8a285b65e016f16f001cdfa23c7c9d228533bb8a03134db90b9cc4f96d WHIRLPOOL 78f3d136ee56ec3c6a6708d03df2eef8ea43fba11639448a26300dcaf7ae340f21c7656b58e7a00ba035f2b4227d43eea3007a9f2289ed8e923b068fe66a90ad +EBUILD libsmbios-2.3.0-r1.ebuild 1825 SHA256 2c6290b0e7c0d1359b3801a0491e311a17f827f1237073c61027b0439d2a54ab SHA512 62b0a7bca4d2c04f529f379eaaf3e8b68bf8932f8bd9700be223a25a98040d26ce1a075dcbeef254cf5da784fc088abe32af8f75ca0e15527da4d2f9b10bee41 WHIRLPOOL c0497ab579eeae8b0673817487db0d868cbc540c4f6df0cca4ef2398d91c2a189661da6e66afca3aafa9a97199bdec6426319ea11b74f36bf07fe187311f5594 +EBUILD libsmbios-2.3.2.ebuild 1894 SHA256 30da0307a0640515b6ea515f7771b646f67a11fe34473abf4968258b673508db SHA512 2b3faf9733451392aaacb4e6859b64673b41d1aa19e5a4cad815a67dfce39bac07aa3c4f7ab20104024312d830320ba1dda9d372475be7c2055b0042554a85a8 WHIRLPOOL 9f81c802d823309152c2ba9a935b7ecb152eeb9edf14a2a71cef740aa052cc0ad940b3ed4440ab6114784eea918dbee843cadb1fd3ab18b0c4eeb65d7f990820 +EBUILD libsmbios-2.3.3.ebuild 1788 SHA256 cd2fc184c042b89edfe9478bd0d75d0cb74cb2b71dd8c4017552b6d75c1c72f3 SHA512 be969d82ec9f0d5f18b0b9c397bde36ee5eea184c1a41320cce25427f2d6eafa2d9565ad14c029222b978e20038d17071e345065cb6c2c9cf3e72f3639f4b354 WHIRLPOOL 4f1ba3c975c9ee4d9c6b455dc45f3d00998cbc63134f15bf1309aa6085b6ad61a679676702a3d849960f4fbe90e91df55947b940c0eeb538ef21474aac6f0ff7 +MISC ChangeLog 3510 SHA256 5773d6042b8e2fc451ad683e3281cb2fe24b59e35f7575de1dbd0f07b6bec7a9 SHA512 fc7590fa88188d6c2a8492dd56c07cc7a881c631e85a1bf1011f69d0990cf26e631c26e7630afd3f3d32f3d2a1272ba5ea28a326790619e7c0c3d3a0e529552f WHIRLPOOL c91f17364fb64a7f769065d31c26fc3d833dd04241161455f204829f207f368b49b275813c4694e88a55fa11ef5aa70c50323ac0dab0a8b0a93c4eb7c296efc1 +MISC ChangeLog-2015 6812 SHA256 d3122f7dc6cc89ac87433101dbb440766dd858ee086f30615cd602a8b7f5c93f SHA512 10c10ea7d73cf6dc23b61abaae766c18435cef681a17154ec68ea4507513ca69544618c76c54d9a56b1d08ad79bfbcb9ab1a2417e203d9cdbb53202f2710548b WHIRLPOOL aece36375fcb7c8a6af19b4e1e39a67c6be246821d96c7f81f41acaca8a880433b756792cf540c90e596b2842358090697df37a103f3c80f8d0e088b863e3263 +MISC metadata.xml 564 SHA256 0d622e90e8ab6e8fce3098ee24c756fe1c0942968bc95b9e01c03686b17f424f SHA512 d32499f8dc915da23ef8ce3b0f799d213d5cf700da8b80c83a94770d7fef72bc22ddbfbecf92e49c8ea0f56c4c2b718e53563a450870a77d7cdd3d3c5f610b1a WHIRLPOOL 6619e3435896d9964712070d2365d6ca8d80205382d46a6948d8371277a74d23e4ef0c1a77892308f2cb598f2515f6816ab60f4d045907f4a4b433e189bc6165 diff --git a/sys-libs/libsmbios/files/libsmbios-2.2.28-cppunit-tests.patch b/sys-libs/libsmbios/files/libsmbios-2.2.28-cppunit-tests.patch new file mode 100644 index 000000000000..ed8599ecff9c --- /dev/null +++ b/sys-libs/libsmbios/files/libsmbios-2.2.28-cppunit-tests.patch @@ -0,0 +1,10 @@ +--- libsmbios-2.2.28/src/libsmbios_c/smi/smi_linux.c ++++ libsmbios-2.2.28/src/libsmbios_c/smi/smi_linux.c +@@ -48,6 +48,7 @@ + #define bufsize 256 + + // not in header file. for private use by unit tests. ++LIBSMBIOS_C_DLL_SPEC void set_basedir(const char *); // needed to link tests + void set_basedir(const char *newdir) + { + sysfs_basedir = newdir; diff --git a/sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch b/sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch new file mode 100644 index 000000000000..ebe6798bd731 --- /dev/null +++ b/sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch @@ -0,0 +1,16 @@ +--- libsmbios-2.3.0/Makefile.am ++++ libsmbios-2.3.0/Makefile.am +@@ -89,10 +89,12 @@ + + + ########## DOCS ################ +-all: doxygen + if HAVE_DOXYGEN ++all: doxygen + DOXYGEN_DEPS=out/libsmbios_c/html/index.html out/libsmbios_c++/html/index.html + doxygen: $(DOXYGEN_DEPS) ++else ++all: + endif + + DOT=@DOT@ diff --git a/sys-libs/libsmbios/files/libsmbios-2.3.3-doxygen_target.patch b/sys-libs/libsmbios/files/libsmbios-2.3.3-doxygen_target.patch new file mode 100644 index 000000000000..4adca14f21d8 --- /dev/null +++ b/sys-libs/libsmbios/files/libsmbios-2.3.3-doxygen_target.patch @@ -0,0 +1,19 @@ +--- libsmbios-2.3.3/Makefile.am ++++ libsmbios-2.3.3/Makefile.am +@@ -89,13 +89,15 @@ + + + ########## DOCS ################ +-all: doxygen + if HAVE_DOXYGEN ++all: doxygen + DOXYGEN_DEPS=out/libsmbios_c/html/index.html + if BUILD_LIBSMBIOS_CXX + DOXYGEN_DEPS+=out/libsmbios_c++/html/index.html + endif + doxygen: $(DOXYGEN_DEPS) ++else ++all: + endif + + DOT=@DOT@ diff --git a/sys-libs/libsmbios/files/libsmbios-fix-pie.patch b/sys-libs/libsmbios/files/libsmbios-fix-pie.patch new file mode 100644 index 000000000000..3ab404e8ea2e --- /dev/null +++ b/sys-libs/libsmbios/files/libsmbios-fix-pie.patch @@ -0,0 +1,29 @@ +--- libsmbios-2.2.19/src/bin/dellMediaDirectCtl.cpp ++++ libsmbios-2.2.19/src/bin/dellMediaDirectCtl.cpp +@@ -183,16 +183,21 @@ + { + iopl(3); + ++ u32 tmpebx; + __asm__ __volatile__ ( +- // magic port +- "outb %%al, %%dx \n\t" +- ++ "movl %%ebx,%[tmpebx]\n\t" ++ "movl %[ebx],%%ebx\n\t" ++ // magic port ++ "outb %%al, %%dx \n\t" ++ "movl %%ebx,%[ebx]\n\t" ++ "movl %[tmpebx],%%ebx\n\t" + : /* output args */ + "=a" (r->eax), +- "=b" (r->ebx), ++ [ebx] "=rm" (r->ebx), + "=c" (r->ecx), + "=S" (r->esi), +- "=D" (r->edi) ++ "=D" (r->edi), ++ [tmpebx] "+m" (tmpebx) + : /* input args */ + "0" (r->eax), + "1" (r->ebx), diff --git a/sys-libs/libsmbios/libsmbios-2.3.0-r1.ebuild b/sys-libs/libsmbios/libsmbios-2.3.0-r1.ebuild new file mode 100644 index 000000000000..9c7ce6e794e9 --- /dev/null +++ b/sys-libs/libsmbios/libsmbios-2.3.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils flag-o-matic python-single-r1 + +DESCRIPTION="Provide access to (SM)BIOS information" +HOMEPAGE="http://linux.dell.com/libsmbios/main/index.html" +SRC_URI="http://linux.dell.com/libsmbios/download/libsmbios/${P}/${P}.tar.xz + http://linux.dell.com/libsmbios/download/libsmbios/old/${P}/${P}.tar.xz" + +LICENSE="GPL-2 OSL-2.0" +SLOT="0" +KEYWORDS="amd64 ia64 x86" +IUSE="doc graphviz nls python static-libs test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/libxml2 + sys-libs/zlib + nls? ( virtual/libintl ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + graphviz? ( media-gfx/graphviz ) + nls? ( sys-devel/gettext ) + test? ( >=dev-util/cppunit-1.9.6 )" + +PATCHES=( + "${FILESDIR}/${PN}-fix-pie.patch" + "${FILESDIR}/${PN}-2.2.28-cppunit-tests.patch" + "${FILESDIR}/${PN}-2.3.0-doxygen_target.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + # Don't build yum-plugin - we don't need it + sed '/yum-plugin/d' -i Makefile.am || die + + eautoreconf +} + +src_configure() { + #Remove -O3 for bug #290097 + replace-flags -O3 -O2 + + econf \ + $(use_enable doc doxygen) \ + $(use_enable graphviz) \ + $(use_enable nls) \ + $(use_enable python) \ + $(use_enable static-libs static) +} + +src_install() { + emake install DESTDIR="${D}" + + if use python ; then + python_scriptinto /usr/sbin + python_doscript "${ED%/}"/usr/sbin/smbios-{{keyboard,thermal,token,wakeup,wireless}-ctl,lcd-brightness,passwd,rbu-bios-update,sys-info} + fi + + insinto /usr/include/ + doins -r src/include/smbios/ + + dodoc AUTHORS ChangeLog NEWS README TODO + + use static-libs || prune_libtool_files --all +} diff --git a/sys-libs/libsmbios/libsmbios-2.3.2.ebuild b/sys-libs/libsmbios/libsmbios-2.3.2.ebuild new file mode 100644 index 000000000000..d2777066e17c --- /dev/null +++ b/sys-libs/libsmbios/libsmbios-2.3.2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools flag-o-matic python-single-r1 versionator + +DESCRIPTION="Provide access to (SM)BIOS information" +HOMEPAGE="http://linux.dell.com/files/libsmbios/" +SRC_URI="https://github.com/dell/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 OSL-2.0" +SLOT="0" +KEYWORDS="amd64 ia64 x86" +IUSE="doc graphviz nls python static-libs test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/libxml2 + sys-libs/zlib + nls? ( virtual/libintl ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + graphviz? ( media-gfx/graphviz ) + nls? ( sys-devel/gettext ) + test? ( >=dev-util/cppunit-1.9.6 )" + +PATCHES=( + "${FILESDIR}/${PN}-fix-pie.patch" + "${FILESDIR}/${PN}-2.2.28-cppunit-tests.patch" + "${FILESDIR}/${PN}-2.3.0-doxygen_target.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + # Don't build yum-plugin - we don't need it + sed '/yum-plugin/d' -i Makefile.am || die + + # Fix version string in build system + sed "/release_micro_version/s@\[1\]@[$(get_version_component_range 3)]@" \ + -i configure.ac || die + + eautoreconf +} + +src_configure() { + #Remove -O3 for bug #290097 + replace-flags -O3 -O2 + + econf \ + $(use_enable doc doxygen) \ + $(use_enable graphviz) \ + $(use_enable nls) \ + $(use_enable python) \ + $(use_enable static-libs static) +} + +src_install() { + emake install DESTDIR="${D}" + + if use python ; then + python_scriptinto /usr/sbin + python_doscript "${ED%/}"/usr/sbin/smbios-{{keyboard,thermal,token,wakeup,wireless}-ctl,lcd-brightness,passwd,sys-info} + fi + + insinto /usr/include/ + doins -r src/include/smbios/ + + einstalldocs + + if ! use static-libs ; then + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die + fi +} diff --git a/sys-libs/libsmbios/libsmbios-2.3.3.ebuild b/sys-libs/libsmbios/libsmbios-2.3.3.ebuild new file mode 100644 index 000000000000..f6024bfa3475 --- /dev/null +++ b/sys-libs/libsmbios/libsmbios-2.3.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools flag-o-matic python-single-r1 versionator + +DESCRIPTION="Provide access to (SM)BIOS information" +HOMEPAGE="http://linux.dell.com/files/libsmbios/" +SRC_URI="https://github.com/dell/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 OSL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="doc graphviz nls python static-libs test" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="dev-libs/libxml2 + sys-libs/zlib + nls? ( virtual/libintl ) + python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen ) + graphviz? ( media-gfx/graphviz ) + nls? ( sys-devel/gettext ) + test? ( >=dev-util/cppunit-1.9.6 )" + +PATCHES=( + "${FILESDIR}/${PN}-fix-pie.patch" + "${FILESDIR}/${PN}-2.2.28-cppunit-tests.patch" + "${FILESDIR}/${PN}-2.3.3-doxygen_target.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + # Don't build yum-plugin - we don't need it + sed '/yum-plugin/d' -i Makefile.am || die + + eautoreconf +} + +src_configure() { + #Remove -O3 for bug #290097 + replace-flags -O3 -O2 + + econf \ + $(use_enable doc doxygen) \ + $(use_enable graphviz) \ + $(use_enable nls) \ + $(use_enable python) \ + $(use_enable static-libs static) +} + +src_install() { + emake install DESTDIR="${D}" + + if use python ; then + python_scriptinto /usr/sbin + python_doscript "${ED%/}"/usr/sbin/smbios-{{keyboard,thermal,token,wakeup,wireless}-ctl,lcd-brightness,passwd,sys-info} + fi + + insinto /usr/include/ + doins -r src/include/smbios/ + doins -r src/include/smbios_c + + einstalldocs + + if ! use static-libs ; then + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die + fi +} diff --git a/sys-libs/libsmbios/metadata.xml b/sys-libs/libsmbios/metadata.xml new file mode 100644 index 000000000000..5da9415b6118 --- /dev/null +++ b/sys-libs/libsmbios/metadata.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <longdescription>The libsmbios project aims towards providing access to as much +BIOS information as possible. It does this by providing a library of functions +that can be used as well as sample binaries.</longdescription> + <upstream> + <remote-id type="github">dell/libsmbios</remote-id> + </upstream> +</pkgmetadata> |