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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Wed Jan 12 14:22:15 2005 UTC (9 years, 9 months ago) by johnm
Branch: MAIN
Changes since 1.3: +2 -2 lines
depend on linux-sources eh? oops, changed to linux-headers

1 foser 1.2 # Copyright 1999-2005 Gentoo Foundation
2 foser 1.1 # Distributed under the terms of the GNU General Public License v2
3 johnm 1.4 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.4.2-r1.ebuild,v 1.3 2005/01/11 23:58:03 johnm Exp $
4 foser 1.1
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/${P}.tar.gz"
10    
11     LICENSE="|| ( GPL-2 AFL-2.0 )"
12     SLOT="0"
13 foser 1.2 KEYWORDS="x86 ~amd64 ~ia64 ~ppc ~ppc64"
14 foser 1.1 IUSE="debug pcmcia"
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     >=sys-apps/util-linux-2.12i
23 johnm 1.4 || ( >=sys-kernel/linux-headers-2.6 sys-kernel/linux26-headers )"
24 foser 1.1
25     DEPEND="${RDEPEND}
26     dev-util/pkgconfig
27     >=dev-util/intltool-0.29"
28    
29     # dep on a specific util-linux version for
30     # managed mount patches #70873
31    
32     src_unpack() {
33    
34     unpack ${A}
35    
36     cd ${S}
37     # remove pamconsole option
38     epatch ${FILESDIR}/${PN}-0.4.1-old_storage_policy.patch
39     # fix floppy drives be shown
40     epatch ${FILESDIR}/${PN}-0.4.0-allow-floppy-drives.patch
41     # fix for some odd cdromdrives giving misinformation
42     epatch ${FILESDIR}/${P}-cdrom_media_check.patch
43     # fix possible fstab sync crash
44     epatch ${FILESDIR}/${P}-fstab_sync_crash.patch
45    
46     }
47    
48     src_compile() {
49    
50     # FIXME : docs
51     econf \
52     `use_enable debug verbose-mode` \
53     `use_enable pcmcia pcmcia-support` \
54     --enable-fstab-sync \
55     --enable-hotplug-map \
56     --disable-doxygen-docs \
57     --disable-docbook-docs \
58     --with-pid-file=/var/run/hald/hald.pid \
59     || die
60    
61     emake || die
62    
63     }
64    
65     src_install() {
66    
67     make DESTDIR=${D} install || die
68    
69     # We install this in a seperate package to avoid gnome-python dep
70     rm ${D}/usr/bin/hal-device-manager
71    
72     # initscript
73     exeinto /etc/init.d/
74     doexe ${FILESDIR}/hald
75    
76     # place our pid file
77     keepdir /var/run/hald
78    
79     dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
80    
81     }
82    
83     pkg_preinst() {
84    
85     enewgroup haldaemon || die "Problem adding haldaemon group"
86     enewuser haldaemon -1 /bin/false /dev/null haldaemon || die "Problem adding haldaemon user"
87    
88     }
89    
90     pkg_postinst() {
91    
92     # make sure the permissions on the pid dir are alright & after preinst
93     chown haldaemon:haldaemon /var/run/hald
94    
95     ewarn "Enabled in this ebuild by default is the usage of fstab-sync"
96     ewarn "that will create mount rules for non-existing devices in"
97     ewarn "fstab if needed, mount points will be created in /media."
98     ewarn "This functionality alters /etc/fstab runtime on the filesystem"
99     ewarn "and should be considered a security risk."
100     echo
101     einfo "The HAL daemon needs to be running for certain applications to"
102     einfo "work. Suggested is to add the init script to your start-up"
103     einfo "scripts, this should be done like this :"
104     einfo "\`rc-update add hald default\`"
105    
106     }

  ViewVC Help
Powered by ViewVC 1.1.20