wok-next rev 19937
Add udisks2-kitless
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Oct 15 17:13:53 2017 +0200 (2017-10-15) |
parents | b3372388a986 |
children | a9789d119ac7 |
files | udisks2-kitless/receipt udisks2-kitless/stuff/99-udisks2.rules udisks2-kitless/stuff/org.freedesktop.udisks2.pkla |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/udisks2-kitless/receipt Sun Oct 15 17:13:53 2017 +0200 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="udisks2-kitless" 1.7 +VERSION="2.1.8" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="D-Bus service to access and manipulate storage devices" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://github.com/ehegnes/udisks-kitless/" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WGET_URL="${WEB_SITE}archive/v${TARBALL/*-/}" 1.15 + 1.16 +DEPENDS="libatasmart libgudev" 1.17 +BUILD_DEPENDS="docbook-xsl gtk-doc libgudev-dev libatasmart-dev \ 1.18 +gobject-introspection-dev intltool" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + ./configure \ 1.24 + --sysconfdir=/etc \ 1.25 + --localstatedir=/var \ 1.26 + --enable-fhs-media \ 1.27 + --with-udevdir=/etc/udev \ 1.28 + --with-systemdsystemunitdir=no \ 1.29 + $CONFIGURE_ARGS && 1.30 + make && make install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + copy etc/ bin/ sbin/ libexec/ dbus-1/ polkit-1/ var/ *.so* 1.37 + 1.38 + sed '/lang=/d' -i \ 1.39 + $fs/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy 1.40 + 1.41 + # Please, note: 1.42 + # Package: slitaz-configs-base 1.43 + # File: /etc/polkit-1/localauthority/50-local.d/55-storage.pkla 1.44 + # Provides: complete access to udisks2 methods 1.45 + 1.46 + # mount to "/media" instead of "/media/<user>" 1.47 + cp $stuff/99-udisks2.rules $fs/etc/udev/rules.d/ 1.48 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/udisks2-kitless/stuff/99-udisks2.rules Sun Oct 15 17:13:53 2017 +0200 2.3 @@ -0,0 +1,5 @@ 2.4 +# UDISKS_FILESYSTEM_SHARED 2.5 +# ==1: mount filesystem to a shared directory (/media/VolumeName) 2.6 +# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName) 2.7 +# See udisks(8) 2.8 +ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1"