Gentoo Archives: gentoo-commits

From: "Thomas Anderson (gentoofan23)" <gentoofan23@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hal: hal-0.5.11-r9.ebuild ChangeLog
Date: Wed, 17 Jun 2009 17:58:20
Message-Id: E1MGzOs-0006gJ-AZ@stork.gentoo.org
1 gentoofan23 09/06/17 17:58:18
2
3 Modified: ChangeLog
4 Added: hal-0.5.11-r9.ebuild
5 Log:
6 Stable revision bump for critical bug #268375, wrong cache dir leading to broken systems when hal is installed with paludis.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.289 sys-apps/hal/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?rev=1.289&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?rev=1.289&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?r1=1.288&r2=1.289
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v
19 retrieving revision 1.288
20 retrieving revision 1.289
21 diff -u -r1.288 -r1.289
22 --- ChangeLog 7 Jun 2009 22:59:48 -0000 1.288
23 +++ ChangeLog 17 Jun 2009 17:58:18 -0000 1.289
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-apps/hal
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.288 2009/06/07 22:59:48 dang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.289 2009/06/17 17:58:18 gentoofan23 Exp $
29 +
30 +*hal-0.5.11-r9 (17 Jun 2009)
31 +
32 + 17 Jun 2009; Thomas Anderson <gentoofan23@g.o>
33 + +hal-0.5.11-r9.ebuild:
34 + Stable revision bump for critical bug #268375, wrong cache dir leading to
35 + broken systems when hal is installed with paludis.
36
37 07 Jun 2009; Daniel Gryniewicz <dang@g.o> hal-0.5.12_rc1-r6.ebuild:
38 Update plugdev message to be more explicit
39
40
41
42 1.1 sys-apps/hal/hal-0.5.11-r9.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.11-r9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.11-r9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: hal-0.5.11-r9.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.11-r9.ebuild,v 1.1 2009/06/17 17:58:18 gentoofan23 Exp $
52
53 inherit eutils linux-info autotools flag-o-matic
54
55 PATCH_VERSION="5"
56
57 DESCRIPTION="Hardware Abstraction Layer"
58 HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
59 SRC_URI="http://hal.freedesktop.org/releases/${P/_/}.tar.bz2
60 http://dev.gentoo.org/~chainsaw/files/${P}-gentoo-patches-${PATCH_VERSION}.tar.bz2"
61
62 LICENSE="|| ( GPL-2 AFL-2.0 )"
63 SLOT="0"
64 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd"
65
66 KERNEL_IUSE="kernel_linux kernel_FreeBSD"
67 IUSE="X acpi apm crypt debug dell disk-partition doc laptop selinux ${KERNEL_IUSE}"
68
69 RDEPEND=">=dev-libs/dbus-glib-0.61
70 >=dev-libs/glib-2.14
71 >=dev-libs/expat-1.95.8
72 =virtual/libusb-0*
73 >=sys-apps/pciutils-2.2.7-r1
74 >=dev-util/gperf-3.0.3
75 sys-apps/usbutils
76 virtual/eject
77 amd64? ( >=sys-apps/dmidecode-2.7 )
78 dell? ( >=sys-libs/libsmbios-0.13.4 )
79 disk-partition? ( >=sys-apps/parted-1.8.0 )
80 ia64? ( >=sys-apps/dmidecode-2.7 )
81 kernel_linux? (
82 >=sys-fs/udev-117
83 >=sys-apps/util-linux-2.13
84 >=sys-kernel/linux-headers-2.6.19
85 crypt? ( >=sys-fs/cryptsetup-1.0.5 )
86 )
87 kernel_FreeBSD? ( >=dev-libs/libvolume_id-0.77 )
88 x86? ( >=sys-apps/dmidecode-2.7 )
89 selinux? ( sys-libs/libselinux sec-policy/selinux-hal )"
90 DEPEND="${RDEPEND}
91 dev-util/pkgconfig
92 >=dev-util/intltool-0.35
93 doc? (
94 app-text/xmlto
95 dev-libs/libxml2
96 dev-util/gtk-doc
97 app-text/docbook-sgml-utils
98 )"
99 PDEPEND="|| (
100 >=app-misc/hal-info-20081219 )
101 !gnome-extra/hal-device-manager
102 laptop? ( >=sys-power/pm-utils-0.99.3 )"
103
104 ## HAL Daemon drops privledges so we need group access to read disks
105 HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
106 HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
107
108 function check_hotplug_net() {
109 local CONFIG_CHECK="~HOTPLUG ~NET"
110 local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)\n"
111 local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)\n"
112 check_extra_config
113 }
114
115 function check_inotify() {
116 local CONFIG_CHECK="~INOTIFY_USER"
117 local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)\n"
118 check_extra_config
119 }
120
121 function check_acpi_proc() {
122 local CONFIG_CHECK="~ACPI_PROCFS ~ACPI_PROC_EVENT"
123 local WARNING_ACPI_PROCFS="CONFIG_ACPI_PROCFS:\tis not set (required for HAL)\n"
124 local WARNING_ACPI_PROC_EVENT="CONFIG_ACPI_PROC_EVENT:\tis not set (required for HAL)\n"
125 check_extra_config
126 }
127
128 pkg_setup() {
129 if use kernel_linux ; then
130 if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then
131 kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer"
132
133 if kernel_is lt 2 6 23 && use acpi ; then
134 check_acpi_proc
135 fi
136 fi
137
138 check_hotplug_net
139 check_inotify
140 fi
141
142 # http://devmanual.gentoo.org/ebuild-writing/functions/
143 # http://bugs.gentoo.org/show_bug.cgi?id=191605
144
145 # Create groups for hotplugging and HAL
146 enewgroup haldaemon
147 enewgroup plugdev
148
149 # HAL drops priviledges by default now ...
150 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
151 if use kernel_linux; then
152 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
153 elif use kernel_FreeBSD; then
154 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
155 fi
156
157 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
158 # If users have a problem with this, let them file a bug
159 if [[ ${ROOT} == / ]] ; then
160 if use kernel_linux; then
161 usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
162 elif use kernel_FreeBSD; then
163 pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
164 fi
165 fi
166 }
167
168 S="${WORKDIR}/${PF/-r*/}"
169
170 src_unpack() {
171 unpack ${A}
172 cd "${S}"
173
174 EPATCH_MULTI_MSG="Applying Gentoo Patchset ..." \
175 EPATCH_SUFFIX="patch" \
176 EPATCH_SOURCE="${WORKDIR}/${P}-patches/" \
177 EPATCH_FORCE="yes" \
178 epatch
179
180 eautoreconf
181 }
182
183 src_compile() {
184 local acpi="$(use_enable acpi)"
185 local backend=
186 local hardware=
187
188 append-flags -rdynamic
189
190 if use kernel_linux ; then
191 backend="linux"
192 elif use kernel_FreeBSD ; then
193 backend="freebsd"
194 else
195 eerror "Invalid backend"
196 fi
197
198 if use kernel_linux ; then
199 if use acpi ; then
200 # Using IBM ACPI and Toshiba ACPI results in double notification as this
201 # was merged into the Linux Kernel 2.6.22
202 if kernel_is lt 2 6 22 ; then
203 acpi="$acpi --enable-acpi-ibm --enable-acpi-toshiba"
204 else
205 acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
206 fi
207
208 acpi="$acpi --enable-acpi-proc --enable-acpi-acpid"
209 else
210 acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
211 acpi="$acpi --disable-acpi-proc --disable-acpi-acpid"
212 fi
213
214 hardware="--with-cpufreq --with-usb-csr --with-keymaps"
215 use arm && hardware="$hardware --with-omap --enable-pmu"
216 use ppc && hardware="$hardware --enable-pmu"
217 if use x86 || use amd64; then
218 hardware="$hardware --with-macbook --with-macbookpro"
219 fi
220
221 if use dell ; then
222 hardware="$hardware --with-dell-backlight"
223 else
224 hardware="$hardware --without-dell-backlight"
225 fi
226
227 hardware="$hardware --enable-sonypic"
228 else
229 hardware="--without-cpufreq --without-usb-csr --without-keymaps"
230 hardware="$hardware --without-omap"
231 hardware="$hardware --without-dell-backlight"
232 hardware="$hardware --enable-acpi-ibm --enable-acpi-toshiba"
233 hardware="$hardware --disable-sonypic"
234 fi
235
236 econf --with-backend=${backend} \
237 --with-os-type=gentoo \
238 --with-pid-file=/var/run/hald.pid \
239 --with-hwdata=/usr/share/misc \
240 --with-socket-dir=/var/run/hald \
241 --enable-umount-helper \
242 --enable-man-pages \
243 --disable-policy-kit \
244 --disable-console-kit \
245 --disable-acl-management \
246 --enable-pci \
247 $(use_enable apm) \
248 $(use_enable debug verbose-mode) \
249 $(use_enable disk-partition parted) \
250 $(use_enable doc docbook-docs) \
251 $(use_enable doc gtk-doc) \
252 --docdir=/usr/share/doc/${PF} \
253 --localstatedir=/var \
254 ${acpi} ${hardware} \
255 || die "configure failed"
256
257 emake || die "make failed"
258 }
259
260 src_install() {
261 emake DESTDIR="${D}" install || die
262 dodoc AUTHORS ChangeLog NEWS README || die "docs failed"
263
264 # hal umount for unclean unmounts
265 exeinto /lib/udev/
266 newexe "${FILESDIR}/hal-unmount.dev" hal_unmount || die "udev helper failed"
267
268 # initscript
269 newinitd "${FILESDIR}/0.5.10-hald.rc" hald || die "init script failed"
270
271 # configuration
272 cp "${FILESDIR}/0.5.10-hald.conf" "${WORKDIR}/" || \
273 die "failed to copy hald.conf"
274
275 if use debug; then
276 sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
277 -i "${WORKDIR}/0.5.10-hald.conf" || die "failed to change verbose"
278 fi
279 newconfd "${WORKDIR}/0.5.10-hald.conf" hald || \
280 die "failed to install hald.conf"
281
282 if use X ; then
283 # New Configuration Snippets
284 dodoc "${WORKDIR}/${PN}-config-examples/"*.fdi || \
285 die "dodoc X examples failed"
286 fi
287
288 # We now create and keep /media here as both gnome-mount and pmount
289 # use these directories, to avoid collision.
290 keepdir /media
291
292 # We also need to create and keep /etc/fdi/{information,policy,preprobe}
293 # or else hal bombs.
294 keepdir /etc/hal/fdi/{information,policy,preprobe}
295
296 # HAL stores it's fdi cache in /var/cache/hald
297 keepdir /var/cache/hald
298
299 # HAL keeps its unix socket here
300 keepdir /var/run/hald
301 keepdir /var/lib/hal
302 }
303
304 pkg_postinst() {
305 # Despite what people keep changing this location. Either one works.. it doesn't matter
306 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
307
308 elog "The HAL daemon needs to be running for certain applications to"
309 elog "work. Suggested is to add the init script to your start-up"
310 elog "scripts, this should be done like this :"
311 elog "\`rc-update add hald default\`"
312 echo
313 elog "Looking for automounting support? Add yourself to the plugdev group"
314 echo
315 elog "IF you have additional applications which consume ACPI events, you"
316 elog "should consider installing acpid to allow applications to share ACPI"
317 elog "events."
318 if use X ; then
319 echo
320 elog "If you wish to use a non US layout, you may do so by executing:"
321 elog "setxkbmap <layout> or by utilizing your Desktop Environment's"
322 elog "Keyboard Layout Settings mechanism."
323 elog "Under GNOME, this is gnome-keyboard-properties, and under KDE"
324 elog "it is kxkb."
325 fi
326 echo
327 elog "In order have suspend/hibernate function with HAL or apps that use HAL"
328 elog "(such as gnome-power-manager), you should build HAL with the laptop"
329 elog "useflag which will install pm-utils."
330 if use X ; then
331 echo
332 elog "X Input Hotplugging (if you build xorg-server with the HAL useflag)"
333 elog "reads user specific configuration from /etc/hal/fdi/policy/."
334 echo
335 elog "You should remove the Input sections from your xorg.conf once you have"
336 elog "migrated the rules to a HAL fdi file."
337 fi
338
339 ebeep 5
340 epause 5
341 }