/[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.1 - (hide annotations) (download)
Tue Nov 2 22:57:49 2004 UTC (9 years, 10 months ago) by foser
Branch: MAIN
new release

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

  ViewVC Help
Powered by ViewVC 1.1.20