mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Add power management support
@ 2014-05-08 10:05 Juergen Borleis
  2014-05-08 10:05 ` [ptxdist] [PATCH 1/2] Polkit: upgrade package Juergen Borleis
  2014-05-08 10:05 ` [ptxdist] [PATCH 2/2] uPower: add new package for power management Juergen Borleis
  0 siblings, 2 replies; 5+ messages in thread
From: Juergen Borleis @ 2014-05-08 10:05 UTC (permalink / raw)
  To: ptxdist

uPower adds support for applications to query the current system's power state via dbus.
In order to make uPower happy, polkit must be upgraded first (with some restrictions).

Comments are welcome.

Juergen


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 1/2] Polkit: upgrade package
  2014-05-08 10:05 [ptxdist] Add power management support Juergen Borleis
@ 2014-05-08 10:05 ` Juergen Borleis
  2014-05-08 16:14   ` Michael Olbrich
  2014-05-08 10:05 ` [ptxdist] [PATCH 2/2] uPower: add new package for power management Juergen Borleis
  1 sibling, 1 reply; 5+ messages in thread
From: Juergen Borleis @ 2014-05-08 10:05 UTC (permalink / raw)
  To: ptxdist

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
 	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)
+
 # 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 2/2] uPower: add new package for power management
  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 10:05 ` Juergen Borleis
  2014-05-08 16:22   ` Michael Olbrich
  1 sibling, 1 reply; 5+ messages in thread
From: Juergen Borleis @ 2014-05-08 10:05 UTC (permalink / raw)
  To: ptxdist

UPower is an abstraction for enumerating power devices, listening to
device events and querying history and statistics. Any application or
service on the system can access the org.freedesktop.UPower service
via the system message bus.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 rules/upower.in   |  20 +++++++++++
 rules/upower.make | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 125 insertions(+)
 create mode 100644 rules/upower.in
 create mode 100644 rules/upower.make

diff --git a/rules/upower.in b/rules/upower.in
new file mode 100644
index 0000000..b8283cc
--- /dev/null
+++ b/rules/upower.in
@@ -0,0 +1,20 @@
+## SECTION=shell_and_console
+
+config UPOWER
+	tristate
+	prompt "upower"
+	select SYSTEMD
+	select GLIB
+	select DBUS
+	select LIBUSB
+	select DBUS_GLIB
+	select POLKIT
+	select LIBC_PTHREAD
+	select LIBC_M
+	select UDEV
+	select UDEV_LIBGUDEV
+	help
+	  UPower is an abstraction for enumerating power devices, listening to
+	  device events and querying history and statistics. Any application or
+	  service on the system can access the org.freedesktop.UPower service
+	  via the system message bus.
diff --git a/rules/upower.make b/rules/upower.make
new file mode 100644
index 0000000..2befa89
--- /dev/null
+++ b/rules/upower.make
@@ -0,0 +1,105 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Juergen Borleis <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_UPOWER) += upower
+
+#
+# Paths and names
+#
+UPOWER_VERSION	:= 0.99.0
+UPOWER_MD5	:= 14f43bc13353e23e7280863f33ac50d2
+UPOWER		:= upower-$(UPOWER_VERSION)
+UPOWER_SUFFIX	:= tar.xz
+UPOWER_URL	:= http://upower.freedesktop.org/releases/$(UPOWER).$(UPOWER_SUFFIX)
+UPOWER_SOURCE	:= $(SRCDIR)/$(UPOWER).$(UPOWER_SUFFIX)
+UPOWER_DIR	:= $(BUILDDIR)/$(UPOWER)
+UPOWER_LICENSE	:= GPLv2+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+#
+# autoconf
+#
+UPOWER_CONF_TOOL	:= autoconf
+UPOWER_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
+	--enable-introspection=no \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--disable-static \
+	--disable-deprecated \
+	--disable-man-pages \
+	--disable-gtk-doc \
+	--disable-gtk-doc-html \
+	--disable-gtk-doc-pdf \
+	--disable-tests \
+	--disable-nls \
+	--disable-rpath \
+	--with-backend=linux \
+	--without-idevice
+
+# can we trust the defaults?
+# --with-udevrulesdir
+# --with-historydir
+# --with-systemdutildir
+# --with-systemdsystemunitdir
+#
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/upower.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, upower)
+	@$(call install_fixup, upower,PRIORITY,optional)
+	@$(call install_fixup, upower,SECTION,base)
+	@$(call install_fixup, upower,AUTHOR,"Juergen Borleis <jbe@pengutronix.de>")
+	@$(call install_fixup, upower,DESCRIPTION,missing)
+
+# configs
+	@$(call install_alternative, upower, 0, 0, 0755, /etc/UPower/UPower.conf)
+# libs
+	@$(call install_lib, upower, 0, 0, 0644, libupower-glib)
+
+# executables
+	@$(call install_copy, upower, 0, 0, 0755, -, /usr/bin/upower)
+	@$(call install_copy, upower, 0, 0, 0755, -, /usr/libexec/upowerd)
+
+# systemd support
+	@$(call install_alternative, upower, 0, 0, 0644, /lib/systemd/system/upower.service)
+
+# dbus-support
+	@$(call install_alternative, upower, 0, 0, 0644, \
+		/etc/dbus-1/system.d/org.freedesktop.UPower.conf)
+	@$(call install_alternative, upower, 0, 0, 0644, \
+		/usr/share/dbus-1/system-services/org.freedesktop.UPower.service)
+	@$(call install_alternative, upower, 0, 0, 0644, \
+		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml)
+	@$(call install_alternative, upower, 0, 0, 0644, \
+		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml)
+	@$(call install_alternative, upower, 0, 0, 0644, \
+		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml)
+	@$(call install_alternative, upower, 0, 0, 0644, \
+		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.xml)
+
+# udev support
+	@$(call install_alternative, upower, 0, 0, 0644, /lib/udev/rules.d/95-upower-csr.rules)
+	@$(call install_alternative, upower, 0, 0, 0644, /lib/udev/rules.d/95-upower-hid.rules)
+	@$(call install_alternative, upower, 0, 0, 0644, /lib/udev/rules.d/95-upower-wup.rules)
+
+	@$(call install_finish, upower)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.0.0.rc0


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH 1/2] Polkit: upgrade package
  2014-05-08 10:05 ` [ptxdist] [PATCH 1/2] Polkit: upgrade package Juergen Borleis
