diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-31 13:30:19 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-31 13:30:19 +0000 |
commit | dd1379556d7b953affde31337aa5a2a355aff3dd (patch) | |
tree | d1f57a457c203172d1a1b8b38b4df9228a24b890 /sys-power/acpid | |
parent | Fix info file thanks to Martin von Gagern (bug #312319). (diff) | |
download | gentoo-2-dd1379556d7b953affde31337aa5a2a355aff3dd.tar.gz gentoo-2-dd1379556d7b953affde31337aa5a2a355aff3dd.tar.bz2 gentoo-2-dd1379556d7b953affde31337aa5a2a355aff3dd.zip |
Version bump wrt #303891 by Andrew Brouwers.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-power/acpid')
-rw-r--r-- | sys-power/acpid/ChangeLog | 10 | ||||
-rw-r--r-- | sys-power/acpid/acpid-2.0.3.ebuild | 53 | ||||
-rw-r--r-- | sys-power/acpid/files/acpid-2.0.3.patch | 36 |
3 files changed, 97 insertions, 2 deletions
diff --git a/sys-power/acpid/ChangeLog b/sys-power/acpid/ChangeLog index 2837ef3ccdca..2cb4c8229a5b 100644 --- a/sys-power/acpid/ChangeLog +++ b/sys-power/acpid/ChangeLog @@ -1,6 +1,12 @@ # 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.42 2009/08/31 22:29:13 loki_val Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/ChangeLog,v 1.43 2010/03/31 13:30:19 ssuominen Exp $ + +*acpid-2.0.3 (31 Mar 2010) + + 31 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> +acpid-2.0.3.ebuild, + +files/acpid-2.0.3.patch: + Version bump wrt #303891 by Andrew Brouwers. *acpid-1.0.10_p4 (31 Aug 2009) diff --git a/sys-power/acpid/acpid-2.0.3.ebuild b/sys-power/acpid/acpid-2.0.3.ebuild new file mode 100644 index 000000000000..626674bad346 --- /dev/null +++ b/sys-power/acpid/acpid-2.0.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-2.0.3.ebuild,v 1.1 2010/03/31 13:30:19 ssuominen Exp $ + +EAPI=2 +inherit eutils toolchain-funcs + +DESCRIPTION="Daemon for Advanced Configuration and Power Interface" +HOMEPAGE="http://tedfelix.com/linux/acpid-netlink.html" +SRC_URI="http://tedfelix.com/linux/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 -ppc ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch +} + +src_compile() { + tc-export CC CPP + emake || die + emake -C kacpimon || die +} + +src_install() { + emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install || die + + dobin kacpimon/kacpimon || die + newdoc kacpimon/README README.kacpimon + + 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 + + newinitd "${FILESDIR}"/${PN}-1.0.6-init.d acpid || die + newconfd "${FILESDIR}"/${PN}-1.0.6-conf.d acpid || die + + insinto /usr/share/doc/${PF}/examples + doins -r samples/* || die + + prepalldocs +} + +pkg_postinst() { + echo + elog "You may wish to read the Gentoo Linux Power Management Guide," + elog "which can be found online at:" + elog "http://www.gentoo.org/doc/en/power-management-guide.xml" + echo +} diff --git a/sys-power/acpid/files/acpid-2.0.3.patch b/sys-power/acpid/files/acpid-2.0.3.patch new file mode 100644 index 000000000000..dc5c239b8a42 --- /dev/null +++ b/sys-power/acpid/files/acpid-2.0.3.patch @@ -0,0 +1,36 @@ +--- kacpimon/makefile ++++ kacpimon/makefile +@@ -8,7 +8,7 @@ + # release build + #CFLAGS = -O2 -Wall -Wextra -Wundef -Wshadow -Werror + # hybrid build, optimized, but with debugging symbols (Debian-style) +-CFLAGS = -g -O2 -Wall -Wextra -Wundef -Wshadow -Werror ++CFLAGS += -Wall -Wextra -Wundef -Wshadow + + objects := $(sources:.c=.o) + +--- Makefile ++++ Makefile +@@ -3,8 +3,6 @@ + # update these numbers for new releases + VERSION = 2.0.3 + +-OPT = -O2 +- + DESTDIR = + PREFIX = /usr + +@@ -29,10 +27,10 @@ + MAN8 = acpid.8 acpi_listen.8 + MAN8GZ = $(MAN8:.8=.8.gz) + +-DOCS = COPYING Changelog README TESTPLAN TODO ++DOCS = Changelog README TESTPLAN TODO + +-CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \ +- -fno-strict-aliasing -g $(DEFS) ++CFLAGS += -W -Wall -Wundef -Wshadow -D_GNU_SOURCE \ ++ -fno-strict-aliasing $(DEFS) + DEFS = -DVERSION="\"$(VERSION)\"" + + all: $(PROGS) |