diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2009-05-05 08:42:08 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2009-05-05 08:42:08 +0000 |
commit | 5882a2742e6aa105a8bd4eeefadbc9e3d715f12c (patch) | |
tree | 246a9890dd0393e628611a26eb3c812e7a47029c /sys-power | |
parent | fix repoman warnings (diff) | |
download | gentoo-2-5882a2742e6aa105a8bd4eeefadbc9e3d715f12c.tar.gz gentoo-2-5882a2742e6aa105a8bd4eeefadbc9e3d715f12c.tar.bz2 gentoo-2-5882a2742e6aa105a8bd4eeefadbc9e3d715f12c.zip |
Bump with patch from Rafał Mużyło <galtgendo@o2.pl>, bug 268442, fixing strict aliasing warnings, accepted upstream.
(Portage version: 2.2_rc28/cvs/Linux x86_64)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/acpid/ChangeLog | 9 | ||||
-rw-r--r-- | sys-power/acpid/acpid-1.0.10_p3.ebuild | 60 |
2 files changed, 68 insertions, 1 deletions
diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog index b293c800cfe0..10340feb8cc5 100644 --- a/sys-power/acpid/ChangeLog +++ b/sys-power/acpid/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-power/acpid # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.38 2009/05/03 09:26:20 loki_val Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.39 2009/05/05 08:42:08 loki_val Exp $ + +*acpid-1.0.10_p3 (05 May 2009) + + 05 May 2009; Peter Alfredsen <loki_val@gentoo.org> + +acpid-1.0.10_p3.ebuild: + Bump with patch from Rafał Mużyło <galtgendo@o2.pl>, bug 268442, fixing + strict aliasing warnings, accepted upstream. *acpid-1.0.10 (03 May 2009) diff --git a/sys-power/acpid/acpid-1.0.10_p3.ebuild b/sys-power/acpid/acpid-1.0.10_p3.ebuild new file mode 100644 index 000000000000..70569530737b --- /dev/null +++ b/sys-power/acpid/acpid-1.0.10_p3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.10_p3.ebuild,v 1.1 2009/05/05 08:42:08 loki_val Exp $ + +inherit toolchain-funcs + +MY_P="${P%_p*}-netlink${PV#*_p}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Daemon for Advanced Configuration and Power Interface" +HOMEPAGE="http://acpid.sourceforge.net" +SRC_URI="http://tedfelix.com/linux/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-ppc ~ia64 ~alpha ~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/sed" +RDEPEND="" + +src_unpack() { + unpack ${A} + sed -i -e '/^CFLAGS /{s:=:+=:;s:-Werror::;s:-O2 -g::}' "${S}"/Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" INSTPREFIX="${D}" || die "emake failed" +} + +src_install() { + emake INSTPREFIX="${D}" install || die "emake install failed" + + exeinto /etc/acpi + newexe "${FILESDIR}"/${PN}-1.0.6-default.sh default.sh || die + insinto /etc/acpi/events + newins "${FILESDIR}"/${PN}-1.0.4-default default || die + + dodoc README Changelog TODO || die + + newinitd "${FILESDIR}"/${PN}-1.0.6-init.d acpid || die + newconfd "${FILESDIR}"/${PN}-1.0.6-conf.d acpid || die + + docinto examples + dodoc samples/{acpi_handler.sh,sample.conf} + + docinto examples/battery + dodoc samples/battery/* + + docinto examples/panasonic + dodoc samples/panasonic/* +} + +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 +} |