[laptop-mode] Making install.sh more distribution independent

Bart Samwel bart at samwel.tk
Mon Jul 14 00:07:49 CEST 2008


Hi Alon,

Alon Bar-Lev wrote:
> Can you please consider making the script more distribution independent?

Sure, I can do that. For Debian I kind of copied everything, but it
would be nice if other distros could simply call install.sh.

> For example:
> 
> a) support DESTDIR
> 
> DESTDIR=/tmp/temp-root ./install.sh
> 
> This will install all required files into $DESTDIR so that package management can
> commit the files.

Sounds like a good idea. I can do that.

> b) Do not handle init.d
> 
> INIT_D="skip" ./install.sh
> 
> This will not modify the init.d script, so that distribution specific init.d script may be used.

OK, sounds very acceptable too.

> c) Manual selection of acpi/apm support.
> 
> ACPI="no" APM="auto" ./install.sh

Hmmm, can you explain the use of this for package managers? I'd expect
that you would want to be able to enable *everything*:

FORCE_ALL_POWERMGMT_TYPES=1 ./install.sh

so that you as a package writer have all files at your disposal below
$DESTDIR, installed in the correct locations. And then you yourself can
install only the subtrees intended for the power management daemon that
you want. Or not?

Cheers,
Bart


More information about the laptop-mode mailing list