summaryrefslogtreecommitdiffstats
path: root/extra/hal/Pkgfile
blob: 0e9320007855173525586cb595e34ed5e4bd7669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Description: Couche d'abstraction matériel
# URL: http://freedesktop.org/wiki/Software_2fhal
# Maintainer: NuTyX coreteam
# Packager: thierryn1 at hispeed dot ch
# Depends on: dbus-glib, usbutils, pciutils, eject, hal-info, gperf, consolekit, policykit
# Run on: dbus-glib,usbutils,pciutils,eject,hal-info,gperf,consolekit,policykit

name=hal
version=0.5.14
release=2
source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz\
	http://hal.freedesktop.org/releases/hal-info-20091130.tar.gz\
        http://nutyx.meticul.eu/files/patchs/$name/$name-$version-configure-1.patch \
	haldaemon halusers.conf 10-keymap.fdi \
	use_udevadm_not_udevinfo.patch.gz )

build() {
	source /etc/blfs-bootscripts
#	wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
	wget  http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2

	tar xvf $scripts-$scriptsversion.tar.bz2
	cd $name-$version
	patch -Np1 -i ../$name-$version-configure-1.patch
        libtoolize --force
        aclocal
        autoconf
        automake
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--libexecdir=/usr/lib/$name \
		--sysconfdir=/etc --with-udev-prefix=/etc \
		--localstatedir=/var \
		--with-pci-ids=/usr/share/pci.ids.gz \
		--disable-gtk-doc
	make
	make DESTDIR=$PKG install

        mkdir -p $PKG/etc/hal/fdi/policy
        mkdir -p $PKG/etc/dbus-1/system.d
        install -m755 ../halusers.conf $PKG/etc/dbus-1/system.d/halusers.conf
        install -m755 ../10-keymap.fdi $PKG/etc/hal/fdi/policy/
	cd ../$scripts-$scriptsversion
        make DESTDIR=$PKG install-haldaemon
        install -m755 ../haldaemon $PKG/etc/rc.d/init.d/
	rm -rf $PKG/usr/share/gtk-doc
	ln -sv /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi \
	$PKG/etc/hal/fdi/policy/
}