1 |
josejx 08/12/28 02:14:13 |
2 |
|
3 |
Modified: pbbuttonsd-0.8.1-r2.ebuild ChangeLog |
4 |
Added: pbbuttonsd-0.8.1-r3.ebuild |
5 |
Log: |
6 |
Add patch to fix fnmode with kernel 2.6.28. |
7 |
(Portage version: 2.1.4.5) |
8 |
|
9 |
Revision Changes Path |
10 |
1.6 app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild?rev=1.6&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild?rev=1.6&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild?r1=1.5&r2=1.6 |
15 |
|
16 |
Index: pbbuttonsd-0.8.1-r2.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild,v |
19 |
retrieving revision 1.5 |
20 |
retrieving revision 1.6 |
21 |
diff -u -r1.5 -r1.6 |
22 |
--- pbbuttonsd-0.8.1-r2.ebuild 24 Aug 2008 13:31:37 -0000 1.5 |
23 |
+++ pbbuttonsd-0.8.1-r2.ebuild 28 Dec 2008 02:14:12 -0000 1.6 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2008 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $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 $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r2.ebuild,v 1.6 2008/12/28 02:14:12 josejx Exp $ |
29 |
|
30 |
inherit autotools flag-o-matic eutils |
31 |
|
32 |
@@ -23,7 +23,7 @@ |
33 |
>=dev-libs/glib-2.6" |
34 |
|
35 |
src_unpack() { |
36 |
- unpack "${A}" |
37 |
+ unpack ${A} |
38 |
cd "${S}" |
39 |
|
40 |
epatch "${FILESDIR}/pmcs.patch" |
41 |
|
42 |
|
43 |
|
44 |
1.76 app-laptop/pbbuttonsd/ChangeLog |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog?rev=1.76&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog?rev=1.76&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog?r1=1.75&r2=1.76 |
49 |
|
50 |
Index: ChangeLog |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog,v |
53 |
retrieving revision 1.75 |
54 |
retrieving revision 1.76 |
55 |
diff -u -r1.75 -r1.76 |
56 |
--- ChangeLog 24 Aug 2008 13:31:37 -0000 1.75 |
57 |
+++ ChangeLog 28 Dec 2008 02:14:12 -0000 1.76 |
58 |
@@ -1,6 +1,12 @@ |
59 |
# ChangeLog for app-laptop/pbbuttonsd |
60 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog,v 1.75 2008/08/24 13:31:37 maekke Exp $ |
62 |
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/ChangeLog,v 1.76 2008/12/28 02:14:12 josejx Exp $ |
63 |
+ |
64 |
+*pbbuttonsd-0.8.1-r3 (28 Dec 2008) |
65 |
+ |
66 |
+ 28 Dec 2008; Joseph Jezak <josejx@g.o> +files/fnmode.patch, |
67 |
+ pbbuttonsd-0.8.1-r2.ebuild, +pbbuttonsd-0.8.1-r3.ebuild: |
68 |
+ Add patch to fix fnmode with kernel 2.6.28. |
69 |
|
70 |
24 Aug 2008; Markus Meier <maekke@g.o> pbbuttonsd-0.8.1-r2.ebuild: |
71 |
add ~amd64, bug #167011 |
72 |
|
73 |
|
74 |
|
75 |
1.1 app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild |
76 |
|
77 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild?rev=1.1&view=markup |
78 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild?rev=1.1&content-type=text/plain |
79 |
|
80 |
Index: pbbuttonsd-0.8.1-r3.ebuild |
81 |
=================================================================== |
82 |
# Copyright 1999-2008 Gentoo Foundation |
83 |
# Distributed under the terms of the GNU General Public License v2 |
84 |
# $Header: /var/cvsroot/gentoo-x86/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild,v 1.1 2008/12/28 02:14:12 josejx Exp $ |
85 |
|
86 |
inherit autotools flag-o-matic eutils |
87 |
|
88 |
DESCRIPTION="Handles power management and special keys on laptops." |
89 |
HOMEPAGE="http://pbbuttons.berlios.de" |
90 |
SRC_URI="mirror://sourceforge/pbbuttons/${P}.tar.gz" |
91 |
|
92 |
LICENSE="GPL-2" |
93 |
SLOT="0" |
94 |
KEYWORDS="~amd64 ~ppc ~x86" |
95 |
IUSE="acpi alsa debug doc ibam macbook oss" |
96 |
|
97 |
DEPEND="macbook? ( |
98 |
sys-libs/libsmbios |
99 |
sys-apps/pciutils |
100 |
) |
101 |
>=dev-libs/glib-2.6 |
102 |
doc? ( app-doc/doxygen )" |
103 |
RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0 ) |
104 |
>=dev-libs/glib-2.6" |
105 |
|
106 |
src_unpack() { |
107 |
unpack ${A} |
108 |
cd "${S}" |
109 |
|
110 |
epatch "${FILESDIR}/pmcs.patch" |
111 |
### Don't link with g++ if we don't use ibam |
112 |
if ! use ibam; then |
113 |
epatch "${FILESDIR}/g++.patch" |
114 |
fi |
115 |
### Fix macbook -lz issue |
116 |
epatch "${FILESDIR}/lz.patch" |
117 |
epatch "${FILESDIR}/lm.patch" |
118 |
### Fix new apple hid fnmode issue |
119 |
epatch "${FILESDIR}/fnmode.patch" |
120 |
eautoconf |
121 |
} |
122 |
|
123 |
src_compile() { |
124 |
# Fix crash bug on some systems |
125 |
replace-flags -O? -O1 |
126 |
|
127 |
if use macbook; then |
128 |
laptop=macbook |
129 |
elif use x86 || use amd64; then |
130 |
if use acpi; then |
131 |
laptop=acpi |
132 |
else |
133 |
laptop=i386 |
134 |
fi |
135 |
# Default to PowerBook |
136 |
else |
137 |
laptop=powerbook |
138 |
fi |
139 |
|
140 |
econf laptop=$laptop \ |
141 |
$(use_enable debug) \ |
142 |
$(use_with doc doxygen_docs) \ |
143 |
$(use_with alsa) \ |
144 |
$(use_with oss) \ |
145 |
$(use_with ibam) \ |
146 |
|| die "Sorry, failed to configure pbbuttonsd" |
147 |
|
148 |
# Thanks to Stefan Bruda for this workaround |
149 |
# Using -j1 fixes a parallel build issue with the docs |
150 |
if use doc; then |
151 |
emake -j1 || die "Sorry, failed to compile pbbuttonsd" |
152 |
else |
153 |
emake || die "Sorry, failed to compile pbbuttonsd" |
154 |
fi |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
dodir /etc/power |
159 |
use ibam && dodir /var/lib/ibam |
160 |
make DESTDIR="${D}" install || die "failed to install" |
161 |
newinitd "${FILESDIR}/pbbuttonsd.rc6" pbbuttonsd |
162 |
dodoc README |
163 |
use doc && dohtml -r doc/* |
164 |
|
165 |
dodir /etc/power/resume.d |
166 |
dodir /etc/power/suspend.d |
167 |
dodir /etc/power/scripts.d |
168 |
exeinto "/etc/power/scripts.d" |
169 |
doexe "${FILESDIR}/wireless" |
170 |
ln -s "${D}/etc/power/scripts.d/wireless" "${D}/etc/power/resume.d/wireless" |
171 |
} |
172 |
|
173 |
pkg_postinst() { |
174 |
if [ -e /etc/pbbuttonsd.conf ]; then |
175 |
ewarn "The pbbuttonsd.cnf file replaces /etc/pbuttonsd.conf with a new" |
176 |
ewarn "file (/etc/pbbuttonsd.conf) and a new format. Please check the" |
177 |
ewarn "manual page with 'man pbbuttonsd.cnf' for details." |
178 |
ewarn |
179 |
fi |
180 |
|
181 |
if use macbook; then |
182 |
ewarn "Macbook and Macbook Pro users should make sure to have applesmc" |
183 |
ewarn "loaded before starting pbbuttonsdm otherwise auto-adjustments" |
184 |
ewarn "will not work and pbbuttonsd may segfault." |
185 |
fi |
186 |
|
187 |
ewarn "Ensure that the evdev kernel module is loaded otherwise" |
188 |
ewarn "pbbuttonsd won't work. SysV IPC is also required." |
189 |
ewarn |
190 |
ewarn "If you need extra security, you can tell pbbuttonsd to only accept" |
191 |
ewarn "input from one user. You can set the userallowed option in" |
192 |
ewarn "/etc/pbbuttonsd.cnf to limit access." |
193 |
ewarn |
194 |
|
195 |
if use ibam; then |
196 |
elog "To properly initialize the IBaM battery database, you will" |
197 |
elog "need to perform a full discharge/charge cycle. For more" |
198 |
elog "details, please see the pbbuttonsd man page." |
199 |
elog |
200 |
fi |
201 |
|
202 |
elog "A script is now available to reset your wirless connection on resume." |
203 |
elog "Simply uncomment the commented command and set the correct device to" |
204 |
elog "use it. You can find the script in /etc/power/resume.d/wireless" |
205 |
|
206 |
} |