CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
util-linux-ng: update to 2.19.1
[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, devel at crux-arm dot nu
5
6 name=udev
7 version=167
8 release=1
9 source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
10 $name-disable_extras.patch start_udev)
11
12 build() {
13 cd udev-$version
14
15 patch -p1 -i $SRC/$name-disable_extras.patch
16
17 autoreconf
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --sbindir=/sbin \
22 --sysconfdir=/etc \
23 --with-rootlibdir=/lib \
24 --libexecdir=/lib/udev \
25 --mandir=/usr/man \
26 --disable-extras \
27 --disable-introspection \
28 --enable-static
29
30 make
31 make install DESTDIR=$PKG
32
33 mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
34 mkdir -p $PKG/lib
35
36 # Populate nodes
37 mknod -m 600 $PKG/lib/udev/devices/console c 5 1
38 mknod -m 600 $PKG/lib/udev/devices/kmsg c 1 11
39 mknod -m 666 $PKG/lib/udev/devices/null c 1 3
40 mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
41
42 # Add CRUX items
43 install -m 0755 $SRC/start_udev $PKG/sbin
44
45 # Keep udevinfo for legacy support
46 mkdir -p $PKG/usr/bin
47 ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
48
49 # Remove junk
50 rm -rf $PKG/usr/share/{gtk-,}doc
51 }