wok-next view udisks/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents f48456621a9d
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="udisks"
4 VERSION="1.0.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="D-Bus interfaces to query and manipulate storage devices"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/udisks/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/udisks.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://hal.freedesktop.org/releases/$TARBALL"
15 BUILD_DEPENDS="libatasmart-dev eudev-dev sg3_utils-dev libgudev-dev \
16 polkit-dev dbus-dev dbus-glib-dev pcre-dev dbus-dev parted-dev \
17 libdevmapper-dev util-linux-blkid-dev util-linux-uuid-dev intltool libxslt \
18 docbook-xsl"
19 SPLIT="$PACKAGE-dev"
21 compile_rules() {
22 # fix glibc-2.24 issue
23 sed 's@#include <stdio\.h>@#include <sys/stat.h>\n#include <stdio.h>@' \
24 -i src/helpers/job-drive-detach.c
26 ./configure \
27 --disable-remote-access \
28 $CONFIGURE_ARGS &&
29 fix libtool &&
30 make &&
31 make \
32 profiledir=/etc/bash_completion.d \
33 install || return 1
35 # we don't have consolekit and don't want systemd so we need
36 # a rule to give disk group complete access to udisks2
37 # methods without password.
38 install -Dm644 $stuff/org.freedesktop.udisks.pkla \
39 $install/etc/polkit-1/localauthority/90-mandatory.d/org.freedesktop.udisks.pkla
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 udisks)
45 copy @std
46 DEPENDS="dbus dbus-glib eudev glib libatasmart libdevmapper \
47 libgudev libsgutils2 parted polkit bash sg3_utils \
48 util-linux-blkid dbus-helper util-linux-mount lsof" # not sure...
49 ;;
50 *-dev)
51 copy @dev
52 ;;
53 esac
54 }