Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36377 - New ebuild: app-admin/hprofile
Summary: New ebuild: app-admin/hprofile
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: EBUILD
Depends on:
Reported: 2003-12-23 10:32 UTC by Martin Aspeli
Modified: 2004-10-09 17:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Proposed ebuild from app-admin/hprofile (hprofile-2.0_beta1.ebuild,2.20 KB, text/plain)
2003-12-23 10:33 UTC, Martin Aspeli
Slightly updated ebuild (silly me forgot header and IUSE) (hprofile-2.0_beta1.ebuild,2.24 KB, text/plain)
2003-12-23 18:20 UTC, Martin Aspeli

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aspeli 2003-12-23 10:32:50 UTC

Submitting an ebuild for my hprofile system, found at The ebuild installs the scripts to /usr/sbin, installs an example /etc/hprofile configuration directory, and Gentoo init scripts in /etc/init.d. The file /etc/runlevels/boot/.critical is also created or updated, since the 'hprofile' init script needs to be run during the "critical" stages of boot (notably before 'modules'). 

Please note - my initial tests suggest that the mechanisms in /sbin/rc that check for "critical" runlevels completely disregard dependencies among these scripts. Bug or feature? In any case, I'm not sure how this would react if the 'hprofile' init script was not added to the 'boot' runlevel. With the default installation by the ebuild, this won't do any harm (since the default boot profile does not switch any configuration files or change the state of the system in any way), but it may be a little confusing for users if the hprofile boot script is started even if they do 'rc-update del hprofile'... 

I'll try to look into this again later and report again here if I find out more.

Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Aspeli 2003-12-23 10:33:52 UTC
Created attachment 22588 [details]
Proposed ebuild from app-admin/hprofile
Comment 2 Martin Aspeli 2003-12-23 18:20:14 UTC
Created attachment 22602 [details]
Slightly updated ebuild (silly me forgot header and IUSE)
Comment 3 Martin Aspeli 2003-12-23 18:23:59 UTC
Just thought I'd clarify, hprofile is a set of bash scripts to manage "profiles" of things like hardware configuration (dependent on configuration files), power usage (processor speed, LCD brightness etc.), networks (network configuration files, interfaces and services), and anything else where you need to switch configuration files around, start/stop services and run commands to put the system in a specific "profile".

The tarball the ebuild intalls comes with Gentoo init scripts that can make all this highly automated, meaning the correct profile can be automatically determined and configured at bootup, or by running a single command.

hprofile is in some ways similar to quickswitch, but it's more general (and probably more flexible), and in my opinion a lot easier to use and configure.
Comment 4 Jonathan Fors 2004-03-08 14:20:35 UTC
I really think this should be added to portage, I am currently setting up a hprofile system and it looks promising.

Just my two cents...
Comment 5 SpanKY gentoo-dev 2004-10-09 17:57:43 UTC
2.0_beta2 is now in portage