Message ID | 1358546927-25707-3-git-send-email-marek.belisko@open-nandra.com |
---|---|
State | Accepted |
Headers | show |
>>>>> "Marek" == Marek Belisko <marek.belisko@open-nandra.com> writes:
Marek> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Marek> Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
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.
diff --git a/package/Config.in b/package/Config.in index e6153f0..c889d8a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/polkit/Config.in b/package/polkit/Config.in new file mode 100644 index 0000000..36206bd --- /dev/null +++ b/package/polkit/Config.in @@ -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 diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk new file mode 100644 index 0000000..db19348 --- /dev/null +++ b/package/polkit/polkit.mk @@ -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))