CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
udev: fixed libudev.so symlink
[crossrootfs.git] / udev / Pkgfile
1 # Description: Userspace device management daemon
2 # URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX ARM System Team, crux-arm at mikeux dot dyndns dot org
5 # Depends on:
6
7 name=udev
8 version=149
9 release=2
10 source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
11 http://crux.nu/files/distfiles/udev-config-20090523.tar.bz2 \
12 start_udev)
13
14 build() {
15 cd udev-$version
16
17 ./configure --build=$CHOST \
18 --host=$CTARGET \
19 --prefix=/usr \
20 --exec-prefix= \
21 --sysconfdir=/etc \
22 --libexecdir=/lib/udev \
23 --mandir=/usr/man \
24 --disable-extras \
25 --disable-introspection
26
27 make
28 make install DESTDIR=$PKG \
29 pkgconfigdir=/usr/lib/pkgconfig
30
31 mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
32 mkdir -p $PKG/usr/lib
33
34 # Fix location of devel lib
35 rm $PKG/lib/libudev.so
36 ln -sf ../../lib/libudev.so.0.5.1 $PKG/usr/lib/libudev.so
37
38 # Populate nodes
39 mknod -m 600 $PKG/lib/udev/devices/console c 5 1
40 mknod -m 666 $PKG/lib/udev/devices/null c 1 3
41 mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
42 ln -s /proc/self/fd $PKG/lib/udev/devices/fd
43 ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin
44 ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout
45 ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr
46 ln -s /proc/kcore $PKG/lib/udev/devices/core
47
48 # Add CRUX items + LFS rules
49 install -m 0755 $SRC/start_udev $PKG/sbin
50
51 pushd $SRC/udev-config-20090523
52 make DESTDIR=$PKG RULES_DIR=/lib/udev/rules.d install
53 popd
54
55 # Keep udevinfo for legacy support
56 mkdir -p $PKG/usr/bin
57 ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
58
59 # Remove junk
60 rm -rf $PKG/usr/share/{gtk-,}doc
61 rm $PKG/lib/libudev.la
62 }
63 # Fix location of devel lib
64 rm $PKG/lib/libudev.so
65 ln -sf ../../lib/libudev.so.0.5.1 $PKG/usr/lib/libudev.so