aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-08 09:11:18 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-28 14:57:43 +0000
commitea68d4ff00ba4fe618ba3dc7223a10a2380d3056 (patch)
treea8468c76431ed813c57d387b4e6b0db299867f80 /community
parent3c43d541c43c1fe6a42954350f92c498a7dc5c9d (diff)
downloadaports-ea68d4ff00ba4fe618ba3dc7223a10a2380d3056.tar.bz2
aports-ea68d4ff00ba4fe618ba3dc7223a10a2380d3056.tar.xz
community/udisks: move from main
Diffstat (limited to 'community')
-rw-r--r--community/udisks/APKBUILD43
-rw-r--r--community/udisks/udisks-uhelper.patch11
2 files changed, 54 insertions, 0 deletions
diff --git a/community/udisks/APKBUILD b/community/udisks/APKBUILD
new file mode 100644
index 0000000000..810d48a97d
--- /dev/null
+++ b/community/udisks/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Carlo Landmeter
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=udisks
+pkgver=1.0.5
+pkgrel=3
+pkgdesc="Disk Management Service"
+url="http://www.freedesktop.org/wiki/Software/udisks"
+arch="all"
+options="!check" # Test suite hardcoded to run 'sudo', wants mountable disks
+license="GPL-2.0-or-later"
+depends=""
+makedepends="glib-dev polkit-dev parted-dev libgudev-dev sg3_utils-dev
+ dbus-dev dbus-glib-dev lvm2-dev pkgconfig libatasmart-dev
+ intltool eggdbus-dev expat-dev docbook-xsl libxslt"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz
+ udisks-uhelper.patch
+ "
+
+builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --libexecdir=/usr/lib/udisks \
+ --localstatedir=/var \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
+}
+
+sha512sums="bdf4970113975221ff0e17866db18fd969ff9c8e1e851c8ad7572630814ab0c46b59df59433edcb2e7cc41cc8152afd35807f45e07f6d0fa87b21b5a77d0965a udisks-1.0.5.tar.gz
+f96d9626d1361af5ff80bd9a57a5adac2d7a0a12b1f47c446a623fe64c4e58f0e6d591bbc2ad7ca619fee09706fe13e8692f86219f2cc3ef825f055f765af2ce udisks-uhelper.patch"
diff --git a/community/udisks/udisks-uhelper.patch b/community/udisks/udisks-uhelper.patch
new file mode 100644
index 0000000000..b04d04836b
--- /dev/null
+++ b/community/udisks/udisks-uhelper.patch
@@ -0,0 +1,11 @@
+--- ./src/device.c.orig
++++ ./src/device.c
+@@ -6480,7 +6480,7 @@
+ options = prepend_default_mount_options (device, fsmo, caller_uid, given_options);
+
+ /* validate mount options and check for authorizations */
+- s = g_string_new ("uhelper=udisks,nodev,nosuid");
++ s = g_string_new ("nodev,nosuid");
+ for (n = 0; options[n] != NULL; n++)
+ {
+ const char *option = options[n];