diff options
author | 2004-08-17 21:01:52 +0000 | |
---|---|---|
committer | 2004-08-17 21:01:52 +0000 | |
commit | fcc1cce612ca54afbd9b56c2a0926cf2a4bebf70 (patch) | |
tree | c9385e43f0f73847820d28db5e961a69e79f90c3 /sys-apps/hal | |
parent | Add new Version 0.8.9. (Manifest recommit) (diff) | |
download | gentoo-2-fcc1cce612ca54afbd9b56c2a0926cf2a4bebf70.tar.gz gentoo-2-fcc1cce612ca54afbd9b56c2a0926cf2a4bebf70.tar.bz2 gentoo-2-fcc1cce612ca54afbd9b56c2a0926cf2a4bebf70.zip |
hardware abstraction is for wussies
Diffstat (limited to 'sys-apps/hal')
-rw-r--r-- | sys-apps/hal/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/hal/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/hal/files/digest-hal-0.2.97 | 1 | ||||
-rw-r--r-- | sys-apps/hal/files/hald | 31 | ||||
-rw-r--r-- | sys-apps/hal/hal-0.2.97.ebuild | 68 | ||||
-rw-r--r-- | sys-apps/hal/metadata.xml | 8 |
6 files changed, 122 insertions, 0 deletions
diff --git a/sys-apps/hal/ChangeLog b/sys-apps/hal/ChangeLog new file mode 100644 index 000000000000..d58c98c5110b --- /dev/null +++ b/sys-apps/hal/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-apps/hal +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.1 2004/08/17 21:01:52 foser Exp $ + +*hal-0.2.97 (17 Aug 2004) + + 17 Aug 2004; foser <foser@gentoo.org> hal-0.2.97.ebuild, metadata.xml, Changelog : + Initial commit of hal (Hardware Abstraction Layer), a layer on top of udev to get hardware info + Added init script for Gentoo + Added to the gnome herd for now, maintained by foser <foser@gentoo.org> + diff --git a/sys-apps/hal/Manifest b/sys-apps/hal/Manifest new file mode 100644 index 000000000000..66a1fa5fd2b9 --- /dev/null +++ b/sys-apps/hal/Manifest @@ -0,0 +1,3 @@ +MD5 12306f9eea2c2799577e92777ab14ca7 hal-0.2.97.ebuild 974 +MD5 a786f25b2d3f1a766bda8bad289dbbd0 files/hald 603 +MD5 9ba9094143c1d09db466d61bb7d7b3d5 files/digest-hal-0.2.97 63 diff --git a/sys-apps/hal/files/digest-hal-0.2.97 b/sys-apps/hal/files/digest-hal-0.2.97 new file mode 100644 index 000000000000..377a8445a224 --- /dev/null +++ b/sys-apps/hal/files/digest-hal-0.2.97 @@ -0,0 +1 @@ +MD5 d156860f508ea384282a367774fe85bb hal-0.2.97.tar.gz 1238713 diff --git a/sys-apps/hal/files/hald b/sys-apps/hal/files/hald new file mode 100644 index 000000000000..8711523cfb89 --- /dev/null +++ b/sys-apps/hal/files/hald @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/hald,v 1.1 2004/08/17 21:01:52 foser Exp $ + +depend() { + + need dbus hotplug + +} + +start() { + + ebegin "Starting Hardware Abstraction Layer daemon" + + start-stop-daemon --start -q --exec /usr/sbin/hald + echo `/sbin/pidof hald` > /var/run/hald.pid + + eend $? + +} + +stop() { + + ebegin "Stopping Hardware Abstraction Layer daemon" + + start-stop-daemon --stop -q --pidfile /var/run/hald.pid + + eend $? + +} diff --git a/sys-apps/hal/hal-0.2.97.ebuild b/sys-apps/hal/hal-0.2.97.ebuild new file mode 100644 index 000000000000..370edd4ed723 --- /dev/null +++ b/sys-apps/hal/hal-0.2.97.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.2.97.ebuild,v 1.1 2004/08/17 21:01:52 foser Exp $ + +inherit eutils debug python + +DESCRIPTION="Hardware Abstraction Layer" +HOMEPAGE="http://www.freedesktop.org/Software/hal" + +SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz" +LICENSE="GPL-2 | AFL-2.0" + +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND=">=dev-libs/glib-2.2.2 + >=sys-apps/dbus-0.22 + dev-libs/expat + sys-fs/udev + sys-apps/hotplug" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_compile() { + + # FIXME : docs + econf \ + --disable-doxygen-docs \ + --disable-docbook-docs \ + || die + + emake || die + +} + +src_install() { + + make DESTDIR=${D} install || die + + # initscript + exeinto /etc/init.d/ + doexe ${FILESDIR}/hald + + # fstab automatic device creation + dosym /usr/sbin/fstab-sync /etc/hal/device.d/fstab-sync + + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README + +} + +pkg_preinst() { + + enewgroup haldaemon || die "Problem adding haldaemon group" + enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user" + +} + +pkg_postinst() { + + einfo "Enabled in this ebuild by default is the usage of fstab-sync" + einfo "that will create mount rules for non-existing devices in" + einfo "fstab if needed, mount points will be created in /media." + einfo "This functionality alters your fstab runtime on the filesystem" + einfo "and might affects certain applications." + +} diff --git a/sys-apps/hal/metadata.xml b/sys-apps/hal/metadata.xml new file mode 100644 index 000000000000..3cfad92cea1d --- /dev/null +++ b/sys-apps/hal/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<maintainer> + <email>foser@gentoo.org</email> +</maintainer> +</pkgmetadata> |