blob: 3e47c62c5aafa7e018a3002e53dd661245d919ac (
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
|
# Description: Démon pour la gestion du matériel dans l'espace utilisateur
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:
name=udev
version=150
release=1
_lfs_release=20090925
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
http://www.linuxfromscratch.org/lfs/downloads/development/udev-config-${_lfs_release}.tar.bz2)
build() {
cd udev-$version
install -dv $PKG/lib/{firmware,udev/devices/{pts,shm}}
ln -s /proc/self/fd $PKG/lib/udev/devices/fd
ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin
ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout
ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr
ln -s /proc/kcore $PKG/lib/udev/devices/core
./configure --prefix=/usr \
--sysconfdir=/etc --sbindir=/sbin \
--with-rootlibdir=/lib --libexecdir=/lib/udev \
--docdir=/usr/share/doc/udev-$version \
--disable-extras --disable-introspection
make
make install DESTDIR=$PKG mandir="/usr/share/man"
install -m644 -v rules/packages/64-*.rules \
$PKG/lib/udev/rules.d/
install -m644 -v rules/packages/40-pilot-links.rules \
$PKG/lib/udev/rules.d/
install -m644 -v rules/packages/40-isdn.rules \
$PKG/lib/udev/rules.d/
install -m644 -v rules/gentoo/30-kernel-compat.rules \
$PKG/lib/udev/rules.d/
cd ../udev-config-${_lfs_release}
make DESTDIR=$PKG install
make DESTDIR=$PKG install-doc
}
|