core/udev/Pkgfile
Michal Soltys 112bff655d udev additions/tidying
Don't override exec_prefix= and use --with-rootlibdir to copy
runtime libs to /lib while keeping most of the stuff in /usr.
With this change, we don't have to override pkgconfig, or manually
setup .so symlink. It's also friendlier towards builds with
enable-extras (which would require more additional fixes).

Enable build of static library, which will enable us to add explicit
udev support to static builds of dm/lvm.

Adjust start_udev:

- remount /dev if it's already mounted (due to initramfs or
  CONFIG_DEVTMPFS_MOUNT), which allows us to set mount options
- add inodes limit safeguard
- verify udevd is not running before starting it
- remove 'settle' between subsystems/devices

Signed-off-by: Michal Soltys <soltys@ziu.info>
2011-02-27 14:38:22 +01:00

46 lines
1.2 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=166
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 \
--sbindir=/sbin \
--sysconfdir=/etc \
--with-rootlibdir=/lib \
--libexecdir=/lib/udev \
--mandir=/usr/man \
--disable-extras \
--disable-introspection \
--enable-static
make
make install DESTDIR=$PKG
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
mkdir -p $PKG/lib
# 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
}