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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 8 13:18:18 2005 UTC (9 years, 3 months ago) by foser
Branch: MAIN
new release, mark 0.4.2 x86

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.4.2-r1.ebuild,v 1.1 2004/12/22 17:51:30 foser Exp $
4
5 inherit eutils 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="~x86 ~amd64 ~ia64 ~ppc ~ppc64"
14 IUSE="debug pcmcia doc"
15
16 RDEPEND=">=dev-libs/glib-2.4
17 >=sys-apps/dbus-0.22-r1
18 dev-libs/expat
19 sys-fs/udev
20 sys-apps/hotplug
21 sys-libs/libcap
22 dev-libs/popt
23 >=sys-apps/util-linux-2.12i
24 sys-kernel/linux26-headers"
25
26 DEPEND="${RDEPEND}
27 dev-util/pkgconfig
28 >=dev-util/intltool-0.29
29 doc? ( app-doc/doxygen )"
30
31 # dep on a specific util-linux version for
32 # managed mount patches #70873
33
34 src_unpack() {
35
36 unpack ${A}
37
38 cd ${S}
39 # remove pamconsole option
40 epatch ${FILESDIR}/${PN}-0.4.1-old_storage_policy.patch
41 # support IDE zip drives as floppy
42 epatch ${FILESDIR}/${P}-check_ide_floppy_for_zip_fdi.patch
43
44 }
45
46 src_compile() {
47
48 # FIXME : docs
49 econf \
50 `use_enable debug verbose-mode` \
51 `use_enable pcmcia pcmcia-support` \
52 --enable-fstab-sync \
53 --enable-hotplug-map \
54 --disable-docbook-docs \
55 `use_enable doc doxygen-docs` \
56 --with-pid-file=/var/run/hald/hald.pid \
57 || die
58
59 emake || die
60
61 }
62
63 src_install() {
64
65 make DESTDIR=${D} install || die
66
67 # We install this in a seperate package to avoid gnome-python dep
68 rm ${D}/usr/bin/hal-device-manager
69
70 # initscript
71 exeinto /etc/init.d/
72 doexe ${FILESDIR}/hald
73
74 # place our pid file
75 keepdir /var/run/hald
76
77 dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
78
79 }
80
81 pkg_preinst() {
82
83 enewgroup haldaemon || die "Problem adding haldaemon group"
84 enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user"
85
86 }
87
88 pkg_postinst() {
89
90 # make sure the permissions on the pid dir are alright & after preinst
91 chown haldaemon:haldaemon /var/run/hald
92
93 ewarn "Enabled in this ebuild by default is the usage of fstab-sync"
94 ewarn "that will create mount rules for non-existing devices in"
95 ewarn "fstab if needed, mount points will be created in /media."
96 ewarn "This functionality alters /etc/fstab runtime on the filesystem"
97 ewarn "and should be considered a security risk."
98 echo
99 einfo "The HAL daemon needs to be running for certain applications to"
100 einfo "work. Suggested is to add the init script to your start-up"
101 einfo "scripts, this should be done like this :"
102 einfo "\`rc-update add hald default\`"
103
104 }

  ViewVC Help
Powered by ViewVC 1.1.20