|
Lines 14-32
Link Here
|
| 14 |
DEPEND="sys-apps/pciutils" |
14 |
DEPEND="sys-apps/pciutils" |
| 15 |
|
15 |
|
| 16 |
src_compile() { |
16 |
src_compile() { |
| 17 |
emake CFLAGS="${CFLAGS}" || die |
17 |
emake CFLAGS="${CFLAGS}" || die "emake failed" |
| 18 |
} |
18 |
} |
| 19 |
|
19 |
|
| 20 |
src_install() { |
20 |
src_install() { |
| 21 |
einstall || die |
21 |
dosbin ${PN} || die "dosbin failed" |
|
|
22 |
doman ${PN}.8 |
| 22 |
doinitd "${FILESDIR}"/athcool |
23 |
doinitd "${FILESDIR}"/athcool |
| 23 |
dodoc README ChangeLog |
24 |
dodoc README ChangeLog |
| 24 |
} |
25 |
} |
| 25 |
|
26 |
|
| 26 |
pkg_postinst() { |
27 |
pkg_postinst() { |
| 27 |
ewarn "WARNING: Depending on your motherboard and/or hardware components, enabling powersaving mode may cause:" |
28 |
ewarn "WARNING: Depending on your motherboard and/or hardware components," |
|
|
29 |
ewarn "enabling powersaving mode may cause:" |
| 28 |
ewarn " * noisy or distorted sound playback" |
30 |
ewarn " * noisy or distorted sound playback" |
| 29 |
ewarn " * a slowdown in harddisk performance" |
31 |
ewarn " * a slowdown in harddisk performance" |
| 30 |
ewarn " * system locks or instability" |
32 |
ewarn " * system locks or instability" |
| 31 |
ewarn "If you met those problems, you should not use athcool. Please use athcool AT YOUR OWN RISK!" |
33 |
ewarn "If you met those problems, you should not use athcool. Please use" |
|
|
34 |
ewarn "athcool AT YOUR OWN RISK!" |
| 32 |
} |
35 |
} |