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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Dec 2 21:45:07 2004 UTC (9 years, 11 months ago) by foser
Branch: MAIN
Changes since 1.1: +2 -2 lines
fix glib dep

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

  ViewVC Help
Powered by ViewVC 1.1.20