44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Description: Userspace device management daemon
|
|
# URL: https://github.com/eudev-project/eudev
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: kmod
|
|
|
|
name=eudev
|
|
version=3.2.12
|
|
release=1
|
|
source=(https://github.com/eudev-project/eudev/releases/download/v$version/$name-$version.tar.gz
|
|
81-crux.rules start_udev)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# needed for static linking, e.g. dmsetup.static
|
|
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
|
|
|
|
./configure --prefix=/usr \
|
|
--sbindir=/sbin --bindir=/sbin \
|
|
--sysconfdir=/etc \
|
|
--with-rootprefix= \
|
|
--with-rootlibdir=/lib \
|
|
--libexecdir=/lib \
|
|
--disable-introspection \
|
|
--disable-manpages \
|
|
--enable-split-usr
|
|
|
|
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
|
make install DESTDIR=$PKG
|
|
make -C man install DESTDIR=$PKG
|
|
|
|
# create binary hwdb
|
|
LD_LIBRARY_PATH=$PKG/lib \
|
|
$PKG/sbin/udevadm hwdb --update --root=$PKG
|
|
|
|
# Devices
|
|
install -d $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
|
install -d $PKG/{lib,sbin,run}
|
|
|
|
# Add CRUX items
|
|
install -m 0755 $SRC/start_udev $PKG/sbin
|
|
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
|
|
}
|