Add support for udisks package.
v3 cover Add support for udisks package.
Changes from v2 (thanks Thomas Petazzoni for comments):
- sg3utils: fix license information
- polkit: fix license info + add wchar dependency
- libatasmart: fix description + license + comment on udev dependency
- drop patch which add installation of lvm2 app library. When choose
build only lvm2 (no dev mapper) then everything is build (lvm utils + dev mapper + app lib)
- udisks: fixe license + add lvm2 dependency
Changes from v1:
- fix various problems in sg3_utils and polkit packages (Thomas Petazzoni)
This patches add support for udisks and dependencies + fixes.
Patches for sg3_utils, polkit and udisks was done by Thomas Petazzoni and overtaken from
http://free-electrons.com/~thomas/pub/udisks-buildroot/.
They were fixed to work with latest buildroot.
lvm2 fix:
- correctly install devmapper.pc to staging/target
Marek Belisko (5):
sg3_utils: new package
polkit: new package
libatasmart: new package.
lvm2: Install devmapper.pc to staging/target pkgconfig directory.
udisks: new package
package/Config.in | 4 ++++ package/libatasmart/Config.in | 11 ++++++++++ package/libatasmart/libatasmart.mk | 18 +++++++++++++++++ package/lvm2/lvm2.mk | 2 +- package/polkit/Config.in | 11 ++++++++++ package/polkit/polkit.mk | 20 ++++++++++++++++++ package/sg3_utils/Config.in | 16 +++++++++++++++ package/sg3_utils/sg3_utils.mk | 39 ++++++++++++++++++++++++++++++++++++ package/udisks/Config.in | 32 +++++++++++++++++++++++++++++ package/udisks/udisks.mk | 28 ++++++++++++++++++++++++++ 10 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 package/libatasmart/Config.in create mode 100644 package/libatasmart/libatasmart.mk create mode 100644 package/polkit/Config.in create mode 100644 package/polkit/polkit.mk create mode 100644 package/sg3_utils/Config.in create mode 100644 package/sg3_utils/sg3_utils.mk create mode 100644 package/udisks/Config.in create mode 100644 package/udisks/udisks.mk
Signature · 1 line
1.7.10.4
PATCH v3 1/5 sg3_utils: new package
--- package/Config.in | 1 + package/sg3_utils/Config.in | 16 ++++++++++++++++ package/sg3_utils/sg3_utils.mk | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 package/sg3_utils/Config.in create mode 100644 package/sg3_utils/sg3_utils.mk
package/Config.in +1 -0
@@ -261,6 +261,7 @@ source "package/rpi-userland/Config.in" source "package/sane-backends/Config.in" source "package/sdparm/Config.in" source "package/setserial/Config.in" +source "package/sg3_utils/Config.in" source "package/smartmontools/Config.in" source "package/snowball-hdmiservice/Config.in" source "package/sredird/Config.in"
package/sg3_utils/Config.in new file +16 -0
@@ -0,0 +1,16 @@ +config BR2_PACKAGE_SG3_UTILS + bool "sgutils" + depends on BR2_LARGEFILE + depends on BR2_TOOLCHAIN_HAS_THREADS + help + Low level utilities for devices that use a SCSI command set. + This option install only libsgutils2 library not programs. + + http://sg.danny.cz/sg/sg3_utils.html + +config BR2_PACKAGE_SG3_UTILS_PROGS + bool "install programs" + depends on BR2_PACKAGE_SG3_UTILS + +comment "sgutils requires a toolchain with LARGEFILE and threads support" + depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
package/sg3_utils/sg3_utils.mk new file +39 -0
@@ -0,0 +1,39 @@ +############################################################# +# +# sg3_utils +# +############################################################# +SG3_UTILS_VERSION = 1.34 +SG3_UTILS_SITE = http://sg.danny.cz/sg/p/ +SG3_UTILS_LICENSE = BSD-3c +# utils progs are GPLv2+ licenced +ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),) +SG3_UTILS_LICENSE += GPLv2+ +endif +SG3_UTILS_LICENSE_FILES = COPYING BSD_LICENSE + +# install the libsgutils2 library +SG3_UTILS_INSTALL_STAGING = YES + +ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),) +define SG3_UTILS_REMOVE_PROGS + for prog in \ + dd decode_sense emc_trespass format get_config \ + get_lba_status ident inq logs luns map26 \ + map sgm_dd modes opcodes sgp_dd persist prevent \ + raw rbuf rdac read readcap read_block_limits \ + read_buffer read_long reassign referrals \ + requests reset rmsn rtpg safte sanitize \ + sat_identify sat_phy_event sat_set_features scan \ + senddiag ses start stpg sync test_rwbuf turs \ + unmap verify vpd write_buffer write_long \ + write_same wr_mode ; do \ + $(RM) $(TARGET_DIR)/usr/bin/sg_$${prog} ; \ + done + $(RM) $(TARGET_DIR)/usr/bin/sginfo +endef + +SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS +endif + +$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH v3 1/5 sg3_utils: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marek" == Marek Belisko <[email protected]> writes:
Marek> Signed-off-by: Thomas Petazzoni <[email protected]> Marek> Signed-off-by: Marek Belisko <[email protected]> Marek> ---
Marek> +++ b/package/sg3_utils/Config.in
Marek> @@ -0,0 +1,16 @@
Marek> +config BR2_PACKAGE_SG3_UTILS
Marek> + bool "sgutils"
It imho makes more sense to call it sg3-utils, as that's what upstream and E.G. Debian calls it, so I renamed the user visible name.
Marek> +++ b/package/sg3_utils/sg3_utils.mk
Marek> @@ -0,0 +1,39 @@
Marek> +############################################################# Marek> +#
Marek> +# sg3_utils
Marek> +#
Marek> +############################################################# Marek> +SG3_UTILS_VERSION = 1.34
Marek> +SG3_UTILS_SITE = http://sg.danny.cz/sg/p/
Marek> +SG3_UTILS_LICENSE = BSD-3c
Marek> +# utils progs are GPLv2+ licenced
Marek> +ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
I prefer positive logic, so I inverted this check.
Committed with those modifications, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 2/5 polkit: new package
In reply to Marek Belisko--- package/Config.in | 1 + package/polkit/Config.in | 11 +++++++++++ package/polkit/polkit.mk | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 package/polkit/Config.in create mode 100644 package/polkit/polkit.mk
package/Config.in +1 -0
@@ -761,6 +761,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/module-init-tools/Config.in" endif source "package/monit/Config.in" +source "package/polkit/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/procps/Config.in" source "package/psmisc/Config.in"
package/polkit/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_POLKIT + bool "polkit" + depends on BR2_USE_WCHAR # gettext + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_EXPAT + help + PolicyKit is a toolkit for defining and handling + authorizations. It is used for allowing unprivileged + processes to speak to privileged processes. + + http://www.freedesktop.org/wiki/Software/polkit
package/polkit/polkit.mk new file +20 -0
@@ -0,0 +1,20 @@ +############################################################# +# +# polkit +# +############################################################# +POLKIT_VERSION = 0.103 +POLKIT_SITE = http://www.freedesktop.org/software/polkit/releases/ +POLKIT_LICENSE = GPLv2 +POLKIT_LICENSE_FILES = COPYING + +POLKIT_INSTALL_STAGING = YES + +POLKIT_DEPENDENCIES = libglib2 host-intltool expat + +# We could also support --with-authfw=pam +POLKIT_CONF_OPT = \ + --with-authfw=shadow \ + --with-os-type=unknown + +$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH v3 2/5 polkit: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marek" == Marek Belisko <[email protected]> writes:
Marek> Signed-off-by: Thomas Petazzoni <[email protected]> Marek> Signed-off-by: Marek Belisko <[email protected]> Marek> ---
Marek> package/Config.in | 1 + Marek> package/polkit/Config.in | 11 +++++++++++ Marek> package/polkit/polkit.mk | 20 ++++++++++++++++++++ Marek> 3 files changed, 32 insertions(+) Marek> create mode 100644 package/polkit/Config.in Marek> create mode 100644 package/polkit/polkit.mk
Marek> diff --git a/package/Config.in b/package/Config.in Marek> index e6153f0..c889d8a 100644
Marek> --- a/package/Config.in
Marek> +++ b/package/Config.in
Marek> @@ -761,6 +761,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
Marek> source "package/module-init-tools/Config.in" Marek> endif Marek> source "package/monit/Config.in" Marek> +source "package/polkit/Config.in" Marek> if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS Marek> source "package/procps/Config.in" Marek> source "package/psmisc/Config.in"
Marek> diff --git a/package/polkit/Config.in b/package/polkit/Config.in Marek> new file mode 100644
Marek> index 0000000..36206bd
Marek> --- /dev/null
Marek> +++ b/package/polkit/Config.in
Marek> @@ -0,0 +1,11 @@
Marek> +config BR2_PACKAGE_POLKIT
Marek> + bool "polkit"
Marek> + depends on BR2_USE_WCHAR # gettext
Marek> + select BR2_PACKAGE_LIBGLIB2
While the comment is technically correct, I find it more helpful to mention that the dependency comes from libglib2 (and indirectly from gettext), so I've changed that.
Committed with that small change, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 3/5 libatasmart: new package.
In reply to Marek Belisko--- package/Config.in | 1 + package/libatasmart/Config.in | 11 +++++++++++ package/libatasmart/libatasmart.mk | 18 ++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 package/libatasmart/Config.in create mode 100644 package/libatasmart/libatasmart.mk
package/Config.in +1 -0
@@ -239,6 +239,7 @@ source "package/iostat/Config.in" source "package/irda-utils/Config.in" source "package/kbd/Config.in" source "package/lcdproc/Config.in" +source "package/libatasmart/Config.in" source "package/lm-sensors/Config.in" source "package/lshw/Config.in" source "package/lsuio/Config.in"
package/libatasmart/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBATASMART + bool "libatasmart" + depends on BR2_PACKAGE_UDEV # libudev is configure dependency + help + The libatasmart package is a disk reporting library. + It only supports a subset of the ATA S.M.A.R.T. functionality. + + http://www.linuxfromscratch.org/blfs/view/svn/general/libatasmart.html + +comment "libatasmart requires udev to be enabled" + depends on !BR2_PACKAGE_UDEV
package/libatasmart/libatasmart.mk new file +18 -0
@@ -0,0 +1,18 @@ +############################################################# +# +# libatasmart +# +############################################################# +LIBATASMART_VERSION = 0.19 +LIBATASMART_SOURCE = libatasmart-$(LIBATASMART_VERSION).tar.xz +LIBATASMART_SITE = http://0pointer.de/public +LIBATASMART_LICENSE = LGPLv2.1 +LIBATASMART_LICENSE_FILE = LGPL +LIBATASMART_INSTALL_STAGING = YES + +# package doesn't include configure script +LIBATASMART_AUTORECONF = YES + +LIBATASMART_DEPENDENCIES = udev + +$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH v3 4/5 lvm2: Install devmapper.pc to staging/target pkgconfig directory.
In reply to Marek BeliskoWithout this change if some package which have dependency on device mapper and use pkgconfig to check version always fail to find library because devmapper.pc file wasn't installed.
--- package/lvm2/lvm2.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/lvm2/lvm2.mk +1 -1
@@ -21,7 +21,7 @@ LVM2_BINS = \ # Make sure that binaries and libraries are installed with write # permissions for the owner. -LVM2_CONF_OPT += --enable-write_install +LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig # LVM2 uses autoconf, but not automake, and the build system does not # take into account the CC passed at configure time.
Signature · 1 line
1.7.10.4
PATCH v3 4/5 lvm2: Install devmapper.pc to staging/target pkgconfig directory.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marek" == Marek Belisko <[email protected]> writes:
Marek> Without this change if some package which have dependency on Marek> device mapper and use pkgconfig to check version always fail to Marek> find library because devmapper.pc file wasn't installed.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 5/5 udisks: new package
In reply to Marek Belisko--- package/Config.in | 1 + package/udisks/Config.in | 32 ++++++++++++++++++++++++++++++++ package/udisks/udisks.mk | 28 ++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 package/udisks/Config.in create mode 100644 package/udisks/udisks.mk
package/Config.in +1 -0
@@ -271,6 +271,7 @@ source "package/sysstat/Config.in" source "package/ti-utils/Config.in" source "package/uboot-tools/Config.in" source "package/udev/Config.in" +source "package/udisks/Config.in" source "package/usb_modeswitch/Config.in" source "package/usb_modeswitch_data/Config.in" source "package/usbmount/Config.in"
package/udisks/Config.in new file +32 -0
@@ -0,0 +1,32 @@ +config BR2_PACKAGE_UDISKS + bool "udisks" + depends on BR2_PACKAGE_UDEV + depends on BR2_PACKAGE_DBUS + select BR2_PACKAGE_SG3_UTILS + select BR2_PACKAGE_UDEV_ALL_EXTRAS + select BR2_PACKAGE_DBUS_GLIB + select BR2_PACKAGE_POLKIT + select BR2_PACKAGE_PARTED + select BR2_PACKAGE_LVM2 + select BR2_PACKAGE_LIBATASMART + help + The udisks project provides + + o A storage daemon that implements well-defined D-Bus + interfaces that can be used to query and manipulate + storage devices. + + o a command-line tool, udisks(1), that can be used to query + and use the daemon + + http://www.freedesktop.org/wiki/Software/udisks + +config BR2_PACKAGE_UDISKS_LVM2 + bool "lvm2 support" + depends on BR2_PACKAGE_UDISKS + default n + help + With LVM2 support. + +comment "udisks requires udev and dbus to be enabled" + depends on !BR2_PACKAGE_UDEV || !BR2_PACKAGE_DBUS
package/udisks/udisks.mk new file +28 -0
@@ -0,0 +1,28 @@ +############################################################# +# +# udisks +# +############################################################# +UDISKS_VERSION = 1.0.4 +UDISKS_SITE = http://hal.freedesktop.org/releases/ +UDISKS_LICENCE = GPLv2+ +UDISKS_LICENCE_FILES = COPYING + +UDISKS_DEPENDENCIES = \ + sg3_utils \ + host-pkgconf \ + udev \ + dbus \ + dbus-glib \ + polkit \ + parted \ + lvm2 \ + libatasmart + +UDISKS_CONF_OPT = --disable-remote-access --disable-gtk-doc + +ifeq ($(BR2_PACKAGE_UDISKS_LVM2),y) +UDISKS_CONF_OPT += --enable-lvm2 +endif + +$(eval $(autotools-package))
Signature · 1 line
1.7.10.4
PATCH v3 5/5 udisks: new package
Hi,
Any objections to this patch?
Quoted 95 lines · Marek Belisko
Signed-off-by Thomas Petazzoni <[email protected]>Signed-off-by Marek Belisko <[email protected]>--- package/Config.in | 1 + package/udisks/Config.in | 32 ++++++++++++++++++++++++++++++++ package/udisks/udisks.mk | 28 ++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 package/udisks/Config.in create mode 100644 package/udisks/udisks.mkpackage/Config.in +1
-0@@ -271,6 +271,7 @@ source "package/sysstat/Config.in" source "package/ti-utils/Config.in" source "package/uboot-tools/Config.in" source "package/udev/Config.in" +source "package/udisks/Config.in" source "package/usb_modeswitch/Config.in" source "package/usb_modeswitch_data/Config.in" source "package/usbmount/Config.in"package/udisks/Config.in new file +32
-0@@ -0,0 +1,32 @@ +config BR2_PACKAGE_UDISKS + bool "udisks" + depends on BR2_PACKAGE_UDEV + depends on BR2_PACKAGE_DBUS + select BR2_PACKAGE_SG3_UTILS + select BR2_PACKAGE_UDEV_ALL_EXTRAS + select BR2_PACKAGE_DBUS_GLIB + select BR2_PACKAGE_POLKIT + select BR2_PACKAGE_PARTED + select BR2_PACKAGE_LVM2 + select BR2_PACKAGE_LIBATASMART + help + The udisks project provides + + o A storage daemon that implements well-defined D-Bus + interfaces that can be used to query and manipulate + storage devices. + + o a command-line tool, udisks(1), that can be used to query + and use the daemon + + http://www.freedesktop.org/wiki/Software/udisks + +config BR2_PACKAGE_UDISKS_LVM2 + bool "lvm2 support" + depends on BR2_PACKAGE_UDISKS + default n + help + With LVM2 support. + +comment "udisks requires udev and dbus to be enabled" + depends on !BR2_PACKAGE_UDEV || !BR2_PACKAGE_DBUSpackage/udisks/udisks.mk new file +28
-1@@ -0,0 +1,28 @@ +############################################################# +# +# udisks +# +############################################################# +UDISKS_VERSION = 1.0.4 +UDISKS_SITE = http://hal.freedesktop.org/releases/ +UDISKS_LICENCE = GPLv2+ +UDISKS_LICENCE_FILES = COPYING + +UDISKS_DEPENDENCIES = \ + sg3_utils \ + host-pkgconf \ + udev \ + dbus \ + dbus-glib \ + polkit \ + parted \ + lvm2 \ + libatasmart + +UDISKS_CONF_OPT = --disable-remote-access --disable-gtk-doc + +ifeq ($(BR2_PACKAGE_UDISKS_LVM2),y) +UDISKS_CONF_OPT += --enable-lvm2 +endif + +$(eval $(autotools-package)) --
Quoted 2 lines
1.7.10.4
marek
Signature · 10 lines
as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
PATCH v3 5/5 udisks: new package
In reply to Marek BeliskoQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marek" == Marek Belisko <[email protected]> writes:
Marek> Signed-off-by: Thomas Petazzoni <[email protected]> Marek> Signed-off-by: Marek Belisko <[email protected]> Marek> ---
Marek> package/Config.in | 1 + Marek> package/udisks/Config.in | 32 ++++++++++++++++++++++++++++++++ Marek> package/udisks/udisks.mk | 28 ++++++++++++++++++++++++++++ Marek> 3 files changed, 61 insertions(+) Marek> create mode 100644 package/udisks/Config.in Marek> create mode 100644 package/udisks/udisks.mk
Marek> diff --git a/package/Config.in b/package/Config.in Marek> index 7201d1d..d3e3c44 100644
Marek> --- a/package/Config.in
Marek> +++ b/package/Config.in
Marek> @@ -271,6 +271,7 @@ source "package/sysstat/Config.in"
Marek> source "package/ti-utils/Config.in" Marek> source "package/uboot-tools/Config.in" Marek> source "package/udev/Config.in" Marek> +source "package/udisks/Config.in" Marek> source "package/usb_modeswitch/Config.in" Marek> source "package/usb_modeswitch_data/Config.in" Marek> source "package/usbmount/Config.in"
Marek> diff --git a/package/udisks/Config.in b/package/udisks/Config.in Marek> new file mode 100644
Marek> index 0000000..1637199
Marek> --- /dev/null
Marek> +++ b/package/udisks/Config.in
Marek> @@ -0,0 +1,32 @@
Marek> +config BR2_PACKAGE_UDISKS
Marek> + bool "udisks"
Marek> + depends on BR2_PACKAGE_UDEV
Marek> + depends on BR2_PACKAGE_DBUS
It makes more sense to use the BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV symbol like udev does.
dbus can be selected like a normal library these days, so I've changed it to use that and reordered the lines.
Marek> + select BR2_PACKAGE_SG3_UTILS
Marek> + select BR2_PACKAGE_UDEV_ALL_EXTRAS
Marek> + select BR2_PACKAGE_DBUS_GLIB
Marek> + select BR2_PACKAGE_POLKIT
Marek> + select BR2_PACKAGE_PARTED
Marek> + select BR2_PACKAGE_LVM2
Marek> + select BR2_PACKAGE_LIBATASMART
Marek> + help
Marek> + The udisks project provides
Marek> +
Marek> + o A storage daemon that implements well-defined D-Bus
Marek> + interfaces that can be used to query and manipulate
Marek> + storage devices.
Marek> +
Marek> + o a command-line tool, udisks(1), that can be used to query
Marek> + and use the daemon
Marek> +
Marek> + http://www.freedesktop.org/wiki/Software/udisks
Marek> +
Marek> +config BR2_PACKAGE_UDISKS_LVM2
Marek> + bool "lvm2 support"
Marek> + depends on BR2_PACKAGE_UDISKS
Marek> + default n
'n' is default anyway, so this is not needed.
You forgot to select BR2_PACKAGE_LVM2_APP_LIBRARY, so I've added that.
Marek> + help
Marek> + With LVM2 support.
Marek> +
Marek> +comment "udisks requires udev and dbus to be enabled"
Marek> + depends on !BR2_PACKAGE_UDEV || !BR2_PACKAGE_DBUS
And adjusted the comment.
Committed with these fixes, thanks.
Signature · 1 line
Bye, Peter Korsgaard