@ 2014-05-08 16:14   ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2014-05-08 16:14 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH 2/2] uPower: add new package for power management
  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
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2014-05-08 16:22 UTC (permalink / raw)
  To: ptxdist

On Thu, May 08, 2014 at 12:05:49PM +0200, Juergen Borleis wrote:
> UPower is an abstraction for enumerating power devices, listening to
> device events and querying history and statistics. Any application or
> service on the system can access the org.freedesktop.UPower service
> via the system message bus.
> 
> Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
> ---
>  rules/upower.in   |  20 +++++++++++
>  rules/upower.make | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 125 insertions(+)
>  create mode 100644 rules/upower.in
>  create mode 100644 rules/upower.make
> 
> diff --git a/rules/upower.in b/rules/upower.in
> new file mode 100644
> index 0000000..b8283cc
> --- /dev/null
> +++ b/rules/upower.in
> @@ -0,0 +1,20 @@
> +## SECTION=shell_and_console
> +
> +config UPOWER
> +	tristate
> +	prompt "upower"
> +	select SYSTEMD

Same here. Make systemd optional if possible.

> +	select GLIB
> +	select DBUS
> +	select LIBUSB
> +	select DBUS_GLIB
> +	select POLKIT
> +	select LIBC_PTHREAD
> +	select LIBC_M
> +	select UDEV
> +	select UDEV_LIBGUDEV
> +	help
> +	  UPower is an abstraction for enumerating power devices, listening to
> +	  device events and querying history and statistics. Any application or
> +	  service on the system can access the org.freedesktop.UPower service
> +	  via the system message bus.
> diff --git a/rules/upower.make b/rules/upower.make
> new file mode 100644
> index 0000000..2befa89
> --- /dev/null
> +++ b/rules/upower.make
> @@ -0,0 +1,105 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2014 by Juergen Borleis <jbe@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_UPOWER) += upower
> +
> +#
> +# Paths and names
> +#
> +UPOWER_VERSION	:= 0.99.0
> +UPOWER_MD5	:= 14f43bc13353e23e7280863f33ac50d2
> +UPOWER		:= upower-$(UPOWER_VERSION)
> +UPOWER_SUFFIX	:= tar.xz
> +UPOWER_URL	:= http://upower.freedesktop.org/releases/$(UPOWER).$(UPOWER_SUFFIX)
> +UPOWER_SOURCE	:= $(SRCDIR)/$(UPOWER).$(UPOWER_SUFFIX)
> +UPOWER_DIR	:= $(BUILDDIR)/$(UPOWER)
> +UPOWER_LICENSE	:= GPLv2+
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +#
> +# autoconf
> +#
> +UPOWER_CONF_TOOL	:= autoconf
> +UPOWER_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
> +	--enable-introspection=no \

	--disable-introspection

