2014-02-15 20:31:28 +01:00
|
|
|
# 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
|
|
|
|
# Depends on: kmod
|
|
|
|
|
|
|
|
name=eudev
|
2015-10-14 11:53:36 +02:00
|
|
|
version=3.1.5
|
|
|
|
release=1
|
2014-02-15 20:31:28 +01:00
|
|
|
source=(http://dev.gentoo.org/~blueness/$name/$name-$version.tar.gz
|
2015-06-22 13:57:04 +02:00
|
|
|
81-crux.rules start_udev)
|
2014-02-15 20:31:28 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2015-04-04 12:41:14 +02:00
|
|
|
|
|
|
|
# needed for static linking, e.g. dmsetup.static
|
2014-02-15 20:31:28 +01:00
|
|
|
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
|
2014-08-26 07:32:53 +02:00
|
|
|
|
2014-02-15 20:31:28 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sbindir=/sbin --bindir=/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-rootprefix= \
|
|
|
|
--with-rootlibdir=/lib \
|
|
|
|
--libexecdir=/lib \
|
|
|
|
--disable-introspection \
|
|
|
|
--disable-gudev \
|
2014-08-26 07:48:05 +02:00
|
|
|
--disable-manpages \
|
2015-04-04 12:41:14 +02:00
|
|
|
--enable-split-usr
|
2014-02-15 20:31:28 +01:00
|
|
|
|
2014-03-24 19:50:26 +01:00
|
|
|
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
2014-02-15 20:31:28 +01:00
|
|
|
make install DESTDIR=$PKG
|
2014-08-26 07:32:53 +02:00
|
|
|
make -C man install DESTDIR=$PKG
|
|
|
|
|
2014-03-01 17:54:17 +01:00
|
|
|
# create binary hwdb
|
|
|
|
LD_LIBRARY_PATH=$PKG/lib \
|
|
|
|
$PKG/sbin/udevadm hwdb --update --root=$PKG
|
2014-02-15 20:31:28 +01:00
|
|
|
|
|
|
|
# Devices
|
2015-07-26 18:48:17 +02:00
|
|
|
install -d $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
|
|
|
install -d $PKG/{lib,sbin,run}
|
2014-02-15 20:31:28 +01:00
|
|
|
|
|
|
|
# Add CRUX items
|
|
|
|
install -m 0755 $SRC/start_udev $PKG/sbin
|
|
|
|
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
|
|
|
|
}
|