core/eudev/Pkgfile

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-02-15 20:31:28 +01:00
# Description: Userspace device management daemon
2017-09-06 05:39:03 +02:00
# URL: https://wiki.gentoo.org/wiki/Project:Eudev
2014-02-15 20:31:28 +01:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: kmod
name=eudev
2018-10-29 14:25:59 +01:00
version=3.2.7
2016-06-07 10:08:54 +02:00
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
# 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-manpages \
--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
# create binary hwdb
LD_LIBRARY_PATH=$PKG/lib \
$PKG/sbin/udevadm hwdb --update --root=$PKG
2014-02-15 20:31:28 +01:00
# Devices
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
}