From d963d1d7dd952411ee1a80d5e9a426687a31ece4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 14 Jul 2018 20:34:43 -0500 Subject: user/udisks2: pull in, bump to 0.99.7, take, fix up --- user/udisks2/APKBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++ user/udisks2/O_CLOEXEC.patch | 10 ++++++++ 2 files changed, 64 insertions(+) create mode 100644 user/udisks2/APKBUILD create mode 100644 user/udisks2/O_CLOEXEC.patch diff --git a/user/udisks2/APKBUILD b/user/udisks2/APKBUILD new file mode 100644 index 000000000..7132606b3 --- /dev/null +++ b/user/udisks2/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Natanael Copa +# Maintainer: A. Wilcox +pkgname=udisks2 +pkgver=2.7.7 +pkgrel=1 +pkgdesc="A Disk Manager" +url="https://www.freedesktop.org/wiki/Software/udisks" +arch="all" +license="GPL-2.0+" +depends="" +depends_dev="acl-dev gobject-introspection-dev libatasmart-dev libblockdev-dev + libgudev-dev polkit-dev" +makedepends="$depends_dev glib-dev gtk-doc intltool linux-headers" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" +source="https://github.com/storaged-project/udisks/releases/download/udisks-$pkgver/udisks-$pkgver.tar.bz2 + O_CLOEXEC.patch + " +builddir="$srcdir"/udisks-$pkgver + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-compile-warnings=minimum + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +libs() { + pkgdesc="Dynamic library to access the udisks daemon" + license="LGPL-2.0+" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/lib*.so.* \ + "$pkgdir"/usr/lib/girepository* \ + "$subpkgdir"/usr/lib/ +} + +sha512sums="f679feb10a4a569445538a835fc573035639ace7821b4319d2ff5be801145d74966f3bbd8c90afbd4ab02bee552af23fa23db55a5d3e7699d41a15df3477008e udisks-2.7.7.tar.bz2 +269ba55cc755e2a484670258bc530790691b66c9fce9479a2a17d78cff5d52dd1be89290979efd44a0ba82be665f52a356a57f2cbb67951d91fe09d4e24c2a6a O_CLOEXEC.patch" diff --git a/user/udisks2/O_CLOEXEC.patch b/user/udisks2/O_CLOEXEC.patch new file mode 100644 index 000000000..790fc2d8b --- /dev/null +++ b/user/udisks2/O_CLOEXEC.patch @@ -0,0 +1,10 @@ +--- src/udiskslinuxblock.c.orig ++++ ./src/udiskslinuxblock.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#define __USE_GNU + #include + #include + #include -- cgit v1.2.3-70-g09d2