/[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.7 - (show annotations) (download)
Fri May 27 21:51:21 2005 UTC (9 years, 7 months ago) by foser
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
new release, mark 0.4.7-r2 x86 & cleanup
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.6 2005/01/12 14:22:15 johnm Exp $
4
5 inherit eutils debug python
6
7 DESCRIPTION="Hardware Abstraction Layer"
8 HOMEPAGE="http://www.freedesktop.org/Software/hal"
9 SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz"
10
11 LICENSE="|| ( GPL-2 AFL-2.0 )"
12 SLOT="0"
13 KEYWORDS="~amd64 ppc x86"
14 IUSE=""
15
16 RDEPEND=">=dev-libs/glib-2.2.2
17 >=sys-apps/dbus-0.22-r1
18 dev-libs/expat
19 sys-fs/udev
20 sys-apps/hotplug
21 sys-libs/libcap
22 || ( >=sys-kernel/linux-headers-2.6 sys-kernel/linux26-headers )"
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 # We install this in a seperate package to avoid gnome-python dep
47 rm ${D}/usr/bin/hal-device-manager
48
49 # initscript
50 exeinto /etc/init.d/
51 doexe ${FILESDIR}/hald
52
53 # place our pid file
54 keepdir /var/run/hald
55
56 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
57
58 }
59
60 pkg_preinst() {
61
62 enewgroup haldaemon || die "Problem adding haldaemon group"
63 enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user"
64
65 }
66
67 pkg_postinst() {
68
69 # make sure the permissions on the pid dir are alright & after preinst
70 chown haldaemon:haldaemon /var/run/hald
71
72 ewarn "Enabled in this ebuild by default is the usage of fstab-sync"
73 ewarn "that will create mount rules for non-existing devices in"
74 ewarn "fstab if needed, mount points will be created in /media."
75 ewarn "This functionality alters /etc/fstab runtime on the filesystem"
76 ewarn "and might have unforseen side-effects."
77 echo
78 einfo "The HAL daemon needs to be running for certain applications to"
79 einfo "work. Suggested is to add the init script to your start-up"
80 einfo "scripts, this should be done like this :"
81 einfo "\`rc-update add hald default\`"
82
83 }

  ViewVC Help
Powered by ViewVC 1.1.20