/[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.4 - (hide annotations) (download)
Thu Nov 11 11:59:47 2004 UTC (9 years, 10 months ago) by obz
Branch: MAIN
Changes since 1.3: +2 -2 lines
Keyworded ppc for GNOME 2.8

1 latexer 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 obz 1.4 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.2.98-r1.ebuild,v 1.3 2004/11/08 21:41:39 vapier Exp $
4 latexer 1.1
5     inherit eutils debug python
6    
7     DESCRIPTION="Hardware Abstraction Layer"
8     HOMEPAGE="http://www.freedesktop.org/Software/hal"
9 vapier 1.3 SRC_URI="http://freedesktop.org/~david/dist/${P}.tar.gz"
10 latexer 1.1
11 foser 1.2 LICENSE="|| ( GPL-2 AFL-2.0 )"
12 latexer 1.1 SLOT="0"
13 obz 1.4 KEYWORDS="~amd64 ppc x86"
14 latexer 1.1 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/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