| 1 |
# Copyright 1999-2007 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hprofile/hprofile-2.0_beta2.ebuild,v 1.2 2005/05/14 08:36:32 blubb Exp $
|
| 4 |
|
| 5 |
DESCRIPTION="Utility to manage hardware, network, power or other profiles"
|
| 6 |
HOMEPAGE="http://hprofile.sourceforge.net/"
|
| 7 |
SRC_URI="mirror://sourceforge/hprofile/${P}.tar.gz"
|
| 8 |
|
| 9 |
LICENSE="GPL-2"
|
| 10 |
SLOT="0"
|
| 11 |
KEYWORDS="~x86 ~amd64"
|
| 12 |
IUSE=""
|
| 13 |
|
| 14 |
DEPEND=">=app-shells/bash-2.0
|
| 15 |
>=app-admin/sudo-1.6"
|
| 16 |
|
| 17 |
src_unpack() {
|
| 18 |
unpack ${A}
|
| 19 |
cd ${S}
|
| 20 |
for f in $(grep /usr/local * -rl) ; do
|
| 21 |
sed -i 's:/usr/local:/usr:g' ${f}
|
| 22 |
done
|
| 23 |
}
|
| 24 |
|
| 25 |
src_install() {
|
| 26 |
dosbin scripts/* || die "dosbin"
|
| 27 |
|
| 28 |
dodir /etc/hprofile
|
| 29 |
cp -r config/hprofile/* ${D}/etc/hprofile/ || die "cp"
|
| 30 |
|
| 31 |
doinitd extra/rc-scripts/gentoo/*
|
| 32 |
|
| 33 |
dodoc README
|
| 34 |
}
|
| 35 |
|
| 36 |
pkg_postinst() {
|
| 37 |
einfo "Example profiles have been installed into /etc/hprofile/example-profiles"
|
| 38 |
einfo "Initscripts have been been installed to /etc/init.d."
|
| 39 |
einfo
|
| 40 |
einfo "Scripts that should be run from the 'boot' runlevel:"
|
| 41 |
einfo " - hprofile (applies the 'boot' profile)"
|
| 42 |
einfo " - hprunlevel (switches to profile-specific runlevel)"
|
| 43 |
einfo "Scripts that should be run from your default runlevel:"
|
| 44 |
einfo " - net.profile (applies the current 'net' profile)"
|
| 45 |
einfo " - power-profile (applies the current 'power' profile)"
|
| 46 |
einfo
|
| 47 |
einfo "If you get an error message that 'hprunlevel' and 'local' have a"
|
| 48 |
einfo "circular dependency of type 'iafter', this is not a problem, since"
|
| 49 |
einfo "'hprunlevel' and 'local' are not started from the same runlevel"
|
| 50 |
einfo
|
| 51 |
einfo "Also note that the file /etc/runlevels/.critical has been created."
|
| 52 |
einfo "This file contains the 'critical' boot services; since hprofile"
|
| 53 |
einfo "should be started before modules (which is a critical service),"
|
| 54 |
einfo "it must be mentioned in this file."
|
| 55 |
}
|