ChangeLog

# ChangeLog for app-laptop/pbbuttonsd
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog,v 1.75 2008/08/24 13:31:37 maekke Exp $

24 Aug 2008; Markus Meier pbbuttonsd-0.8.1-r2.ebuild:
add ~amd64, bug #167011

31 Jul 2008; Ulrich Mueller metadata.xml:
Add USE flag description to metadata wrt GLEP 56.

11 Jan 2008; Joseph Jezak +files/lm.patch,
pbbuttonsd-0.8.1-r2.ebuild:
Added patch to fix compile when not using alsa.

01 Dec 2007; Joseph Jezak files/lz.patch,
pbbuttonsd-0.8.1-r2.ebuild:
Fixed PKG_CONFIG issue.

30 Nov 2007; Joseph Jezak +files/g++.patch,
+files/lz.patch, -pbbuttonsd-0.8.1.ebuild, -pbbuttonsd-0.8.1-r1.ebuild,
pbbuttonsd-0.8.1-r2.ebuild:
Marked ppc stable. Added patches to not link in g++ if ibam is not enabled.
Also added patch for bug #194595. Fixed some unquoted variables and removed
old versions.

*pbbuttonsd-0.8.1-r2 (09 Sep 2007)

09 Sep 2007; Joseph Jezak -files/lm-fix.patch,
-files/pbbuttonsd-ibam-g++.patch,
-files/pbbuttonsd-laptopmode-noatime.patch, +files/wireless,
-files/x86-fix.patch, -pbbuttonsd-0.6.6.ebuild, -pbbuttonsd-0.7.4.ebuild,
-pbbuttonsd-0.7.8.ebuild, -pbbuttonsd-0.7.9.ebuild,
-pbbuttonsd-0.8.0.ebuild, pbbuttonsd-0.8.1-r1.ebuild,
+pbbuttonsd-0.8.1-r2.ebuild:
Added wireless resume script and cleaned up old ebuilds.

*pbbuttonsd-0.8.1-r1 (19 Jul 2007)

19 Jul 2007; Joseph Jezak +files/pmcs.patch,
+pbbuttonsd-0.8.1-r1.ebuild:
Added patch to remove hdparm settings for bug #185341.

*pbbuttonsd-0.8.1 (07 Jul 2007)

07 Jul 2007; Joseph Jezak +pbbuttonsd-0.8.1.ebuild:
New release.

20 Jun 2007; Markus Rothe pbbuttonsd-0.7.4.ebuild,
pbbuttonsd-0.7.8.ebuild, pbbuttonsd-0.7.9.ebuild, pbbuttonsd-0.8.0.ebuild:
I thought I've used this previously for my apple keyboard. Doesn't seem to
work (and more?). Dropping ppc64 keywords

25 May 2007; Christian Faulhammer ChangeLog:
corrected ChangeLog, so it conforms to our standards

