Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36377

Summary: New ebuild: app-admin/hprofile
Product: Gentoo Linux Reporter: Martin Aspeli <optilude>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement CC: etnoy, toojays, wschlich
Priority: High Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://hprofile.sourceforge.net
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed ebuild from app-admin/hprofile
Slightly updated ebuild (silly me forgot header and IUSE)

Description Martin Aspeli 2003-12-23 10:32:50 UTC
Hello,

Submitting an ebuild for my hprofile system, found at http://hprofile.sourceforge.net. 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