# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A convenience package to work with Linux laptop mode." HOMEPAGE="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/" SRC_URI="http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/${PN}_${PV}.tar.gz" RESTRICT="nostrip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" src_compile() { return 0 } src_install() { dosbin usr/sbin/laptop_mode dosbin usr/sbin/lm-syslog-setup newinitd ${FILESDIR}/laptop-mode.initd laptop-mode dodir /etc/laptop-mode insinto /etc/laptop-mode doins etc/laptop-mode/laptop-mode.conf doman man/laptop_mode.8 doman man/laptop-mode.conf.8 dodoc README Documentation/laptop-mode.txt if useq doc; then docinto examples/etc/acpi/actions dodoc etc/acpi/actions/* docinto examples/etc/acpi/events dodoc etc/acpi/events/* docinto examples/etc/apm/event.d dodoc etc/apm/event.d/* fi } pkg_postinst() { einfo "" einfo "You can use the \"laptop-mode\" init script to enter or exit laptop" einfo "mode. A configuration file can be found here:" einfo " /etc/laptop-mod/laptop-mod.conf" if useq doc; then einfo "" einfo "Example acpid/apmd scripts has been installed in:" einfo " /usr/share/doc/${PF}/examples/" fi einfo "" einfo "For further instructions please see:" einfo " /usr/share/doc/${PF}/README.gz" einfo " /usr/share/doc/${PF}/laptopmode.txt.gz" einfo "" }