28 Apr 2007; Sven Wegener pbbuttonsd-0.6.6.ebuild,
pbbuttonsd-0.7.4.ebuild, pbbuttonsd-0.7.8.ebuild, pbbuttonsd-0.7.9.ebuild,
pbbuttonsd-0.8.0.ebuild:
Fix *initd, *confd and *envd calls (#173884, #174266)

22 Apr 2007; Markus Rothe pbbuttonsd-0.8.0.ebuild:
Stable on ppc64

16 Apr 2007; Joseph Jezak pbbuttonsd-0.8.0.ebuild:
Marked ppc stable.

12 Mar 2007; Christian Faulhammer
pbbuttonsd-0.8.0.ebuild:
keyworded ~x86, bug 167011

*pbbuttonsd-0.8.0 (12 Mar 2007)

12 Mar 2007; Joseph Jezak +pbbuttonsd-0.8.0.ebuild:
New version of pbbuttonsd, supports the MacBook and MacBook Pro.

23 Jan 2007; Marius Mauch pbbuttonsd-0.6.6.ebuild,
pbbuttonsd-0.7.4.ebuild, pbbuttonsd-0.7.8.ebuild, pbbuttonsd-0.7.9.ebuild:
Replacing einfo with elog

18 Dec 2006; Joseph Jezak +files/lm-fix.patch,
pbbuttonsd-0.7.9.ebuild:
Added patch to enable -lm to fix compile error without alsa. Thanks to
gothgirl for pointing it out.

17 Dec 2006; Joseph Jezak files/x86-fix.patch:
Fixed the x86 patch for ppc.

17 Dec 2006; Joseph Jezak +files/x86-fix.patch,
pbbuttonsd-0.7.9.ebuild:
Marked ppc stable. Added x86 compile fix and re-added ~x86. Replaced
autoconf/automake with eautoconf.

03 Oct 2006; Joseph Jezak -pbbuttonsd-0.7.5.ebuild,
-pbbuttonsd-0.7.6.ebuild, pbbuttonsd-0.7.9.ebuild:
Removed ~x86 from 0.7.9, it doesn't build there. Removed older versions.

*pbbuttonsd-0.7.9 (02 Oct 2006)

02 Oct 2006; Joseph Jezak +pbbuttonsd-0.7.9.ebuild:
Added the latest version.

06 Sep 2006; Luca Barbato
files/pbbuttonsd-ibam-g++.patch:
Update the g++ patch to really build ibam when needed

27 Aug 2006; Luca Barbato
+files/pbbuttonsd-ibam-g++.patch, pbbuttonsd-0.7.8.ebuild:
fix spurious libstdc++ dep

26 Aug 2006; Stephanie Lockwood-Childs
+files/pbbuttonsd-laptopmode-noatime.patch, pbbuttonsd-0.6.6.ebuild,
pbbuttonsd-0.7.4.ebuild, pbbuttonsd-0.7.5.ebuild, pbbuttonsd-0.7.6.ebuild,
pbbuttonsd-0.7.8.ebuild:
Make laptopmode.sh always respect noatime option in fstab... did not revbump
because most users probably won't want to rebuild just for this fix.
Thanks to Eugene Surovegin who was observant to notice the bug (Bug #126001)

*pbbuttonsd-0.7.8 (31 Jul 2006)

31 Jul 2006; Joseph Jezak +pbbuttonsd-0.7.8.ebuild:
Latest release, includes workaround for the synaptics trackpad blocking issue.

*pbbuttonsd-0.7.6 (02 Jul 2006)

02 Jul 2006; Tony Vroon +pbbuttonsd-0.7.6.ebuild:
Version bump. This version provides 255 levels for the keyboard illumination
and a smoother fade. The ALSA segfault should be resolved.

06 Jun 2006; Luca Barbato pbbuttonsd-0.7.5.ebuild:
Added missing dir as pointed in bug #135698

27 May 2006; Joseph Jezak pbbuttonsd-0.7.5.ebuild:
Marked ppc stable.

*pbbuttonsd-0.7.5 (12 Apr 2006)

12 Apr 2006; Joseph Jezak pbbuttonsd-0.6.6.ebuild,
pbbuttonsd-0.7.4.ebuild, +pbbuttonsd-0.7.5.ebuild:
Added latest version. Added warning regarding access to IPC for bug #124942.

24 Mar 2006; Joseph Jezak -pbbuttonsd-0.7.1.ebuild,
-pbbuttonsd-0.7.2.ebuild, -pbbuttonsd-0.7.3.ebuild:
Removed old versions.

18 Mar 2006; Markus Rothe pbbuttonsd-0.7.4.ebuild:
Stable on ppc64

05 Mar 2006; Joseph Jezak pbbuttonsd-0.7.4.ebuild:
Marked ppc stable.

26 Feb 2006; Joseph Jezak pbbuttonsd-0.7.3.ebuild:
Removed kernel check and marked ppc stable.

30 Jan 2006; Joseph Jezak pbbuttonsd-0.7.2.ebuild,
pbbuttonsd-0.7.4.ebuild:
Removed kernel checks.

*pbbuttonsd-0.7.4 (28 Jan 2006)

28 Jan 2006; Joseph Jezak -pbbuttonsd-0.7.3.5g.ebuild,
-pbbuttonsd-0.7.3.6g.ebuild, +pbbuttonsd-0.7.4.ebuild:
Added latest version and removed old versions.

*pbbuttonsd-0.7.3.6g (22 Jan 2006)

22 Jan 2006; Joseph Jezak +pbbuttonsd-0.7.3.6g.ebuild:
Latest beta with Fn key support for the new powerbooks.

*pbbuttonsd-0.7.3.5g (19 Jan 2006)

19 Jan 2006; Joseph Jezak +pbbuttonsd-0.7.3.5g.ebuild:
Added latest beta with PMU based ambient sensor support.

*pbbuttonsd-0.7.3 (02 Jan 2006)

02 Jan 2006; Joseph Jezak +pbbuttonsd-0.7.3.ebuild:
Added new version.

19 Nov 2005; Joseph Jezak pbbuttonsd-0.7.2.ebuild:
Marked ppc stable.

16 Nov 2005; Luca Barbato pbbuttonsd-0.7.2.ebuild:
alsa and oss explicit support, kindly provided by Flameeyes

*pbbuttonsd-0.7.2 (05 Oct 2005)

05 Oct 2005; Joseph Jezak +pbbuttonsd-0.7.2.ebuild:
New version, forced -O1 to fix lockup issue reported in the forums, thanks
HighOnBonsai.

25 Sep 2005; Luca Barbato files/pbbuttonsd.rc6:
Minor fix to support parallel init

18 Sep 2005; Joseph Jezak pbbuttonsd-0.7.1.ebuild:
Added NoTapTyping warning.

18 Sep 2005; Joseph Jezak -pbbuttonsd-0.6.10.ebuild,
-pbbuttonsd-0.7.0.ebuild, pbbuttonsd-0.7.1.ebuild:
Marked 0.7.1 stable and removed old versions.

09 Sep 2005; Joseph Jezak pbbuttonsd-0.6.6.ebuild,
pbbuttonsd-0.7.1.ebuild:
Added debug option.

11 Aug 2005; Olivier CrĂȘte pbbuttonsd-0.7.1.ebuild:
Added acpi use flag for x86 and added ~x86 keywords, bug #87222 and #86566

*pbbuttonsd-0.7.1 (19 Jul 2005)

19 Jul 2005; Joseph Jezak +pbbuttonsd-0.7.1.ebuild:
Added latest version.

13 Jul 2005; Joseph Jezak -pbbuttonsd-0.7_pre1.ebuild,
-pbbuttonsd-0.7_pre2.ebuild:
Removed pre-release versions.

12 Jul 2005; Joseph Jezak pbbuttonsd-0.7.0.ebuild:
Added check for INPUT_EVDEV for bug #98050.

*pbbuttonsd-0.7.0 (11 Jul 2005)

11 Jul 2005; Joseph Jezak +pbbuttonsd-0.7.0.ebuild:
Added latest version.

*pbbuttonsd-0.7_pre2 (02 Jul 2005)

02 Jul 2005; Joseph Jezak +pbbuttonsd-0.7_pre2.ebuild:
Added new beta version.

*pbbuttonsd-0.7_pre1 (27 Jun 2005)

27 Jun 2005; Joseph Jezak
-files/alsa-segfault-0.6.7.patch, -pbbuttonsd-0.6.7.ebuild,
-pbbuttonsd-0.6.8.ebuild, -pbbuttonsd-0.6.9.ebuild,
+pbbuttonsd-0.7_pre1.ebuild:
Added 0.7beta1 and removed old ebuilds.

*pbbuttonsd-0.6.10 (26 May 2005)

26 May 2005; Joseph Jezak -pbbuttonsd-0.6.9-r1.ebuild,
+pbbuttonsd-0.6.10.ebuild:
Removed the alpha version and added 0.6.10 final.

*pbbuttonsd-0.6.9-r1 (26 May 2005)

26 May 2005; Joseph Jezak +pbbuttonsd-0.6.9-r1.ebuild:
Added latest pbbuttonsd with NoTapTyping fix.

*pbbuttonsd-0.6.9 (07 Apr 2005)

07 Apr 2005; Joseph Jezak +pbbuttonsd-0.6.9.ebuild:
New version.

*pbbuttonsd-0.6.8 (26 Mar 2005)

26 Mar 2005; Joseph Jezak +pbbuttonsd-0.6.8.ebuild:
Added pbbuttonsd 0.6.8

19 Feb 2005; Joseph Jezak pbbuttonsd-0.6.6.ebuild,
pbbuttonsd-0.6.7.ebuild:
Replaced make with emake for Mr_Bones.

*pbbuttonsd-0.6.7 (19 Feb 2005)

19 Feb 2005; Joseph Jezak
+files/alsa-segfault-0.6.7.patch, +pbbuttonsd-0.6.7.ebuild:
Added the new version of pbbuttonsd along with a patch to prevent segfaults
with ALSA. See bug #79692.

*pbbuttonsd-0.6.6 (21 Jan 2005)

21 Jan 2005; Lars Weiler
-files/pbbuttonsd-0.5.11-compat.patch,
-files/pbbuttonsd-0.6.1-compat.patch,
-files/pbbuttonsd-0.6.5-backlight.patch,
-files/pbbuttonsd-0.6.5-compat.patch, -files/pbbuttonsd-compat.patch,
-pbbuttonsd-0.5.11.ebuild, -pbbuttonsd-0.6.1.ebuild,
-pbbuttonsd-0.6.5.ebuild, pbbuttonsd-0.6.6.ebuild:
Stable on ppc and clean out old versions.

06 Oct 2004; Lars Weiler
-files/pbbuttonsd-0.5.10-compat.patch,
-files/pbbuttonsd-0.5.2-replace_pmud.patch, -files/pbbuttonsd.rc5,
-pbbuttonsd-0.4.10a.ebuild, -pbbuttonsd-0.5.10-r1.ebuild,
-pbbuttonsd-0.5.10.ebuild, -pbbuttonsd-0.5.2-r1.ebuild,
-pbbuttonsd-0.5.8.ebuild, -pbbuttonsd-0.5.9-r1.ebuild,
-pbbuttonsd-0.5.9.ebuild:
Tidy up unneeded versions.

06 Oct 2004; Lars Weiler
+files/pbbuttonsd-0.6.5-backlight.patch, pbbuttonsd-0.6.5.ebuild:
Added upstream patch from bug #64591 as long as it is not fixed upstream.

*pbbuttonsd-0.6.5 (15 Sep 2004)

15 Sep 2004; Luca Barbato
+files/pbbuttonsd-0.6.5-compat.patch, pbbuttonsd-0.6.1.ebuild,
+pbbuttonsd-0.6.5.ebuild:
New version, uri change on the stable ebuild

08 Aug 2004; Danny van Dyk
-files/pbbuttons-0.5.2-replace_pmud.patch,
+files/pbbuttonsd-0.5.2-replace_pmud.patch:
Patch had wrong filename, epatch failed.

06 Jul 2004; Luca Barbato pbbuttonsd-0.6.1.ebuild:
Marked ppc

29 Jun 2004; Aron Griffis pbbuttonsd-0.6.1.ebuild:
glibc -> libc

06 Jun 2004; Aron Griffis pbbuttonsd-0.5.2-r1.ebuild,
pbbuttonsd-0.6.1.ebuild:
Fix typo: src_postinstall -> pkg_postinst

*pbbuttonsd-0.6.1 (03 Jun 2004)

03 Jun 2004; Daniel Ostrow pbbuttonsd-0.6.1.ebuild:
+files/pbbuttonsd-0.6.1-compat.patch, +pbbuttonsd-0.6.1.ebuild
version bump including new compat patch

*pbbuttonsd-0.5.11 (22 Apr 2004)

22 Apr 2004; Luca Barbato
+files/pbbuttonsd-0.5.11-compat.patch, +pbbuttonsd-0.5.11.ebuild:
New version, new compatibility patch

*pbbuttonsd-0.5.10-r1 (21 Apr 2004)

21 Apr 2004; Luca Barbato
+files/pbbuttonsd-0.5.10-compat.patch, +pbbuttonsd-0.5.10-r1.ebuild:
Fixed again the backward compatibility

*pbbuttonsd-0.5.10 (11 Apr 2004)

11 Apr 2004; Lars Weiler pbbuttonsd-0.5.10.ebuild:
New version bump

15 Mar 2004; Luca Barbato pbbuttonsd-0.5.9-r1.ebuild:
Typo in the CONFIG_PROTECT mask fixed

*pbbuttonsd-0.5.9-r1 (14 Mar 2004)

14 Mar 2004; Luca Barbato pbbuttonsd-0.5.9-r1.ebuild,
files/pbbuttonsd-compat.patch:
Made sure the library includes are compatible with kmilo

*pbbuttonsd-0.5.9 (07 Mar 2004)

07 Mar 2004; Lars Weiler pbbuttonsd-0.5.9.ebuild:
Version bump.

*pbbuttonsd-0.5.8 (07 Feb 2004)

10 Feb 2004; Mike Frysinger pbbuttonsd.rc6 :
Clean up init.d script. Using start-stop-daemon is a kludge when
the app itself supports daemonizing.

07 Feb 2004; Lars Weiler pbbuttonsd-0.5.8.ebuild:
Version bump.

*pbbuttonsd-0.5.7 (10 Jan 2004)

10 Jan 2004; Luca Barbato pbbuttonsd-0.5.7.ebuild:
New version, should fix bug #37729

*pbbuttonsd-0.5.6-r1 (12 Dec 2003)

12 Dec 2003; Luca Barbato pbbuttonsd-0.5.6-r1.ebuild,
files/pbbuttonsd.rc5:
Minor changes

30 Nov 2003; Luca Barbato pbbuttonsd-0.5.6.ebuild:
minor fix

*pbbuttonsd-0.5.6 (26 Nov 2003)

26 Nov 2003; Luca Barbato pbbuttonsd-0.5.6.ebuild:
New version

*pbbuttonsd-0.5.3a (08 May 2003)

08 May 2003; Todd Heim pbbuttonsd-0.5.3a.ebuild:
version bumped, removed keywords for !ppc archs

*pbbuttonsd-0.5.2-r1 (17 Dec 2002)

24 Feb 2003; Nicholas Wourms pbbuttonsd-0.5.2-r1.ebuild :
This is definitely not for mips. Fixed changelog to work with echangelog.

17 Dec 2002; Jon Nall pbbuttonsd-0.5.2-r1.ebuild,
files/pbbuttons-0.5.2-replace_pmud.patch :
patched to actually use the pmud replacement code.

*pbbuttonsd-0.5.2 (17 0ct 2002)

14 Mar 2003; Mark Guertin pbbuttonsd-0.5.2-r1.ebuild,
pbbuttonsd-0.5.2.ebuild:
set ppc in keywords

24 Feb 2003; Nicholas Wourms pbbuttonsd-0.5.2.ebuild :
This is definitely not for mips.

17 Oct 2002; Kain pbbuttonsd-0.5.2.ebuild :

New ebuild for upstream enhancements and fixes. Pbbuttonsd is no longer
PowerMac only, but I haven't tested this on non-ppc yet.
This is an important update to pbbuttonsd, as its functionality is enhanced
on PPC platforms, and is made more predictable.

*pbbuttonsd-0.4.10a (28 Jul 2002)

24 Feb 2003; Nicholas Wourms pbbuttonsd-0.4.10a.ebuild :
This is definitely not for mips.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

28 Jul 2002; Calum Selkirk pbbuttonsd-0.4.10a.ebuild :

New ebuild due to bugfixes upstream.

*pbbuttonsd-0.4.9-r2 (14 Jul 2002)

14 Jul 2002; phoen][x pbbuttonsd-0.4.9-r2.ebuild :
Added KEYWORDS.

*pbbuttonsd-0.4.9-r1 (14 Jul 2002)

14 Jul 2002; phoen][x pbbuttonsd-0.4.9-r1.ebuild :
Added LICENSE, KEYWORDS, SLOT.

*pbbuttonsd-0.4.10 (14 Jul 2002)

24 Feb 2003; Nicholas Wourms pbbuttonsd-0.4.10.ebuild :
This is definitely not for mips.

14 Jul 2002; phoen][x pbbuttonsd-0.4.10.ebuild :
Added KEYWORDS.

*pbbuttons-0.4.10 (08 Jun 2002); gerk :

June 21 2002 Gerk (gerk@gentoo.org):

added ARCH checks, no revision bump

Sat Jun 8 11:38:34 EST 2002; gerk :
Upated for new release

*pbbuttons-0.4.9-r2 (03 Jun 2002); gerk :

Mon Jun 3 21:39:42 EST 2002; gerk :
Added init scripts to add to runlevel and set SLOT, LICENSE and
RDEPEND in ebuild.

*pbbuttons-0.4.9-r1 (08 May 2002); daybird :

Wed May 8 23:28:00 2002 EST; daybird :

OK, so this is the second ebuild (forgot the changelog the first time).
It now installs sandbox-safe, and config file goes into /etc, not
/usr/etc (so it willbe protected by config_protect).

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX g++.patch 500 RMD160 8b4ae9c627f1c156d6a3cf00533333367a2408bd SHA1 dd842e0026c7964fd43de7799dd16dc6c4c73164 SHA256 c9efa620b5c19473bb5ca8b17185c7e4e24f0b1db91f9ffb6c71747d68723b57
AUX lm.patch 491 RMD160 d4b8981777ac45576d28f18e0e3645990692a7ec SHA1 76c7d2e2c7cd0582982c8baa104e9ed817ed6011 SHA256 11971e1c05a37398ee4dff3e0b5d956a1e78996bf6277ab7868c942c66c30192
AUX lz.patch 992 RMD160 046a3671f70b0fb65928488634f884bd8b803b42 SHA1 5d19f2a699278c81b3cff984a986fe964be8f43c SHA256 5119e7e9a5f82ec16cf1d75990d75427babb638f38b3bf8b2502321bfebead6f
AUX pbbuttonsd.rc6 472 RMD160 6a531760a39c74e822f33d27866142a5fae1562d SHA1 b92c2b2dcc2592d60d9488afd7244df149509887 SHA256 a6cde254b56d760af00909772e3dee69b307802b72156b52dce9517ee3d6ecc8
AUX pmcs.patch 764 RMD160 1336291d7ffac4e1b675baa8a50142a2e90c15c4 SHA1 b2d95406cf89eed58ddfa59a7a0e3b933ed957e2 SHA256 4bf4e711838636bfde3688d8574374dde746639352d533c9bbb532cbd62827f8
AUX wireless 235 RMD160 592e730ede0f02e61c4562308fa3b212383def58 SHA1 e58e5ed804a2b7363677fcedcd06cd79a4f19f27 SHA256 0bc03fac1b17933200a3e6d3f50a1d2d2717857006aa06ddaf5d6650c902a978
DIST pbbuttonsd-0.8.1.tar.gz 589630 RMD160 2f1dc0bc8b67cbb310f06df932a5dfcf26d35551 SHA1 e07db4c0429c80109ca736bdd68e0da408011804 SHA256 b391fd98ed263f355d7e7addc6566959e986627c87dcfdaa1da15310ad70bffa
EBUILD pbbuttonsd-0.8.1-r2.ebuild 3419 RMD160 46e3d58f2374ac5cb7fb028e8f00ebbfa2ecb340 SHA1 ed80b3ee2b583abfda2c41cc54fc44554af91558 SHA256 eb820fb0142fecfb9b29fd349d9bd148115a467196dde6f901d4e5131a9ab311
MISC ChangeLog 16374 RMD160 8b8b10fd10a24ed7b500bd425a4220d2563e58ae SHA1 cc2c5536cde7e501036b8f71681f1de803c3ea8b SHA256 52dd466f3dd57b014fc5516f41d502bd434b6c8ea3179dc275b3f4d7b0b8b607
MISC metadata.xml 323 RMD160 dda75140d84779f99217c460e500ba3d14f51755 SHA1 a89436a3358a83eddc3a15b48f95e71bbbd06262 SHA256 211a3818387155dad15d88ed72ba1c3ead76e2a7ba0d45529295ee81a09b76a2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkixYw8ACgkQkKaRLQcq0GLfOQCeKq6kVYblmhWx6yfzCqHWmqK+
CkwAoJBDZ+WOuE4GuDLaQSwugJmGztU1
=1xXo
-----END PGP SIGNATURE-----

files

metadata.xml




ppc

Enable support for Intelligent Battery Monitoring
Enable support for the Macbook and Macbook Pro

pbbuttonsd-0.8.1-r2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild,v 1.5 2008/08/24 13:31:37 maekke Exp $

inherit autotools flag-o-matic eutils

DESCRIPTION="Handles power management and special keys on laptops."
HOMEPAGE="http://pbbuttons.berlios.de"
SRC_URI="mirror://sourceforge/pbbuttons/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ~x86"
IUSE="acpi alsa debug doc ibam macbook oss"

DEPEND="macbook? (
sys-libs/libsmbios
sys-apps/pciutils
)
>=dev-libs/glib-2.6
doc? ( app-doc/doxygen )"
RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0 )
>=dev-libs/glib-2.6"

