CRUX-ARM : Home

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