Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde-sunset:master commit in: sys-apps/hal/, sys-apps/hal/files/, app-misc/hal-info/
Date: Mon, 30 Nov 2020 00:52:24
Message-Id: 1606697512.f2d3cac9ffc18e10e041511a106aa02fae8f1670.asturm@gentoo
1 commit: f2d3cac9ffc18e10e041511a106aa02fae8f1670
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 24 12:40:51 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 00:51:52 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=f2d3cac9
7
8 app-misc/hal-info, sys-apps/hal: Remove obsolete package, no revdeps
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 app-misc/hal-info/hal-info-20091130.ebuild | 22 ---
13 app-misc/hal-info/metadata.xml | 5 -
14 sys-apps/hal/files/0.5.14-hald.conf | 6 -
15 sys-apps/hal/files/0.5.14-hald.rc.1 | 39 ----
16 sys-apps/hal/files/hal-unmount.dev | 17 --
17 sys-apps/hal/hal-0.5.14-r4.ebuild | 296 -----------------------------
18 sys-apps/hal/metadata.xml | 36 ----
19 7 files changed, 421 deletions(-)
20
21 diff --git a/app-misc/hal-info/hal-info-20091130.ebuild b/app-misc/hal-info/hal-info-20091130.ebuild
22 deleted file mode 100644
23 index 0954ec83..00000000
24 --- a/app-misc/hal-info/hal-info-20091130.ebuild
25 +++ /dev/null
26 @@ -1,22 +0,0 @@
27 -# Copyright 1999-2020 Gentoo Authors
28 -# Distributed under the terms of the GNU General Public License v2
29 -
30 -DESCRIPTION="The fdi scripts that HAL uses"
31 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/hal/"
32 -SRC_URI="https://hal.freedesktop.org/releases/${P}.tar.gz
33 - mirror://kde-sunset/${P}.tar.gz"
34 -
35 -LICENSE="GPL-2"
36 -SLOT="0"
37 -KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
38 -IUSE=""
39 -
40 -RDEPEND=">=sys-apps/hal-0.5.10"
41 -DEPEND="${RDEPEND}"
42 -
43 -# This ebuild does not install any binaries
44 -RESTRICT="binchecks strip"
45 -
46 -src_install() {
47 - emake DESTDIR="${D}" install || die
48 -}
49
50 diff --git a/app-misc/hal-info/metadata.xml b/app-misc/hal-info/metadata.xml
51 deleted file mode 100644
52 index 6f49eba8..00000000
53 --- a/app-misc/hal-info/metadata.xml
54 +++ /dev/null
55 @@ -1,5 +0,0 @@
56 -<?xml version="1.0" encoding="UTF-8"?>
57 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
58 -<pkgmetadata>
59 -<!-- maintainer-needed -->
60 -</pkgmetadata>
61
62 diff --git a/sys-apps/hal/files/0.5.14-hald.conf b/sys-apps/hal/files/0.5.14-hald.conf
63 deleted file mode 100644
64 index 941005a4..00000000
65 --- a/sys-apps/hal/files/0.5.14-hald.conf
66 +++ /dev/null
67 @@ -1,6 +0,0 @@
68 -# /etc/conf.d/hald
69 -
70 -# Should HAL be verbose to syslog? Useful for debugging
71 -HALD_VERBOSE="no"
72 -
73 -# vim: ft=gentoo-conf-d
74
75 diff --git a/sys-apps/hal/files/0.5.14-hald.rc.1 b/sys-apps/hal/files/0.5.14-hald.rc.1
76 deleted file mode 100644
77 index 6a312f43..00000000
78 --- a/sys-apps/hal/files/0.5.14-hald.rc.1
79 +++ /dev/null
80 @@ -1,39 +0,0 @@
81 -#!/sbin/runscript
82 -# Copyright 1999-2010 Gentoo Foundation
83 -# Distributed under the terms of the GNU General Public License, v2 or later
84 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/0.5.14-hald.rc.1,v 1.1 2010/09/28 06:20:47 ssuominen Exp $
85 -
86 -depend() {
87 - use logger acpid
88 - need dbus
89 - after coldplug dns nscd
90 -}
91 -
92 -start() {
93 - [ -z "${HALD_VERBOSE}" ] && HALD_VERBOSE="no"
94 - ebegin "Starting Hardware Abstraction Layer daemon"
95 -
96 -# REAL_ROOT=`mount -fv / | cut -d' ' -f1`
97 -# TEST_ROOT=`cat /proc/mounts | cut -d' ' -f1 | head -n 2 | tail -n 1`
98 -
99 -# if [ ! -e ${TEST_ROOT} ]; then
100 -# echo "You need a ${TEST_ROOT} that points to your ${REAL_ROOT}"
101 -# echo "See http://bugs.gentoo.org/show_bug.cgi?id=175243"
102 -# echo "Quick fix is: ln -s ${REAL_ROOT} ${TEST_ROOT}"
103 -# eend 2
104 -# fi
105 -
106 - if [ -f /proc/acpi/event ]; then
107 - chgrp haldaemon /proc/acpi/event
108 - chmod 440 /proc/acpi/event
109 - fi
110 -
111 - start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog --verbose=${HALD_VERBOSE}
112 - eend $?
113 -}
114 -
115 -stop() {
116 - ebegin "Stopping Hardware Abstraction Layer daemon"
117 - start-stop-daemon --stop -q --pidfile /var/run/hald.pid
118 - eend $?
119 -}
120
121 diff --git a/sys-apps/hal/files/hal-unmount.dev b/sys-apps/hal/files/hal-unmount.dev
122 deleted file mode 100644
123 index 04d1fa81..00000000
124 --- a/sys-apps/hal/files/hal-unmount.dev
125 +++ /dev/null
126 @@ -1,17 +0,0 @@
127 -#!/bin/sh
128 -
129 -# sanity check. DEVNAME should start with a /
130 -[ "$DEVNAME" != "${DEVNAME#/}" ] || exit 0
131 -
132 -# Lazily unmount drives which are removed, but still mounted
133 -if [ "$ACTION" = remove ] \
134 - && (grep -q "^$DEVNAME" /proc/mounts || grep -q "^$DEVNAME" /etc/mtab); then
135 - if [ -x /usr/bin/pumount ] ; then
136 - /usr/bin/pumount -l "$DEVNAME";
137 - else
138 - /bin/umount -l "$DEVNAME";
139 - fi
140 -fi
141 -
142 -exit 0
143 -
144
145 diff --git a/sys-apps/hal/hal-0.5.14-r4.ebuild b/sys-apps/hal/hal-0.5.14-r4.ebuild
146 deleted file mode 100644
147 index 43d4c762..00000000
148 --- a/sys-apps/hal/hal-0.5.14-r4.ebuild
149 +++ /dev/null
150 @@ -1,296 +0,0 @@
151 -# Copyright 1999-2011 Gentoo Foundation
152 -# Distributed under the terms of the GNU General Public License v2
153 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.14-r4.ebuild,v 1.8 2011/05/20 14:12:45 ssuominen Exp $
154 -
155 -EAPI="2"
156 -
157 -inherit eutils linux-info autotools flag-o-matic multilib
158 -
159 -PATCH_VERSION="5"
160 -
161 -MY_P=${P/_/}
162 -S=${WORKDIR}/${MY_P}
163 -PATCHNAME="${MY_P}-gentoo-patches-${PATCH_VERSION}"
164 -DESCRIPTION="Hardware Abstraction Layer"
165 -HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
166 -SRC_URI="mirror://kde-sunset/${MY_P}.tar.bz2
167 - mirror://kde-sunset/${PATCHNAME}.tar.bz2"
168 -
169 -LICENSE="|| ( GPL-2 AFL-2.0 )"
170 -SLOT="0"
171 -KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
172 -
173 -KERNEL_IUSE="kernel_linux kernel_FreeBSD"
174 -IUSE="X acpi apm crypt debug dell disk-partition doc laptop selinux ${KERNEL_IUSE}"
175 -
176 -RDEPEND=">=dev-libs/dbus-glib-0.61
177 - >=dev-libs/glib-2.14
178 - >=dev-libs/expat-1.95.8
179 - =virtual/libusb-0*
180 - >=sys-apps/pciutils-2.2.7-r1
181 - sys-apps/usbutils
182 - virtual/eject
183 - amd64? ( >=sys-apps/dmidecode-2.7 )
184 - dell? ( >=sys-libs/libsmbios-0.13.4 )
185 - disk-partition? ( >=sys-block/parted-1.8.0 )
186 - ia64? ( >=sys-apps/dmidecode-2.7 )
187 - kernel_linux? (
188 - >=sys-fs/udev-125
189 - >=sys-apps/util-linux-2.16
190 - >=sys-kernel/linux-headers-2.6.22
191 - crypt? ( >=sys-fs/cryptsetup-1.0.5 )
192 - )
193 - kernel_FreeBSD? ( >=dev-libs/libvolume_id-0.77 )
194 - x86? ( >=sys-apps/dmidecode-2.7 )
195 - selinux? ( sys-libs/libselinux )"
196 -DEPEND="${RDEPEND}
197 - >=dev-util/gperf-3.0.3
198 - >=dev-util/intltool-0.35
199 - virtual/pkgconfig
200 - doc? (
201 - app-text/xmlto
202 - dev-libs/libxml2
203 - dev-util/gtk-doc
204 - app-text/docbook-sgml-utils
205 - app-text/docbook-xml-dtd:4.1.2
206 - )"
207 -PDEPEND=">=app-misc/hal-info-20081219
208 - !gnome-extra/hal-device-manager
209 - laptop? ( >=sys-power/pm-utils-0.99.3 )"
210 -
211 -## HAL Daemon drops privledges so we need group access to read disks
212 -HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
213 -HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
214 -
215 -function check_hotplug_net() {
216 - local CONFIG_CHECK="~HOTPLUG ~NET"
217 - local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)\n"
218 - local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)\n"
219 - check_extra_config
220 -}
221 -
222 -function check_inotify() {
223 - local CONFIG_CHECK="~INOTIFY_USER"
224 - local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)\n"
225 - check_extra_config
226 -}
227 -
228 -function check_acpi_proc() {
229 - local CONFIG_CHECK="~ACPI_PROCFS ~ACPI_PROC_EVENT"
230 - local WARNING_ACPI_PROCFS="CONFIG_ACPI_PROCFS:\tis not set (required for HAL)\n"
231 - local WARNING_ACPI_PROC_EVENT="CONFIG_ACPI_PROC_EVENT:\tis not set (required for HAL)\n"
232 - check_extra_config
233 -}
234 -
235 -pkg_setup() {
236 - if use kernel_linux ; then
237 - if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then
238 - kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer"
239 -
240 - if kernel_is lt 2 6 23 && use acpi ; then
241 - check_acpi_proc
242 - fi
243 - fi
244 -
245 - check_hotplug_net
246 - check_inotify
247 - fi
248 -
249 - # http://devmanual.gentoo.org/ebuild-writing/functions/
250 - # http://bugs.gentoo.org/show_bug.cgi?id=191605
251 -
252 - # Create groups for hotplugging and HAL
253 - enewgroup haldaemon
254 - enewgroup plugdev
255 -
256 - # HAL drops priviledges by default now ...
257 - # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
258 - if use kernel_linux; then
259 - enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
260 - elif use kernel_FreeBSD; then
261 - enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
262 - fi
263 -
264 - # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
265 - # If users have a problem with this, let them file a bug
266 - if [[ ${ROOT} == / ]] ; then
267 - if use kernel_linux; then
268 - usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
269 - elif use kernel_FreeBSD; then
270 - pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
271 - fi
272 - fi
273 -}
274 -
275 -src_prepare() {
276 - EPATCH_MULTI_MSG="Applying Gentoo Patchset ..." \
277 - EPATCH_SUFFIX="patch" \
278 - EPATCH_SOURCE="${WORKDIR}/${PATCHNAME}/patches/" \
279 - EPATCH_FORCE="yes" \
280 - epatch
281 -
282 - eautoreconf
283 -}
284 -
285 -src_configure() {
286 - local acpi="$(use_enable acpi)"
287 - local backend=
288 - local hardware=
289 -
290 - append-flags -rdynamic
291 -
292 - if use kernel_linux ; then
293 - backend="linux"
294 - elif use kernel_FreeBSD ; then
295 - backend="freebsd"
296 - else
297 - eerror "Invalid backend"
298 - fi
299 -
300 - if use kernel_linux ; then
301 - if use acpi ; then
302 - # Using IBM ACPI and Toshiba ACPI results in double notification as this
303 - # was merged into the Linux Kernel 2.6.22
304 - if kernel_is lt 2 6 22 ; then
305 - acpi="$acpi --enable-acpi-ibm --enable-acpi-toshiba"
306 - else
307 - acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
308 - fi
309 -
310 - acpi="$acpi --enable-acpi-proc --enable-acpi-acpid"
311 - else
312 - acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
313 - acpi="$acpi --disable-acpi-proc --disable-acpi-acpid"
314 - fi
315 -
316 - hardware="--with-cpufreq --with-usb-csr --with-keymaps"
317 - use arm && hardware="$hardware --with-omap --enable-pmu"
318 - use ppc && hardware="$hardware --enable-pmu"
319 - if use x86 || use amd64; then
320 - hardware="$hardware --with-macbook --with-macbookpro"
321 - fi
322 -
323 - if use dell ; then
324 - hardware="$hardware --with-dell-backlight"
325 - else
326 - hardware="$hardware --without-dell-backlight"
327 - fi
328 -
329 - hardware="$hardware --enable-sonypic"
330 - else
331 - hardware="--without-cpufreq --without-usb-csr --without-keymaps"
332 - hardware="$hardware --without-omap"
333 - hardware="$hardware --without-dell-backlight"
334 - hardware="$hardware --enable-acpi-ibm --enable-acpi-toshiba"
335 - hardware="$hardware --disable-sonypic"
336 - fi
337 -
338 - econf --with-backend=${backend} \
339 - --with-os-type=gentoo \
340 - --with-pid-file=/var/run/hald.pid \
341 - --with-hwdata=/usr/share/misc \
342 - --with-socket-dir=/var/run/hald \
343 - --with-udev-prefix=/etc \
344 - --enable-umount-helper \
345 - --enable-man-pages \
346 - --disable-acl-management \
347 - --enable-pci \
348 - --disable-policy-kit \
349 - --disable-console-kit \
350 - $(use_enable apm) \
351 - $(use_enable debug verbose-mode) \
352 - $(use_enable disk-partition parted) \
353 - $(use_enable doc docbook-docs) \
354 - $(use_enable doc gtk-doc) \
355 - --docdir=/usr/share/doc/${PF} \
356 - --localstatedir=/var \
357 - ${acpi} ${hardware} \
358 - || die "configure failed"
359 -}
360 -
361 -src_install() {
362 - emake DESTDIR="${D}" install || die
363 - dodoc AUTHORS ChangeLog NEWS README || die "docs failed"
364 -
365 - # hal umount for unclean unmounts
366 - exeinto /$(get_libdir)/udev/
367 - newexe "${FILESDIR}/hal-unmount.dev" hal_unmount || die "udev helper failed"
368 -
369 - # initscript
370 - cp "${FILESDIR}/0.5.14-hald.rc.1" "${WORKDIR}/" || \
371 - die "failed to copy hald.rc.1"
372 - newinitd "${WORKDIR}/0.5.14-hald.rc.1" hald || die "init script failed"
373 -
374 - # configuration
375 - cp "${FILESDIR}/0.5.14-hald.conf" "${WORKDIR}/" || \
376 - die "failed to copy hald.conf"
377 -
378 - if use debug; then
379 - sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
380 - -i "${WORKDIR}/0.5.14-hald.conf" || die "failed to change verbose"
381 - fi
382 - newconfd "${WORKDIR}/0.5.14-hald.conf" hald || \
383 - die "failed to install hald.conf"
384 -
385 - if use X ; then
386 - # New Configuration Snippets
387 - dodoc "${WORKDIR}/${PATCHNAME}/config-examples/"*.fdi || \
388 - die "dodoc X examples failed"
389 - fi
390 -
391 - # We now create and keep /media here as both gnome-mount and pmount
392 - # use these directories, to avoid collision.
393 - keepdir /media
394 -
395 - # We also need to create and keep /etc/fdi/{information,policy,preprobe}
396 - # or else hal bombs.
397 - keepdir /etc/hal/fdi/{information,policy,preprobe}
398 -
399 - # HAL stores it's fdi cache in /var/cache/hald
400 - keepdir /var/cache/hald
401 -
402 - # HAL keeps its unix socket here
403 - keepdir /var/run/hald
404 - keepdir /var/lib/hal
405 -}
406 -
407 -pkg_postinst() {
408 - # Despite what people keep changing this location. Either one works.. it doesn't matter
409 - # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
410 -
411 - elog "The HAL daemon needs to be running for certain applications to"
412 - elog "work. Suggested is to add the init script to your start-up"
413 - elog "scripts, this should be done like this :"
414 - elog "\`rc-update add hald default\`"
415 - echo
416 - elog "Access to hal is now protected by either at_console or the plugdev group."
417 - elog "If you have problems discovering/configuring hardware, try adding"
418 - elog "yourself to plugdev, or ensuring consolekit is started"
419 - echo
420 - elog "IF you have additional applications which consume ACPI events, you"
421 - elog "should consider installing acpid to allow applications to share ACPI"
422 - elog "events."
423 - if use X ; then
424 - echo
425 - elog "If you wish to use a non US layout, you may do so by executing:"
426 - elog "setxkbmap <layout> or by utilizing your Desktop Environment's"
427 - elog "Keyboard Layout Settings mechanism."
428 - elog "Under GNOME, this is gnome-keyboard-properties, and under KDE"
429 - elog "it is kxkb."
430 - fi
431 - echo
432 - elog "In order have suspend/hibernate function with HAL or apps that use HAL"
433 - elog "(such as gnome-power-manager), you should build HAL with the laptop"
434 - elog "useflag which will install pm-utils."
435 - if use X ; then
436 - echo
437 - elog "X Input Hotplugging (if you build xorg-server with the HAL useflag)"
438 - elog "reads user specific configuration from /etc/hal/fdi/policy/."
439 - echo
440 - elog "You should remove the Input sections from your xorg.conf once you have"
441 - elog "migrated the rules to a HAL fdi file."
442 - fi
443 -
444 - ebeep 5
445 - epause 5
446 -}
447
448 diff --git a/sys-apps/hal/metadata.xml b/sys-apps/hal/metadata.xml
449 deleted file mode 100644
450 index f20de631..00000000
451 --- a/sys-apps/hal/metadata.xml
452 +++ /dev/null
453 @@ -1,36 +0,0 @@
454 -<?xml version="1.0" encoding="UTF-8"?>
455 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
456 -<pkgmetadata>
457 -<!-- maintainer-needed -->
458 -<maintainer>
459 - <email>dang@g.o</email>
460 -</maintainer>
461 -<use>
462 - <flag name='acpi'>Enables HAL to attempt to read from /proc/acpi/event, if
463 - unavailable, HAL will read events from <pkg>sys-power/acpid</pkg>. If
464 - you need multiple acpi readers, ensure acpid is in your default
465 - runlevel (rc-update add acpid default) along with HAL. This will also
466 - enable HAL to read Toshiba and IBM acpi events which do not get sent
467 - via /proc/acpi/event</flag>
468 - <flag name='crypt'>Allows HAL to mount volumes that are encrypted using
469 - LUKS. <pkg>sys-fs/cryptsetup-luks</pkg> which has recently been renamed
470 - to <pkg>sys-fs/cryptsetup</pkg> allows you to create such encrypted
471 - volumes. HAL will be able to handle volumes that are removable or
472 - fixed.</flag>
473 - <flag name='dell'>Builds and installs the Dell addon, which reads data from
474 - the Dell SM BIOS via <pkg>sys-libs/libsmbios</pkg>. It will read your
475 - service tag information and your hardware backlight data as well as
476 - allow you to modify the backlight settings on a Dell laptop.</flag>
477 - <flag name='disk-partition'>Allows HAL to use libparted from
478 - <pkg>sys-block/parted</pkg> to read raw partition data from your disks
479 - and process that data. Future versions of HAL (possibly 0.5.11 and
480 - higher) will allow you to create, modify, delete and format partitions
481 - from a GUI interface agnostic of your desktop environment.</flag>
482 - <flag name='doc'>Generates documentation that describes HAL's fdi
483 - format.</flag>
484 - <flag name='laptop'>Adds support for power management scripts
485 - (<pkg>sys-power/pm-utils</pkg>)</flag>
486 - <flag name='selinux'>Installs SELinux policies and links HAL to the SELinux
487 - libraries.</flag>
488 -</use>
489 -</pkgmetadata>