ff054c6aa3
Also moved the libudev.so symlink to /usr/lib.
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
# 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=146
|
|
release=1
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
|
|
http://crux.nu/files/distfiles/udev-config-20090523.tar.bz2 \
|
|
start_udev)
|
|
|
|
build() {
|
|
cd udev-$version
|
|
|
|
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc \
|
|
--libexecdir=/lib/udev --mandir=/usr/man \
|
|
--disable-extras
|
|
|
|
make
|
|
make install DESTDIR=$PKG
|
|
|
|
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
|
mkdir -p $PKG/usr/lib
|
|
|
|
# Fix location of devel lib
|
|
rm $PKG/lib/libudev.so
|
|
ln -sf ../../lib/libudev.so.0.5.0 $PKG/usr/lib/libudev.so
|
|
|
|
# Populate nodes
|
|
mknod -m 600 $PKG/lib/udev/devices/console c 5 1
|
|
mknod -m 666 $PKG/lib/udev/devices/null c 1 3
|
|
mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
|
|
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
|
|
|
|
# Add CRUX items + LFS rules
|
|
install -m 0755 $SRC/start_udev $PKG/sbin
|
|
|
|
pushd $SRC/udev-config-20090523
|
|
make DESTDIR=$PKG RULES_DIR=/lib/udev/rules.d install
|
|
popd
|
|
|
|
# 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
|
|
rm $PKG/lib/libudev.la
|
|
}
|