diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-11 15:41:16 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-11 15:41:16 -0300 |
commit | bdc4f67889c958c1266fa5d0cab71c3cd639122f (patch) | |
tree | f4faaf11bc34ceef281cd9f5e64d7e867d2af667 /unmaintained | |
parent | dc6b0f243379b9fa6accd43faa90f8df8e4493f7 (diff) | |
download | aports-bdc4f67889c958c1266fa5d0cab71c3cd639122f.tar.bz2 aports-bdc4f67889c958c1266fa5d0cab71c3cd639122f.tar.xz |
community/libsmbios: move from unmaintained
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/libsmbios/APKBUILD | 50 | ||||
-rw-r--r-- | unmaintained/libsmbios/fixes.patch | 47 |
2 files changed, 0 insertions, 97 deletions
diff --git a/unmaintained/libsmbios/APKBUILD b/unmaintained/libsmbios/APKBUILD deleted file mode 100644 index 7d7c13ff21..0000000000 --- a/unmaintained/libsmbios/APKBUILD +++ /dev/null @@ -1,50 +0,0 @@ -# Contributor: Timo Teräs <timo.teras@iki.fi> -# Maintainer: Timo Teräs <timo.teras@iki.fi> -pkgname=libsmbios -pkgver=2.4.2 -pkgrel=1 -pkgdesc="library for interacting with Dell SMBIOS tables" -url="https://github.com/dell/libsmbios" -arch="x86_64 x86" -license="GPL-2.0-or-later AND OSL-2.1" -makedepends="autoconf automake bash libtool chrpath help2man - linux-headers gettext-dev libintl libxml2-dev" -checkdepends="python3" -subpackages="$pkgname-dev $pkgname-doc $pkgname-lang smbios-utils:utils" -source="libsmbios-$pkgver.tar.gz::https://github.com/dell/libsmbios/archive/v$pkgver.tar.gz - fixes.patch" -builddir="$srcdir/libsmbios-$pkgver" - -prepare() { - default_prepare - ./autogen.sh --no-configure -} - -build() { - export LIBS="$LIBS -lintl" - CONFIG_SHELL=/bin/bash \ - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-python \ - --disable-static - make -} - -check() { - make check -} - -package() { - make DESTDIR="$pkgdir" install - chrpath -d "$pkgdir"/usr/sbin/* -} - -utils() { - mkdir -p "$subpkgdir"/usr/ - mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/ -} - -sha512sums="51d1b11447d50b768658473d01bcb6cc7f9dd5c96c26ec343f222115ffb5047ca1f035a0bfb67f94f53165eaea7a0d9b70cf01f03333a30885bbac153bf761bd libsmbios-2.4.2.tar.gz -5dd3d95e4d57abc392b64d1ed2f7fc04ce42de78730d6835a6ff8cb22931b57ef2873b1ef9744d723e2c814b710bb3ee5c2446c171387293840b557b2ad93182 fixes.patch" diff --git a/unmaintained/libsmbios/fixes.patch b/unmaintained/libsmbios/fixes.patch deleted file mode 100644 index cab5e9c593..0000000000 --- a/unmaintained/libsmbios/fixes.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -ru libsmbios-2.4.2.orig/src/libsmbios_c/cmos/cmos_linux.c libsmbios-2.4.2/src/libsmbios_c/cmos/cmos_linux.c ---- libsmbios-2.4.2.orig/src/libsmbios_c/cmos/cmos_linux.c 2018-06-06 17:40:24.000000000 +0300 -+++ libsmbios-2.4.2/src/libsmbios_c/cmos/cmos_linux.c 2019-06-07 16:37:59.007546237 +0300 -@@ -35,6 +35,13 @@ - // private - #include "cmos_impl.h" - -+#ifndef outb_p -+#define outb_p outb -+#endif -+#ifndef inb_p -+#define inb_p inb -+#endif -+ - static int linux_read_fn(const struct cmos_access_obj *this, u8 *byte, u32 indexPort, u32 dataPort, u32 offset) - { - outb_p (offset, indexPort); -diff -ru libsmbios-2.4.2.orig/src/libsmbios_c/common/common.c libsmbios-2.4.2/src/libsmbios_c/common/common.c ---- libsmbios-2.4.2.orig/src/libsmbios_c/common/common.c 2018-06-06 17:40:24.000000000 +0300 -+++ libsmbios-2.4.2/src/libsmbios_c/common/common.c 2019-06-07 16:34:05.293776855 +0300 -@@ -26,10 +26,15 @@ - - if ((size_t)(bufsize - curstrsize - 1) < bufsize) - { -+#ifdef __GLIBC__ - char *buf = strerror_r(errval, errbuf + curstrsize, bufsize - curstrsize - 1); - // GNU breakage... :( - if (buf != (errbuf + curstrsize)) - strlcat(errbuf, buf, bufsize); -+#else -+ /* XSI compliant strerror_r() */ -+ strerror_r(errval, errbuf + curstrsize, bufsize - curstrsize - 1); -+#endif - } - } - #endif -diff -ru libsmbios-2.4.2.orig/src/libsmbios_c/smi/smi_linux.c libsmbios-2.4.2/src/libsmbios_c/smi/smi_linux.c ---- libsmbios-2.4.2.orig/src/libsmbios_c/smi/smi_linux.c 2018-06-06 17:40:24.000000000 +0300 -+++ libsmbios-2.4.2/src/libsmbios_c/smi/smi_linux.c 2019-06-07 16:34:05.293776855 +0300 -@@ -26,6 +26,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> -+#include <fcntl.h> - #include <sys/file.h> // flock - #include <sys/ioctl.h> // ioctl - #include <errno.h> |