blob: 6ae0cc0b72808bea4aca9d7a0b5eb645906304cb (
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
|
# Description: Userspace device management daemon
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=udev
version=164
release=2
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
start_udev)
build() {
cd udev-$version
./configure --prefix=/usr \
--exec-prefix= \
--sysconfdir=/etc \
--libdir=/usr/lib \
--libexecdir=/lib/udev \
--mandir=/usr/man \
--disable-extras \
--disable-introspection
make
make install DESTDIR=$PKG pkgconfigdir=/usr/lib/pkgconfig
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
mkdir -p $PKG/lib
# Fix location of libaries
mv $PKG/usr/lib/libudev.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libudev.so) $PKG/usr/lib/libudev.so
# Populate nodes
mknod -m 600 $PKG/lib/udev/devices/console c 5 1
mknod -m 600 $PKG/lib/udev/devices/kmsg c 1 11
mknod -m 666 $PKG/lib/udev/devices/null c 1 3
mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
# Add CRUX items
install -m 0755 $SRC/start_udev $PKG/sbin
# Keep udevinfo for legacy support
mkdir -p $PKG/usr/bin
ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
# Remove junk
rm -rf $PKG/usr/share/{gtk-,}doc
}
|