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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Nov 8 21:41:39 2004 UTC (9 years, 8 months ago) by vapier
Branch: MAIN
Changes since 1.2: +3 -4 lines
ia64 KEYWORDS

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.4.1.ebuild,v 1.2 2004/11/08 19:41:45 corsair 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 ~ia64 ~ppc ~ppc64 ~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/linux26-headers"
23
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig"
26
27 src_unpack() {
28
29 unpack ${A}
30
31 cd ${S}
32 # remove RH only stuff
33 epatch ${FILESDIR}/${PN}-0.4.0-old_storage_policy.patch
34 # fix floppy drives be shown
35 epatch ${FILESDIR}/${PN}-0.4.0-allow-floppy-drives.patch
36 # smallish device manaager fix
37 cd ${S}/tools/device-manager
38 epatch ${FILESDIR}/${P}-dm_devices_tab.patch
39
40 }
41
42 src_compile() {
43
44 # FIXME : docs
45 econf \
46 --enable-fstab-sync \
47 --enable-hotplug-map \
48 --disable-doxygen-docs \
49 --disable-docbook-docs \
50 --with-pid-file=/var/run/hald/hald.pid \
51 || die
52
53 emake || die
54
55 }
56
57 src_install() {
58
59 make DESTDIR=${D} install || die
60
61 # We install this in a seperate package to avoid gnome-python dep
62 rm ${D}/usr/bin/hal-device-manager
63
64 # initscript
65 exeinto /etc/init.d/
66 doexe ${FILESDIR}/hald
67
68 # place our pid file
69 keepdir /var/run/hald
70
71 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
72
73 }
74
75 pkg_preinst() {
76
77 enewgroup haldaemon || die "Problem adding haldaemon group"
78 enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user"
79
80 }
81
82 pkg_postinst() {
83
84 # make sure the permissions on the pid dir are alright & after preinst
85 chown haldaemon:haldaemon /var/run/hald
86
87 ewarn "Enabled in this ebuild by default is the usage of fstab-sync"
88 ewarn "that will create mount rules for non-existing devices in"
89 ewarn "fstab if needed, mount points will be created in /media."
90 ewarn "This functionality alters /etc/fstab runtime on the filesystem"
91 ewarn "and might have unforseen side-effects."
92 echo
93 einfo "The HAL daemon needs to be running for certain applications to"
94 einfo "work. Suggested is to add the init script to your start-up"
95 einfo "scripts, this should be done like this :"
96 einfo "\`rc-update add hald default\`"
97
98 }

  ViewVC Help
Powered by ViewVC 1.1.20