# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/acpid/acpid-1.0.1.ebuild,v 1.16 2005/01/10 18:35:33 ciaranm Exp $ DESCRIPTION="Daemon for Advanced Configuration and Power Interface" HOMEPAGE="http://acpid.sourceforge.net/" SRC_URI="ftp://download.sourceforge.net/pub/sourceforge/acpid/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="" # We need the patched kernel with latest ACPI code, or else it will # be broken. Hopefully it will be merge into release kernel soon. DEPEND="virtual/libc virtual/linux-sources" src_compile() { # DO NOT compile with optimizations ! make INSTPREFIX=${D} ||die } src_install() { make INSTPREFIX=${D} install || die dodir /etc/acpi/events exeinto /etc/acpi doexe debian/default.sh insinto /etc/acpi/events doins debian/default dodoc README Changelog exeinto /etc/init.d newexe ${FILESDIR}/acpid.rc6 acpid } pkg_postinst() { echo einfo "You may wish to read the Gentoo Linux Power Management Guide," einfo "which can be found online at:" einfo " http://www.gentoo.org/doc/en/power-management-guide.xml" echo }