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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Oct 28 22:22:37 2004 UTC (9 years, 9 months ago) by foser
Branch: MAIN
Changes since 1.1: +3 -3 lines
new 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.98-r1.ebuild,v 1.1 2004/10/02 15:49:13 latexer 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 sys-kernel/linux26-headers"
24
25 DEPEND="${RDEPEND}
26 dev-util/pkgconfig"
27
28 src_compile() {
29
30 # FIXME : docs
31 econf \
32 --enable-fstab-sync \
33 --enable-hotplug-map \
34 --disable-doxygen-docs \
35 --disable-docbook-docs \
36 --with-pid-file=/var/run/hald/hald.pid \
37 || die
38
39 emake || die
40
41 }
42
43 src_install() {
44
45 make DESTDIR=${D} install || die
46
47 # We install this in a seperate package to avoid gnome-python dep
48 rm ${D}/usr/bin/hal-device-manager
49
50 # initscript
51 exeinto /etc/init.d/
52 doexe ${FILESDIR}/hald
53
54 # place our pid file
55 keepdir /var/run/hald
56
57 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
58
59 }
60
61 pkg_preinst() {
62
63 enewgroup haldaemon || die "Problem adding haldaemon group"
64 enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user"
65
66 }
67
68 pkg_postinst() {
69
70 # make sure the permissions on the pid dir are alright & after preinst
71 chown haldaemon:haldaemon /var/run/hald
72
73 ewarn "Enabled in this ebuild by default is the usage of fstab-sync"
74 ewarn "that will create mount rules for non-existing devices in"
75 ewarn "fstab if needed, mount points will be created in /media."
76 ewarn "This functionality alters /etc/fstab runtime on the filesystem"
77 ewarn "and might have unforseen side-effects."
78 echo
79 einfo "The HAL daemon needs to be running for certain applications to"
80 einfo "work. Suggested is to add the init script to your start-up"
81 einfo "scripts, this should be done like this :"
82 einfo "\`rc-update add hald default\`"
83
84 }

  ViewVC Help
Powered by ViewVC 1.1.20