Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 230471 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-laptop/laptop-mode-tools/laptop-mode-tools-1.34.ebuild (-42 / +22 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.34.ebuild,v 1.2 2008/06/03 22:45:17 darkside Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-laptop/laptop-mode-tools/laptop-mode-tools-1.45.ebuild,v 1.2 2008/09/010 22:45:17 darkside Exp $
4
4
5
inherit fixheadtails linux-info
5
inherit linux-info
6
6
7
MY_P="${PN}_${PV}"
7
MY_P="${PN}_${PV}"
8
8
Lines 14-23 Link Here
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~ppc ~x86"
15
KEYWORDS="~amd64 ~ppc ~x86"
16
16
17
IUSE="acpi apm"
17
IUSE="acpi apm bluetooth hal scsi"
18
18
19
DEPEND="acpi? ( sys-power/acpid )
19
DEPEND="sys-apps/ethtool
20
		apm? ( sys-apps/apmd )"
20
		acpi? ( sys-power/acpid )
21
		apm? ( sys-apps/apmd )
22
		bluetooth? ( net-wireless/bluez-utils )
23
		hal? ( sys-apps/hal )
24
		scsi? ( sys-apps/sdparm )"
25
26
S="${WORKDIR}/${MY_P}"
21
27
22
pkg_setup() {
28
pkg_setup() {
23
	linux-info_pkg_setup
29
	linux-info_pkg_setup
Lines 35-81 Link Here
35
	fi
41
	fi
36
}
42
}
37
43
38
src_unpack() {
44
src_compile() {
39
	unpack ${A}
45
	:
40
41
	ht_fix_file "${S}"/usr/sbin/lm-profiler
42
}
46
}
43
47
44
src_install() {
48
src_install() {
45
	dosbin usr/sbin/laptop_mode
49
	DESTDIR="${D}" \
46
	dosbin usr/sbin/lm-profiler
50
		MAN_D="/usr/share/man" \
47
	dosbin usr/sbin/lm-syslog-setup
51
		INIT_D="none" \
48
52
		APM="$(use apm && echo force || echo disabled)" \
49
	insinto /etc/laptop-mode
53
		ACPI="$(use acpi && echo force || echo disabled)" \
50
	doins etc/laptop-mode/laptop-mode.conf
54
		PMU="$(false && echo force || echo disabled)" \
51
	doins etc/laptop-mode/lm-profiler.conf
55
		./install.sh
52
53
	newinitd "${FILESDIR}"/laptop_mode.init laptop_mode
54
55
	keepdir /etc/laptop-mode/batt-start
56
	keepdir /etc/laptop-mode/batt-stop
57
	keepdir /etc/laptop-mode/lm-ac-start
58
	keepdir /etc/laptop-mode/lm-ac-stop
59
	keepdir /etc/laptop-mode/nolm-ac-start
60
	keepdir /etc/laptop-mode/nolm-ac-stop
61
	keepdir /etc/laptop-mode/scripts
62
63
	doman man/*
64
65
	dodoc Documentation/*.txt README
66
67
	if use acpi; then
68
		insinto /etc/acpi/events/
69
		doins etc/acpi/events/*
70
56
71
		exeinto /etc/acpi/actions/
57
	dodoc Documentation/laptop-mode.txt README
72
		doexe etc/acpi/actions/*
58
	newinitd "${WORKDIR}/${MY_P}/etc/init.d/laptop-mode" laptop_mode
73
	fi
74
75
	if use apm; then
76
		exeinto /etc/apm/event.d/
77
		doexe etc/apm/event.d/*
78
	fi
79
}
59
}
80
60
81
pkg_postinst() {
61
pkg_postinst() {

Return to bug 230471