From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 1/2] Polkit: upgrade package
Date: Thu, 8 May 2014 18:14:53 +0200 [thread overview]
Message-ID: <20140508161453.GA24276@pengutronix.de> (raw)
In-Reply-To: <1399543549-30881-2-git-send-email-jbe@pengutronix.de>
On Thu, May 08, 2014 at 12:05:48PM +0200, Juergen Borleis wrote:
> It is a small upgrade, because since revision 0.106 this package depends on
> mozjs and mozjs's buildsystem is a horror to cross compile.
:-/
>
> This small upgrade is required to add support for uPower.
>
> Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
> ---
> rules/polkit.in | 6 +++---
> rules/polkit.make | 27 ++++++++++++++++++++-------
> 2 files changed, 23 insertions(+), 10 deletions(-)
>
> diff --git a/rules/polkit.in b/rules/polkit.in
> index d28de7c..ef3278a 100644
> --- a/rules/polkit.in
> +++ b/rules/polkit.in
> @@ -4,11 +4,11 @@ config POLKIT
> tristate
> prompt "policykit-1"
> select LIBC_CRYPT
> - select HOST_INTLTOOL
> - select HOST_GTK_DOC
> + select SYSTEMD
I'd like to keep systemd optional unless there is a good reason do make it
mandatory.
> select GLIB
> select DBUS_GLIB
> - select EGGDBUS
> + select LIBC_PTHREAD
> + select EXPAT
> help
> PolicyKit offers an infrastructure for security policies for
> dbus applications.
> diff --git a/rules/polkit.make b/rules/polkit.make
> index b702a1b..cd3ad11 100644
> --- a/rules/polkit.make
> +++ b/rules/polkit.make
> @@ -1,6 +1,7 @@
> # -*-makefile-*-
> #
> # Copyright (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de>
> +# Copyright (C) 2014 by Juergen Borleis <jbe@pengutronix.de>
> #
> # See CREDITS for details about who has contributed to this project.
> #
> @@ -16,11 +17,11 @@ PACKAGES-$(PTXCONF_POLKIT) += polkit
> #
> # Paths and names
> #
> -POLKIT_VERSION := 0.96
> -POLKIT_MD5 := e0a06da501b04ed3bab986a9df5b5aa2
> +POLKIT_VERSION := 0.105
> +POLKIT_MD5 := 9c29e1b6c214f0bd6f1d4ee303dfaed9
> POLKIT := polkit-$(POLKIT_VERSION)
> POLKIT_SUFFIX := tar.gz
> -POLKIT_URL := http://hal.freedesktop.org/releases/$(POLKIT).$(POLKIT_SUFFIX)
> +POLKIT_URL := http://www.freedesktop.org/software/polkit/releases/$(POLKIT).$(POLKIT_SUFFIX)
> POLKIT_SOURCE := $(SRCDIR)/$(POLKIT).$(POLKIT_SUFFIX)
> POLKIT_DIR := $(BUILDDIR)/$(POLKIT)
>
> @@ -34,13 +35,16 @@ POLKIT_DIR := $(BUILDDIR)/$(POLKIT)
> POLKIT_AUTOCONF := \
> $(CROSS_AUTOCONF_USR) \
> --enable-shared \
> - --enable-static \
> + --disable-static \
> + $(GLOBAL_LARGE_FILE_OPTION) \
> --disable-ansi \
> --disable-verbose-mode \
> --disable-man-pages \
> --disable-gtk-doc \
> - --disable-examples \
> + --enable-systemd=yes \
> --disable-introspection \
> + --disable-examples \
> + --disable-nls \
> --with-gnu-ld \
> --with-authfw=shadow \
> --with-os-type=ptxdist
> @@ -63,8 +67,15 @@ $(STATEDIR)/polkit.targetinstall:
> /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf)
> @$(call install_copy, polkit, 0, 0, 0644, -, \
> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service)
> + @$(call install_link, polkit, \
> + ../system-services/org.freedesktop.PolicyKit1.service, \
> + /usr/share/dbus-1/services/org.freedesktop.PolicyKit1.service)
>
> # config
> + @$(call install_copy, polkit, 0, 0, 0700, /etc/polkit-1/localauthority)
> + @$(call install_copy, polkit, 0, 0, 0700, /var/lib/polkit-1)
> + @$(call install_copy, polkit, 0, 0, 0700, /var/lib/polkit-1/localauthority)
> +
> @$(call install_copy, polkit, 0, 0, 0644, -, \
> /etc/polkit-1/localauthority.conf.d/50-localauthority.conf)
> @$(call install_copy, polkit, 0, 0, 0644, -, \
> @@ -72,6 +83,10 @@ $(STATEDIR)/polkit.targetinstall:
> @$(call install_copy, polkit, 0, 0, 0644, -, \
> /usr/share/polkit-1/actions/org.freedesktop.policykit.policy)
>
> +# systemd
> + @$(call install_alternative, polkit, 0, 0, 644, \
> + /lib/systemd/system/dbus-org.freedesktop.PolicyKit1.service)
This file is missing.
Michael
> +
> # libs
> @$(call install_lib, polkit, 0, 0, 0644, libpolkit-agent-1)
> @$(call install_lib, polkit, 0, 0, 0644, libpolkit-backend-1)
> @@ -79,8 +94,6 @@ $(STATEDIR)/polkit.targetinstall:
>
> @$(call install_copy, polkit, 0, 0, 0644, -, \
> /usr/lib/polkit-1/extensions/libnullbackend.so)
> - @$(call install_copy, polkit, 0, 0, 0644, -, \
> - /usr/lib/polkit-1/extensions/libpkexec-action-lookup.so)
>
> # binaries
> @$(call install_copy, polkit, 0, 0, 0755, -, /usr/bin/pkaction)
> --
> 2.0.0.rc0
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2014-05-08 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 10:05 [ptxdist] Add power management support Juergen Borleis
2014-05-08 10:05 ` [ptxdist] [PATCH 1/2] Polkit: upgrade package Juergen Borleis
2014-05-08 16:14 ` Michael Olbrich [this message]
2014-05-08 10:05 ` [ptxdist] [PATCH 2/2] uPower: add new package for power management Juergen Borleis
2014-05-08 16:22 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140508161453.GA24276@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox