wok-current annotate udisks/receipt @ rev 24304

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 11:01:52 2022 +0000 (2022-01-17)
parents 8c7478c747dd
children 1805f71c5d9f
rev   line source
monghitri@14135 1 # SliTaz package receipt.
monghitri@14135 2
monghitri@14135 3 PACKAGE="udisks"
Hans-G?nter@23713 4 VERSION="1.0.5"
monghitri@14135 5 CATEGORY="system-tools"
monghitri@14135 6 SHORT_DESC="D-Bus interfaces to query and manipulate storage devices."
monghitri@14135 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@23713 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/udisks/"
Hans-G?nter@23713 10
monghitri@14135 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
monghitri@14135 12 WGET_URL="http://hal.freedesktop.org/releases/$TARBALL"
pascal@15002 13
Hans-G?nter@23713 14 DEPENDS="dbus dbus-helper libatasmart libdevmapper libgio libgudev libsgutils2
Hans-G?nter@23713 15 lsof parted polkit sg3_utils udev util-linux-blkid util-linux-mount"
Hans-G?nter@23713 16 BUILD_DEPENDS="dbus-dev dbus-glib-dev docbook-xsl flex libatasmart-dev
Hans-G?nter@23713 17 libdevmapper-dev libgudev-dev libxslt parted-dev pcre-dev polkit-dev
Hans-G?nter@23713 18 sg3_utils-dev udev-dev util-linux-blkid-dev util-linux-uuid-dev"
monghitri@14135 19
pascal@24304 20 # What is the latest version available today?
pascal@24304 21 current_version()
pascal@24304 22 {
pascal@24304 23 wget -O - https://github.com/storaged-project/udisks/releases 2>/dev/null | \
pascal@24304 24 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 25 }
pascal@24304 26
monghitri@14135 27 # Rules to configure and make the package.
monghitri@14135 28 compile_rules()
monghitri@14135 29 {
Hans-G?nter@23713 30 ./configure \
Hans-G?nter@23713 31 --prefix=/usr \
Hans-G?nter@23713 32 --libexecdir=/usr/lib/udisks \
Hans-G?nter@23713 33 --sysconfdir=/etc \
Hans-G?nter@23713 34 --localstatedir=/var \
Hans-G?nter@23713 35 --disable-static \
Hans-G?nter@23713 36 --disable-remote-access \
Hans-G?nter@23713 37 --disable-gtk-doc-html \
Hans-G?nter@23713 38 --with-systemdsystemunitdir=no \
monghitri@14135 39 $CONFIGURE_ARGS &&
Hans-G?nter@23713 40 make &&
Hans-G?nter@23713 41 make install
monghitri@14135 42 }
monghitri@14135 43
monghitri@14135 44 # Rules to gen a SliTaz package suitable for Tazpkg.
monghitri@14135 45 genpkg_rules()
monghitri@14135 46 {
Hans-G?nter@23713 47 mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d
Hans-G?nter@23713 48 mkdir -p $fs/usr/lib/udev $fs/usr/share $fs/etc/udev
Hans-G?nter@23713 49
Hans-G?nter@23713 50 cp -a $install/etc/dbus-1 $fs/etc
Hans-G?nter@23713 51 cp -a $install/lib/udev/rules.d $fs/etc/udev
Hans-G?nter@23713 52 cp -a $install/lib/udev/udisks* $fs/usr/lib/udev/
Hans-G?nter@23713 53 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23713 54 cp -a $install/sbin $fs
Hans-G?nter@23713 55 cp -a $install/usr/lib/udisks $fs/usr/lib
Hans-G?nter@23713 56 cp -a $install/usr/share/*-1 $fs/usr/share
Hans-G?nter@23713 57
monghitri@14135 58 #we don't have consolekit and don't want systemd so we need
monghitri@14135 59 #a rule to give disk group complete access to udisks2
monghitri@14135 60 #methods without password.
monghitri@14135 61 cp $stuff/org.freedesktop.udisks.pkla \
Hans-G?nter@23713 62 $fs/etc/polkit-1/localauthority/90-mandatory.d
monghitri@14135 63 }