aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-12-26 11:02:13 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-12-26 11:02:33 +0000
commit5b6116a91e5d664ecd2462652e04d5179d7bcf34 (patch)
tree14447e34beeac3ec54f6df160a2f5de038eb3f9a /main
parentde10b878d55aded5ac5774dc4b00aaa165425e9e (diff)
downloadaports-5b6116a91e5d664ecd2462652e04d5179d7bcf34.tar.bz2
aports-5b6116a91e5d664ecd2462652e04d5179d7bcf34.tar.xz
main/libell: moved to main because of a new bluez dependency
Diffstat (limited to 'main')
-rw-r--r--main/libell/APKBUILD36
-rw-r--r--main/libell/fix-WAIT_ANY-test-dbus.patch44
2 files changed, 80 insertions, 0 deletions
diff --git a/main/libell/APKBUILD b/main/libell/APKBUILD
new file mode 100644
index 0000000000..8d28a2d5d9
--- /dev/null
+++ b/main/libell/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Pedro Filipe <xpecex@outlook.com>
+pkgname=libell
+pkgver=0.16
+pkgrel=0
+pkgdesc="The Embedded Linux* Library (ELL) provides core, low-level functionality for system daemons."
+url="https://01.org/ell"
+arch="all"
+license="GPL-2.1"
+makedepends="libnl3-dev dbus linux-headers"
+subpackages="$pkgname-dev"
+source="https://mirrors.edge.kernel.org/pub/linux/libs/ell/ell-$pkgver.tar.xz
+ fix-WAIT_ANY-test-dbus.patch
+ "
+builddir="$srcdir/ell-$pkgver"
+options="!check" # testsuite shows unknown error in unit/test-cipher
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="bf2b4c8b50841ce8eb5e90ab9fd76f0e8fa1993e7dab0a45a50c21f33537fd110f0bbf1326c6e4cefeb6b95b8db5874c2802ec957b47173fe3681f2522fa5816 ell-0.16.tar.xz
+456f49b0f9c5ff93b1af2221d59f224b7b61847360e3f25b0d42af733fc4b296d30bb50349e00437c6e235c0bacba74c1a5b502dcc1b0c4bdbc38f101b3d4220 fix-WAIT_ANY-test-dbus.patch"
diff --git a/main/libell/fix-WAIT_ANY-test-dbus.patch b/main/libell/fix-WAIT_ANY-test-dbus.patch
new file mode 100644
index 0000000000..27c86eaa66
--- /dev/null
+++ b/main/libell/fix-WAIT_ANY-test-dbus.patch
@@ -0,0 +1,44 @@
+--- a/unit/test-dbus.c
++++ b/unit/test-dbus.c
+@@ -32,6 +32,10 @@
+
+ #define TEST_BUS_ADDRESS "unix:path=/tmp/ell-test-bus"
+
++#ifndef WAIT_ANY
++#define WAIT_ANY (-1)
++#endif
++
+ static pid_t dbus_daemon_pid = -1;
+
+ static void start_dbus_daemon(void)
+
+
+--- a/unit/test-dbus-message-fds.c
++++ b/unit/test-dbus-message-fds.c
+@@ -37,6 +37,10 @@
+
+ #define TEST_BUS_ADDRESS "unix:path=/tmp/ell-test-bus"
+
++#ifndef WAIT_ANY
++#define WAIT_ANY (-1)
++#endif
++
+ static pid_t dbus_daemon_pid = -1;
+
+ static bool start_dbus_daemon(void)
+
+
+--- a/unit/test-dbus-properties.c
++++ b/unit/test-dbus-properties.c
+@@ -34,6 +34,10 @@
+
+ #define TEST_BUS_ADDRESS "unix:path=/tmp/ell-test-bus"
+
++#ifndef WAIT_ANY
++#define WAIT_ANY (-1)
++#endif
++
+ static pid_t dbus_daemon_pid = -1;
+
+ static bool start_dbus_daemon(void)
+