should work to, right?

> +	$(GLOBAL_LARGE_FILE_OPTION) \
> +	--disable-static \
> +	--disable-deprecated \
> +	--disable-man-pages \
> +	--disable-gtk-doc \
> +	--disable-gtk-doc-html \
> +	--disable-gtk-doc-pdf \
> +	--disable-tests \
> +	--disable-nls \
> +	--disable-rpath \
> +	--with-backend=linux \
> +	--without-idevice
> +
> +# can we trust the defaults?
> +# --with-udevrulesdir
> +# --with-historydir
> +# --with-systemdutildir
> +# --with-systemdsystemunitdir

Leave historydir as is.  You could set the others explicitly, but that is
only useful to make the systemd dependency a runtime dependency only. You
need libgudev, so that doesn't work anyways, so I think just leave it as
is and remove the comment. The defaults come via pkg-config and are always
correct.

> +#
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/upower.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, upower)
> +	@$(call install_fixup, upower,PRIORITY,optional)
> +	@$(call install_fixup, upower,SECTION,base)
> +	@$(call install_fixup, upower,AUTHOR,"Juergen Borleis <jbe@pengutronix.de>")
> +	@$(call install_fixup, upower,DESCRIPTION,missing)
> +
> +# configs
> +	@$(call install_alternative, upower, 0, 0, 0755, /etc/UPower/UPower.conf)
> +# libs
> +	@$(call install_lib, upower, 0, 0, 0644, libupower-glib)
> +
> +# executables
> +	@$(call install_copy, upower, 0, 0, 0755, -, /usr/bin/upower)
> +	@$(call install_copy, upower, 0, 0, 0755, -, /usr/libexec/upowerd)
> +
> +# systemd support
> +	@$(call install_alternative, upower, 0, 0, 0644, /lib/systemd/system/upower.service)
> +
> +# dbus-support
> +	@$(call install_alternative, upower, 0, 0, 0644, \
> +		/etc/dbus-1/system.d/org.freedesktop.UPower.conf)
> +	@$(call install_alternative, upower, 0, 0, 0644, \
> +		/usr/share/dbus-1/system-services/org.freedesktop.UPower.service)
> +	@$(call install_alternative, upower, 0, 0, 0644, \
> +		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml)
> +	@$(call install_alternative, upower, 0, 0, 0644, \
> +		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml)
> +	@$(call install_alternative, upower, 0, 0, 0644, \
> +		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml)
> +	@$(call install_alternative, upower, 0, 0, 0644, \
> +		/usr/share/dbus-1/interfaces/org.freedesktop.UPower.xml)
> +
> +# udev support
> +	@$(call install_alternative, upower, 0, 0, 0644, /lib/udev/rules.d/95-upower-csr.rules)
> +	@$(call install_alternative, upower, 0, 0, 0644, /lib/udev/rules.d/95-upower-hid.rules)
> +	@$(call install_alternative, upower, 0, 0, 0644, /lib/udev/rules.d/95-upower-wup.rules)
> +
> +	@$(call install_finish, upower)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-08 16:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox