diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-05-29 11:21:50 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-05 19:38:55 +0000 |
commit | 31ae663718a263e8ace2801e4ec1033e7f053b0b (patch) | |
tree | 9955dd87e2458331f55bfd5dfb89c7fd2a02f338 /community | |
parent | d978b6187bf01b79629369998d45f46f4a3ae43d (diff) | |
download | aports-31ae663718a263e8ace2801e4ec1033e7f053b0b.tar.bz2 aports-31ae663718a263e8ace2801e4ec1033e7f053b0b.tar.xz |
community/udisks2: move from main
Diffstat (limited to 'community')
-rw-r--r-- | community/udisks2/APKBUILD | 59 | ||||
-rw-r--r-- | community/udisks2/O_CLOEXEC.patch | 10 |
2 files changed, 69 insertions, 0 deletions
diff --git a/community/udisks2/APKBUILD b/community/udisks2/APKBUILD new file mode 100644 index 0000000000..d453d49405 --- /dev/null +++ b/community/udisks2/APKBUILD @@ -0,0 +1,59 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=udisks2 +pkgver=2.8.2 +pkgrel=1 +pkgdesc="A Disk Manager" +url="https://www.freedesktop.org/wiki/Software/udisks/" +arch="all" +license="GPL-2.0-or-later" +depends_dev="gobject-introspection-dev polkit-dev libatasmart-dev + libgudev-dev acl-dev" +makedepends="$depends_dev glib-dev intltool gtk-doc linux-headers libblockdev-dev + btrfs-progs-dev coreutils" +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 \ + --enable-lvm2 \ + --enable-lvmcache \ + --enable-btrfs \ + --enable-zram \ + --with-udevdir=/lib/udev + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +libs() { + pkgdesc="Dynamic library to access the udisks daemon" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/lib*.so.* \ + "$pkgdir"/usr/lib/girepository* \ + "$subpkgdir"/usr/lib/ +} + +sha512sums="dc0087ed2d3ab71dc66f63f868a6e2cd0e4e7578c40b2240739cecaffd6f50f5a2cecfc7ef7df9304e291d84ab12f59a940b9fb42b34a5a60d12061e6aaffc1a udisks-2.8.2.tar.bz2 +269ba55cc755e2a484670258bc530790691b66c9fce9479a2a17d78cff5d52dd1be89290979efd44a0ba82be665f52a356a57f2cbb67951d91fe09d4e24c2a6a O_CLOEXEC.patch" diff --git a/community/udisks2/O_CLOEXEC.patch b/community/udisks2/O_CLOEXEC.patch new file mode 100644 index 0000000000..790fc2d8b7 --- /dev/null +++ b/community/udisks2/O_CLOEXEC.patch @@ -0,0 +1,10 @@ +--- src/udiskslinuxblock.c.orig ++++ ./src/udiskslinuxblock.c +@@ -24,6 +24,7 @@ + #include <sys/types.h> + #include <sys/mount.h> + #include <sys/stat.h> ++#define __USE_GNU + #include <fcntl.h> + #include <pwd.h> + #include <grp.h> |