src_unpack() {
unpack "${A}"
cd "${S}"

epatch "${FILESDIR}/pmcs.patch"
### Don't link with g++ if we don't use ibam
if ! use ibam; then
epatch "${FILESDIR}/g++.patch"
fi
### Fix macbook -lz issue
epatch "${FILESDIR}/lz.patch"
epatch "${FILESDIR}/lm.patch"
eautoconf
}

src_compile() {
# Fix crash bug on some systems
replace-flags -O? -O1

if use macbook; then
laptop=macbook
elif use x86 || use amd64; then
if use acpi; then
laptop=acpi
else
laptop=i386
fi
# Default to PowerBook
else
laptop=powerbook
fi

econf laptop=$laptop \
$(use_enable debug) \
$(use_with doc doxygen_docs) \
$(use_with alsa) \
$(use_with oss) \
$(use_with ibam) \
|| die "Sorry, failed to configure pbbuttonsd"

# Thanks to Stefan Bruda for this workaround
# Using -j1 fixes a parallel build issue with the docs
if use doc; then
emake -j1 || die "Sorry, failed to compile pbbuttonsd"
else
emake || die "Sorry, failed to compile pbbuttonsd"
fi
}

src_install() {
dodir /etc/power
use ibam && dodir /var/lib/ibam
make DESTDIR="${D}" install || die "failed to install"
newinitd "${FILESDIR}/pbbuttonsd.rc6" pbbuttonsd
dodoc README
use doc && dohtml -r doc/*

dodir /etc/power/resume.d
dodir /etc/power/suspend.d
dodir /etc/power/scripts.d
exeinto "/etc/power/scripts.d"
doexe "${FILESDIR}/wireless"
ln -s "${D}/etc/power/scripts.d/wireless" "${D}/etc/power/resume.d/wireless"
}

pkg_postinst() {
if [ -e /etc/pbbuttonsd.conf ]; then
ewarn "The pbbuttonsd.cnf file replaces /etc/pbuttonsd.conf with a new"
ewarn "file (/etc/pbbuttonsd.conf) and a new format. Please check the"
ewarn "manual page with 'man pbbuttonsd.cnf' for details."
ewarn
fi

if use macbook; then
ewarn "Macbook and Macbook Pro users should make sure to have applesmc"
ewarn "loaded before starting pbbuttonsdm otherwise auto-adjustments"
ewarn "will not work and pbbuttonsd may segfault."
fi

ewarn "Ensure that the evdev kernel module is loaded otherwise"
ewarn "pbbuttonsd won't work. SysV IPC is also required."
ewarn
ewarn "If you need extra security, you can tell pbbuttonsd to only accept"
ewarn "input from one user. You can set the userallowed option in"
ewarn "/etc/pbbuttonsd.cnf to limit access."
ewarn

if use ibam; then
elog "To properly initialize the IBaM battery database, you will"
elog "need to perform a full discharge/charge cycle. For more"
elog "details, please see the pbbuttonsd man page."
elog
fi

elog "A script is now available to reset your wirless connection on resume."
elog "Simply uncomment the commented command and set the correct device to"
elog "use it. You can find the script in /etc/power/resume.d/wireless"

}