[Pm-utils] [PATCH 03/12] Proposed pm-utils 1.2.3 patches, take 2
Victor Lowther
victor.lowther at gmail.com
Sun Nov 30 16:33:05 PST 2008
Modified pm-utils.pc.in to make autoconf intergration easier
This adds pm_sleephooks, pm_powerhooks, and pm_sleepmodules to the values that
pkg-config can return.
---
README.distributions | 23 ++++++++++++++++++++++-
pm-utils.pc.in | 3 +++
2 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/README.distributions b/README.distributions
index 38c1b07..58cfbdb 100644
--- a/README.distributions
+++ b/README.distributions
@@ -10,4 +10,25 @@ fix would be to have the anacron package install a hook in
This will also help package maintenance by allowing package maintainers to
keep track of what the best way to handle any suspend/resume functionality their
package requires insteas of leaving it up to the pm-utils maintainers to guess
-at what functionality is needed.
\ No newline at end of file
+at what functionality is needed.
+
+To make this easier, pm-utils supports pkg-config, which makes it easy for
+packages that use automake to detect the presence of pm-utils and the locations
+that hooks should be installed in. The pm-utils pkgconfig file exports the
+following variables:
+
+pm_libdir: This is the directory that the pm-utils infrastructure is installed
+ in. /usr/lib/pm-utils is the default value
+
+pm_sysconfdir: This is the directory that any package-specific pm-utils related
+ config files should be installed in.
+ Defaults to /etc/pm/config.d
+
+pm_sleephooks: This is the directory that sleep hooks are installed in.
+ Defaults to ${pm_libdir}/sleep.d
+
+pm_powerhooks: This is the directory that power management hooks are installed
+ in. Defaults to ${pm_libdir}/power.d
+
+pm_sleepmodules: This is the directory that sleep modules are installed in.
+ Defaults to ${pm_libdir}/module.d
diff --git a/pm-utils.pc.in b/pm-utils.pc.in
index 668ef29..25ecb5f 100644
--- a/pm-utils.pc.in
+++ b/pm-utils.pc.in
@@ -5,6 +5,9 @@ sysconfdir=@sysconfdir@
pm_libdir=${libdir}/pm-utils
pm_sysconfdir=${sysconfdir}/pm
+pm_sleephooks=${pm_libdir}/sleep.d
+pm_powerhooks=${pm_libdir)/power.d
+pm_sleepmodules=${pm_libdir}/module.d
Name: pm-utils
Description: Power management scripts for suspend and hibernate
--
1.6.0.4
More information about the Pm-utils
mailing list