diff options
author | Jon Nall <nall@gentoo.org> | 2003-01-12 01:37:23 +0000 |
---|---|---|
committer | Jon Nall <nall@gentoo.org> | 2003-01-12 01:37:23 +0000 |
commit | 832e468beca94805664929b6299738f7f1933952 (patch) | |
tree | b577a928f2b91d35d5045defffb705670055959e | |
parent | more stuff + e install bug fix (diff) | |
download | gentoo-2-832e468beca94805664929b6299738f7f1933952.tar.gz gentoo-2-832e468beca94805664929b6299738f7f1933952.tar.bz2 gentoo-2-832e468beca94805664929b6299738f7f1933952.zip |
patched to add pmud replacement support
-rw-r--r-- | sys-apps/pbbuttonsd/ChangeLog | 5 | ||||
-rw-r--r-- | sys-apps/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 | 1 | ||||
-rw-r--r-- | sys-apps/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch | 12 | ||||
-rw-r--r-- | sys-apps/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild | 46 |
4 files changed, 64 insertions, 0 deletions
diff --git a/sys-apps/pbbuttonsd/ChangeLog b/sys-apps/pbbuttonsd/ChangeLog index 55e8e65bea97..6847b322853c 100644 --- a/sys-apps/pbbuttonsd/ChangeLog +++ b/sys-apps/pbbuttonsd/ChangeLog @@ -4,6 +4,11 @@ # 19:20:18 aliz Exp $ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords +*pbbuttonsd-0.5.2-r1.ebuild (17 Dec 2002) + + 17 Dec 2002; Jon Nall <nall@gentoo.org> 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.ebuild (17 0ct 2002) diff --git a/sys-apps/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 b/sys-apps/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 new file mode 100644 index 000000000000..d9607b0e05a1 --- /dev/null +++ b/sys-apps/pbbuttonsd/files/digest-pbbuttonsd-0.5.2-r1 @@ -0,0 +1 @@ +MD5 b7b5bd0ad2a6ba51f1b8d02ea3d23883 pbbuttonsd-0.5.2.tar.gz 192245 diff --git a/sys-apps/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch b/sys-apps/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch new file mode 100644 index 000000000000..ec3f92919851 --- /dev/null +++ b/sys-apps/pbbuttonsd/files/pbbuttons-0.5.2-replace_pmud.patch @@ -0,0 +1,12 @@ +--- src/configfile.c.orig 2002-12-17 21:07:53.000000000 -0600 ++++ src/configfile.c 2002-12-17 21:07:56.000000000 -0600 +@@ -93,7 +93,8 @@ + { "TPModeUpKey", TAG_TPMODEUPKEY, TAG_TPMODEUPMOD, cft_read_key }, + { "TPModeDownKey", TAG_TPMODEDOWNKEY, TAG_TPMODEDOWNMOD, cft_read_key }, + { "TPMode", TAG_TPMODE, 0, cft_read_tpmode }, +- { "KBDMode", TAG_KBDMODE, 0, cft_read_kbdmode }}; ++ { "KBDMode", TAG_KBDMODE, 0, cft_read_kbdmode }, ++ { "replace_pmud", TAG_REPLACEPMUD, 0, cft_read_bool}}; + + if ((stat(configfile, &stat_buf)) == -1) { + print_error (_("WARNING: Couldn't read configfile [%s, %s], using defaults.\n"), configfile, strerror(errno)); diff --git a/sys-apps/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild b/sys-apps/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild new file mode 100644 index 000000000000..808aabd90a5a --- /dev/null +++ b/sys-apps/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pbbuttonsd/pbbuttonsd-0.5.2-r1.ebuild,v 1.1 2003/01/12 01:37:23 nall Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="PBButtons is a program to map special Powerbook/iBook keys in Linux" +SRC_URI="http://www.cymes.de/members/joker/projects/pbbuttons/tar/${P}.tar.gz" +HOMEPAGE="http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html" +KEYWORDS="~ppc ~x86" +DEPEND="virtual/glibc" +RDEPEND="" +SLOT=0 +LICENSE=GPL + +src_unpack() { + unpack ${A} + cd ${S} + + einfo "Patching in fix to enable replace_pmud support" + patch -p0 < ${FILESDIR}/pbbuttons-0.5.2-replace_pmud.patch || die "Can't apply patch" + +} + +src_compile() { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc || die "sorry, pbbuttons configure failed" + make || die "sorry, failed to compile pbbuttons" +} + +src_install() { + + dodir /etc/power + make sysconfdir=${D}/etc DESTDIR=${D} install || die "failed to install" + exeinto /etc/init.d ; newexe ${FILESDIR}/pbbuttonsd.rc5 pbbuttonsd + dodoc README COPYING + +} + +src_postinstall(){ + einfo "This version of pbbuttonsd can replace PMUD functionality." + einfo "If you want PMUD installed and running, you should set" + einfo "replace_pmud=no in /etc/pbbuttonsd.conf. Otherwise you can" + einfo "try setting replace_pmud=yes in /etc/pbbuttonsd.conf and" + einfo "disabling PMUD" +} |