[Pm-utils] [PATCH] pkg-config file to support 3rd party programs
Dan Nicholson
dbn.lists at gmail.com
Thu Feb 7 06:14:56 PST 2008
On Feb 6, 2008 8:43 PM, Victor Lowther <victor.lowther at gmail.com> wrote:
> On Wed, Feb 06, 2008 at 10:32:35AM -0800, Dan Nicholson wrote:
> > A pkg-config file has been added to allow 3rd party programs to find out
> > about the user's pm-utils installation. This means they can make an
> > informed decision about where to install a sleep hook, for instance.
> > ---
> >
> > I think this is especially important since Victor's patch to make the
> > directories build-time configurable. With this patch, other packages
> > (e.g., NetworkManager and PackageKit) can figure out where to install
> > hooks intelligently.
> >
> > $ sleepdir="$(pkg-config --variable=pm_sysconfdir pm-utils)/sleep.d"
>
> Looks interesting, applies cleanly, but I have no idea about how to
> judge how effective it is (from a "patch another package and build it"
> perspective, that is).
I was going to use this in the NetworkManager bug for moving the hook
into their package.
> I would include it anyways -- part of making pm-utils play nicely with
> everything else has to include making sure everyone else can
> programmaticly play nice with us, and pkg-config intergration would
> really help out in that area.
It doesn't hurt us. One thing to think about is if there's enough
information being exported there. For instance, do we actually want to
put something like:
pm_etc_sleepdir = ${sysconfdir}/pm/sleep.d
or do we expect the user to tack on the final sleep.d as I showed
above. Probably not that important, though.
--
Dan
More information about the Pm-utils
mailing list