/[gentoo-x86]/sys-apps/hal/hal-0.2.98.ebuild
Gentoo

Contents of /sys-apps/hal/hal-0.2.98.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Sep 20 22:58:00 2004 UTC (9 years, 11 months ago) by foser
Branch: MAIN
fresh release

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.2.97.ebuild,v 1.4 2004/08/30 12:23:10 dholm Exp $
4
5 inherit eutils debug python
6
7 DESCRIPTION="Hardware Abstraction Layer"
8 HOMEPAGE="http://www.freedesktop.org/Software/hal"
9
10 SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz"
11 LICENSE="GPL-2 | AFL-2.0"
12
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc ~amd64"
15 IUSE=""
16
17 RDEPEND=">=dev-libs/glib-2.2.2
18 >=sys-apps/dbus-0.22-r1
19 dev-libs/expat
20 sys-fs/udev
21 sys-apps/hotplug
22 sys-libs/libcap"
23
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig"
26
27 src_compile() {
28
29 # FIXME : docs
30 econf \
31 --enable-fstab-sync \
32 --enable-hotplug-map \
33 --disable-doxygen-docs \
34 --disable-docbook-docs \
35 --with-pid-file=/var/run/hald/hald.pid \
36 || die
37
38 emake || die
39
40 }
41
42 src_install() {
43
44 make DESTDIR=${D} install || die
45
46 # initscript
47 exeinto /etc/init.d/
48 doexe ${FILESDIR}/hald
49
50 # place our pid file
51 keepdir /var/run/hald
52
53 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
54
55 }
56
57 pkg_preinst() {
58
59 enewgroup haldaemon || die "Problem adding haldaemon group"
60 enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user"
61
62 }
63
64 pkg_postinst() {
65
66 # make sure the permissions on the pid dir are alright & after preinst
67 chown haldaemon:haldaemon /var/run/hald
68
69 ewarn "Enabled in this ebuild by default is the usage of fstab-sync"
70 ewarn "that will create mount rules for non-existing devices in"
71 ewarn "fstab if needed, mount points will be created in /media."
72 ewarn "This functionality alters /etc/fstab runtime on the filesystem"
73 ewarn "and might have unforseen side-effects."
74 echo
75 einfo "The HAL daemon needs to be running for certain applications to"
76 einfo "work. Suggested is to add the init script to your start-up"
77 einfo "scripts, this should be done like this :"
78 einfo "\`rc-update add hald default\`"
79
80 }

  ViewVC Help
Powered by ViewVC 1.1.20