2014-02-15 20:31:28 +01:00
|
|
|
# Description: Userspace device management daemon
|
2021-11-07 13:44:01 +01:00
|
|
|
# URL: https://github.com/eudev-project/eudev
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: kmod
|
2014-02-15 20:31:28 +01:00
|
|
|
|
|
|
|
name=eudev
|
2023-05-16 19:35:54 +02:00
|
|
|
version=3.2.12
|
2019-10-31 13:22:20 +01:00
|
|
|
release=1
|
2021-12-15 16:22:02 +01:00
|
|
|
source=(https://github.com/eudev-project/eudev/releases/download/v$version/$name-$version.tar.gz
|
2021-11-07 13:44:01 +01:00
|
|
|
81-crux.rules start_udev)
|
2014-02-15 20:31:28 +01:00
|
|
|
|
|
|
|
build() {
|
2021-11-07 13:44:01 +01:00
|
|
|
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
|
2014-02-15 20:31:28 +01:00
|
|
|
}
|