* [Buildroot] [PATCH 1/6] sg3_utils: new package
2012-12-21 21:51 [Buildroot] [PATCH 0/6] Add support for udisks package Marek Belisko
@ 2012-12-21 21:51 ` Marek Belisko
2012-12-22 15:14 ` Thomas Petazzoni
2012-12-21 21:51 ` [Buildroot] [PATCH 2/6] polkit: " Marek Belisko
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Marek Belisko @ 2012-12-21 21:51 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
---
package/Config.in | 1 +
package/sg3_utils/Config.in | 15 +++++++++++++++
package/sg3_utils/sg3_utils.mk | 33 +++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+)
create mode 100644 package/sg3_utils/Config.in
create mode 100644 package/sg3_utils/sg3_utils.mk
diff --git a/package/Config.in b/package/Config.in
index 66445ff..afecb8e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -253,6 +253,7 @@ source "package/rng-tools/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"
diff --git a/package/sg3_utils/Config.in b/package/sg3_utils/Config.in
new file mode 100644
index 0000000..d120e55
--- /dev/null
+++ b/package/sg3_utils/Config.in
@@ -0,0 +1,15 @@
+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.
+
+ 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
diff --git a/package/sg3_utils/sg3_utils.mk b/package/sg3_utils/sg3_utils.mk
new file mode 100644
index 0000000..1c629e8
--- /dev/null
+++ b/package/sg3_utils/sg3_utils.mk
@@ -0,0 +1,33 @@
+#############################################################
+#
+# sg3_utils
+#
+#############################################################
+SG3_UTILS_VERSION = 1.34
+SG3_UTILS_SITE = http://sg.danny.cz/sg/p/
+
+# install the libsgutils2 library
+SG3_UTILS_INSTALL_STAGING = YES
+
+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
+
+ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),y)
+SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
+endif
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [Buildroot] [PATCH 1/6] sg3_utils: new package
2012-12-21 21:51 ` [Buildroot] [PATCH 1/6] sg3_utils: new package Marek Belisko
@ 2012-12-22 15:14 ` Thomas Petazzoni
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-22 15:14 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Fri, 21 Dec 2012 22:51:05 +0100, Marek Belisko wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
> ---
> package/Config.in | 1 +
> package/sg3_utils/Config.in | 15 +++++++++++++++
> package/sg3_utils/sg3_utils.mk | 33 +++++++++++++++++++++++++++++++++
> 3 files changed, 49 insertions(+)
> create mode 100644 package/sg3_utils/Config.in
> create mode 100644 package/sg3_utils/sg3_utils.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 66445ff..afecb8e 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -253,6 +253,7 @@ source "package/rng-tools/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"
> diff --git a/package/sg3_utils/Config.in b/package/sg3_utils/Config.in
> new file mode 100644
> index 0000000..d120e55
> --- /dev/null
> +++ b/package/sg3_utils/Config.in
> @@ -0,0 +1,15 @@
> +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.
> +
> + http://sg.danny.cz/sg/sg3_utils.html
> +
> +config BR2_PACKAGE_SG3_UTILS_PROGS
> + bool "install programs"
The "bool" should be preceded by a tab, not spaces.
> + depends on BR2_PACKAGE_SG3_UTILS
> +
> +comment "sgutils requires a toolchain with LARGEFILE and threads support"
> + depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
Tab, not spaces before the depends on.
> diff --git a/package/sg3_utils/sg3_utils.mk b/package/sg3_utils/sg3_utils.mk
> new file mode 100644
> index 0000000..1c629e8
> --- /dev/null
> +++ b/package/sg3_utils/sg3_utils.mk
> @@ -0,0 +1,33 @@
> +#############################################################
> +#
> +# sg3_utils
> +#
> +#############################################################
> +SG3_UTILS_VERSION = 1.34
> +SG3_UTILS_SITE = http://sg.danny.cz/sg/p/
Please add SG3_UTILS_LICENSE and SG3_UTILS_LICENSE_FILES.
> +# install the libsgutils2 library
> +SG3_UTILS_INSTALL_STAGING = YES
> +
> +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
> +
> +ifneq ($(BR2_PACKAGE_SG3_UTILS_PROGS),y)
> +SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
> +endif
Maybe we should turn this into positive logic, and put the
SG3_UTILS_REMOVE_PROGS macro inside the condition. Something like:
ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),)
define SG3_UTILS_REMOVE_PROGS
...
endef
SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
endif
Otherwise, looks good (but untested).
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/6] polkit: new package
2012-12-21 21:51 [Buildroot] [PATCH 0/6] Add support for udisks package Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 1/6] sg3_utils: new package Marek Belisko
@ 2012-12-21 21:51 ` Marek Belisko
2012-12-22 15:18 ` Thomas Petazzoni
2012-12-22 15:19 ` Thomas Petazzoni
2012-12-21 21:51 ` [Buildroot] [PATCH 3/6] libatasmart: " Marek Belisko
` (3 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: Marek Belisko @ 2012-12-21 21:51 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
---
package/Config.in | 1 +
package/polkit/Config.in | 8 ++++++++
package/polkit/polkit.mk | 18 ++++++++++++++++++
3 files changed, 27 insertions(+)
create mode 100644 package/polkit/Config.in
create mode 100644 package/polkit/polkit.mk
diff --git a/package/Config.in b/package/Config.in
index afecb8e..155a429 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -749,6 +749,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"
diff --git a/package/polkit/Config.in b/package/polkit/Config.in
new file mode 100644
index 0000000..9ca347a
--- /dev/null
+++ b/package/polkit/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_POLKIT
+ bool "polkit"
+ select BR2_PACKAGE_LIBGLIB2
+ select BR2_DBUS_EXPAT
+ help
+ PolicyKit is a toolkit for defining and handling
+ authorizations. It is used for allowing unprivileged
+ processes to speak to privileged processes.
diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
new file mode 100644
index 0000000..8c882f2
--- /dev/null
+++ b/package/polkit/polkit.mk
@@ -0,0 +1,18 @@
+#############################################################
+#
+# polkit
+#
+#############################################################
+POLKIT_VERSION = 0.103
+POLKIT_SITE = http://www.freedesktop.org/software/polkit/releases/
+
+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))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [Buildroot] [PATCH 2/6] polkit: new package
2012-12-21 21:51 ` [Buildroot] [PATCH 2/6] polkit: " Marek Belisko
@ 2012-12-22 15:18 ` Thomas Petazzoni
2012-12-22 21:54 ` Belisko Marek
2012-12-22 15:19 ` Thomas Petazzoni
1 sibling, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-22 15:18 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Fri, 21 Dec 2012 22:51:06 +0100, Marek Belisko wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
> ---
> package/Config.in | 1 +
> package/polkit/Config.in | 8 ++++++++
> package/polkit/polkit.mk | 18 ++++++++++++++++++
> 3 files changed, 27 insertions(+)
> create mode 100644 package/polkit/Config.in
> create mode 100644 package/polkit/polkit.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index afecb8e..155a429 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -749,6 +749,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"
> diff --git a/package/polkit/Config.in b/package/polkit/Config.in
> new file mode 100644
> index 0000000..9ca347a
> --- /dev/null
> +++ b/package/polkit/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_POLKIT
> + bool "polkit"
Should be a tab, not spaces.
> + select BR2_PACKAGE_LIBGLIB2
> + select BR2_DBUS_EXPAT
> + help
> + PolicyKit is a toolkit for defining and handling
> + authorizations. It is used for allowing unprivileged
> + processes to speak to privileged processes.
Upstream URL missing.
> diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
> new file mode 100644
> index 0000000..8c882f2
> --- /dev/null
> +++ b/package/polkit/polkit.mk
> @@ -0,0 +1,18 @@
> +#############################################################
> +#
> +# polkit
> +#
> +#############################################################
> +POLKIT_VERSION = 0.103
> +POLKIT_SITE = http://www.freedesktop.org/software/polkit/releases/
> +
> +POLKIT_INSTALL_STAGING = YES
I don't remember, does polkit installs some libraries or .pc files, or
something that justify its installation in staging ?
> +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))
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/6] polkit: new package
2012-12-22 15:18 ` Thomas Petazzoni
@ 2012-12-22 21:54 ` Belisko Marek
2012-12-22 23:27 ` Thomas Petazzoni
0 siblings, 1 reply; 14+ messages in thread
From: Belisko Marek @ 2012-12-22 21:54 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Sat, Dec 22, 2012 at 4:18 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Fri, 21 Dec 2012 22:51:06 +0100, Marek Belisko wrote:
>> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>> Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
>> ---
>> package/Config.in | 1 +
>> package/polkit/Config.in | 8 ++++++++
>> package/polkit/polkit.mk | 18 ++++++++++++++++++
>> 3 files changed, 27 insertions(+)
>> create mode 100644 package/polkit/Config.in
>> create mode 100644 package/polkit/polkit.mk
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index afecb8e..155a429 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -749,6 +749,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"
>> diff --git a/package/polkit/Config.in b/package/polkit/Config.in
>> new file mode 100644
>> index 0000000..9ca347a
>> --- /dev/null
>> +++ b/package/polkit/Config.in
>> @@ -0,0 +1,8 @@
>> +config BR2_PACKAGE_POLKIT
>> + bool "polkit"
>
> Should be a tab, not spaces.
>
>> + select BR2_PACKAGE_LIBGLIB2
>> + select BR2_DBUS_EXPAT
>> + help
>> + PolicyKit is a toolkit for defining and handling
>> + authorizations. It is used for allowing unprivileged
>> + processes to speak to privileged processes.
>
> Upstream URL missing.
>
>> diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
>> new file mode 100644
>> index 0000000..8c882f2
>> --- /dev/null
>> +++ b/package/polkit/polkit.mk
>> @@ -0,0 +1,18 @@
>> +#############################################################
>> +#
>> +# polkit
>> +#
>> +#############################################################
>> +POLKIT_VERSION = 0.103
>> +POLKIT_SITE = http://www.freedesktop.org/software/polkit/releases/
>> +
>> +POLKIT_INSTALL_STAGING = YES
>
> I don't remember, does polkit installs some libraries or .pc files, or
> something that justify its installation in staging ?
Yes. In staging there are added 3 libraries with polkit-agent-1.pc
polkit-backend-1.pc polkit-gobject-1.pc files.
>
>> +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))
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Thanks,
mbe
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/6] polkit: new package
2012-12-22 21:54 ` Belisko Marek
@ 2012-12-22 23:27 ` Thomas Petazzoni
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-22 23:27 UTC (permalink / raw)
To: buildroot
Dear Belisko Marek,
On Sat, 22 Dec 2012 22:54:03 +0100, Belisko Marek wrote:
> >> +POLKIT_INSTALL_STAGING = YES
> >
> > I don't remember, does polkit installs some libraries or .pc files, or
> > something that justify its installation in staging ?
> Yes. In staging there are added 3 libraries with polkit-agent-1.pc
> polkit-backend-1.pc polkit-gobject-1.pc files.
Ok, thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/6] polkit: new package
2012-12-21 21:51 ` [Buildroot] [PATCH 2/6] polkit: " Marek Belisko
2012-12-22 15:18 ` Thomas Petazzoni
@ 2012-12-22 15:19 ` Thomas Petazzoni
2012-12-22 22:10 ` Belisko Marek
1 sibling, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-22 15:19 UTC (permalink / raw)
To: buildroot
Dear Marek Belisko,
On Fri, 21 Dec 2012 22:51:06 +0100, Marek Belisko wrote:
> + select BR2_PACKAGE_LIBGLIB2
> + select BR2_DBUS_EXPAT
Are you sure this shouldn't be BR2_PACKAGE_EXPAT instead?
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/6] polkit: new package
2012-12-22 15:19 ` Thomas Petazzoni
@ 2012-12-22 22:10 ` Belisko Marek
0 siblings, 0 replies; 14+ messages in thread
From: Belisko Marek @ 2012-12-22 22:10 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Sat, Dec 22, 2012 at 4:19 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Marek Belisko,
>
> On Fri, 21 Dec 2012 22:51:06 +0100, Marek Belisko wrote:
>
>> + select BR2_PACKAGE_LIBGLIB2
>> + select BR2_DBUS_EXPAT
>
> Are you sure this shouldn't be BR2_PACKAGE_EXPAT instead?
Good catch. Thanks.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
Cheers,
mbe
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 3/6] libatasmart: new package.
2012-12-21 21:51 [Buildroot] [PATCH 0/6] Add support for udisks package Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 1/6] sg3_utils: new package Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 2/6] polkit: " Marek Belisko
@ 2012-12-21 21:51 ` Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 4/6] lvm2: Install devmapper.pc to staging/target pkgconfig directory Marek Belisko
` (2 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Marek Belisko @ 2012-12-21 21:51 UTC (permalink / raw)
To: buildroot
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/Config.in | 1 +
package/libatasmart/Config.in | 11 +++++++++++
package/libatasmart/libatasmart.mk | 14 ++++++++++++++
3 files changed, 26 insertions(+)
create mode 100644 package/libatasmart/Config.in
create mode 100644 package/libatasmart/libatasmart.mk
diff --git a/package/Config.in b/package/Config.in
index 155a429..7a0a852 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -231,6 +231,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/linux-firmware/Config.in"
source "package/lm-sensors/Config.in"
source "package/lshw/Config.in"
diff --git a/package/libatasmart/Config.in b/package/libatasmart/Config.in
new file mode 100644
index 0000000..863046f
--- /dev/null
+++ b/package/libatasmart/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBATASMART
+ bool "libatasmart"
+ depends on BR2_PACKAGE_UDEV
+ help
+ Reading and Parsing Library.
+ As the name suggests libatasmart only does ATA S.M.A.R.T.
+
+ git://git.0pointer.de/libatasmart.git
+
+comment "libatasmart requires udev to be enabled"
+ depends on !BR2_PACKAGE_UDEV
diff --git a/package/libatasmart/libatasmart.mk b/package/libatasmart/libatasmart.mk
new file mode 100644
index 0000000..47b4720
--- /dev/null
+++ b/package/libatasmart/libatasmart.mk
@@ -0,0 +1,14 @@
+#############################################################
+#
+# libatasmart
+#
+#############################################################
+LIBATASMART_VERSION = v0.19
+LIBATASMART_SITE = git://git.0pointer.de/libatasmart.git
+
+LIBATASMART_INSTALL_STAGING = YES
+LIBATASMART_AUTORECONF = YES
+
+LIBATASMART_DEPENDENCIES = udev
+
+$(eval $(autotools-package))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [Buildroot] [PATCH 4/6] lvm2: Install devmapper.pc to staging/target pkgconfig directory.
2012-12-21 21:51 [Buildroot] [PATCH 0/6] Add support for udisks package Marek Belisko
` (2 preceding siblings ...)
2012-12-21 21:51 ` [Buildroot] [PATCH 3/6] libatasmart: " Marek Belisko
@ 2012-12-21 21:51 ` Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 5/6] lvm2: Compile and install application library Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 6/6] udisks: new package Marek Belisko
5 siblings, 0 replies; 14+ messages in thread
From: Marek Belisko @ 2012-12-21 21:51 UTC (permalink / raw)
To: buildroot
Without 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.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/lvm2/lvm2.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 52326ea..f54caa4 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -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.
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [Buildroot] [PATCH 5/6] lvm2: Compile and install application library.
2012-12-21 21:51 [Buildroot] [PATCH 0/6] Add support for udisks package Marek Belisko
` (3 preceding siblings ...)
2012-12-21 21:51 ` [Buildroot] [PATCH 4/6] lvm2: Install devmapper.pc to staging/target pkgconfig directory Marek Belisko
@ 2012-12-21 21:51 ` Marek Belisko
2012-12-21 21:51 ` [Buildroot] [PATCH 6/6] udisks: new package Marek Belisko
5 siblings, 0 replies; 14+ messages in thread
From: Marek Belisko @ 2012-12-21 21:51 UTC (permalink / raw)
To: buildroot
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
package/lvm2/Config.in | 6 ++++++
package/lvm2/lvm2.mk | 8 +++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
index 30af14e..bb41c0a 100644
--- a/package/lvm2/Config.in
+++ b/package/lvm2/Config.in
@@ -21,5 +21,11 @@ config BR2_PACKAGE_LVM2_DMSETUP_ONLY
help
Install dmsetup only and skip the LVM2 suite.
+config BR2_PACKAGE_LVM2_APP_LIBRARY
+ bool "install application library"
+ depends on BR2_PACKAGE_LVM2
+ help
+ Install application library (liblvm2app2).
+
comment "lvm2 requires a toolchain with LARGEFILE support"
depends on !BR2_LARGEFILE
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index f54caa4..213ef65 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -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 --enable-pkgconfig
+LVM2_CONF_OPT += --enable-write_install --enable-pkgconfig --enable-applib
# LVM2 uses autoconf, but not automake, and the build system does not
# take into account the CC passed at configure time.
@@ -41,6 +41,12 @@ LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install_device-mapper
LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install_device-mapper
endif
+ifeq ($(BR2_PACKAGE_LVM2_APP_LIBRARY),y)
+LVM2_MAKE_OPT += liblvm
+LVM2_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
+LVM2_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+endif
+
define LVM2_UNINSTALL_STAGING_CMDS
rm -f $(addprefix $(STAGING_DIR)/usr/sbin/,$(LVM2_BINS))
rm -f $(addprefix $(STAGING_DIR)/usr/lib/,libdevmapper.so*)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread* [Buildroot] [PATCH 6/6] udisks: new package
2012-12-21 21:51 [Buildroot] [PATCH 0/6] Add support for udisks package Marek Belisko
` (4 preceding siblings ...)
2012-12-21 21:51 ` [Buildroot] [PATCH 5/6] lvm2: Compile and install application library Marek Belisko
@ 2012-12-21 21:51 ` Marek Belisko
5 siblings, 0 replies; 14+ messages in thread
From: Marek Belisko @ 2012-12-21 21:51 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Marek Belisko <marek.belisko@streamunlimited.com>
---
package/Config.in | 1 +
package/udisks/Config.in | 32 ++++++++++++++++++++++++++++++++
package/udisks/udisks.mk | 26 ++++++++++++++++++++++++++
3 files changed, 59 insertions(+)
create mode 100644 package/udisks/Config.in
create mode 100644 package/udisks/udisks.mk
diff --git a/package/Config.in b/package/Config.in
index 7a0a852..95fad85 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -263,6 +263,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"
diff --git a/package/udisks/Config.in b/package/udisks/Config.in
new file mode 100644
index 0000000..bdc99b3
--- /dev/null
+++ b/package/udisks/Config.in
@@ -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_LVM2_DMSETUP_ONLY #devmapper library
+ 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
+ depends on BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_LVM2_APP_LIBRARY
+ default n
+
+comment "udisks requires udev and dbus to be enabled"
+ depends on !BR2_PACKAGE_UDEV || !BR2_PACKAGE_DBUS
diff --git a/package/udisks/udisks.mk b/package/udisks/udisks.mk
new file mode 100644
index 0000000..f85fc40
--- /dev/null
+++ b/package/udisks/udisks.mk
@@ -0,0 +1,26 @@
+#############################################################
+#
+# udisks
+#
+#############################################################
+UDISKS_VERSION = 1.0.4
+UDISKS_SITE = http://hal.freedesktop.org/releases/
+
+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))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread