forked from alnux/repo
29 lines
989 B
Text
Executable file
29 lines
989 B
Text
Executable file
wget https://ftp.osuosl.org/pub/lfs/lfs-packages/8.2/udev-lfs-20171102.tar.bz2 udev.tar.bz2
|
|
tar -xf udev.tar.bz2 udev
|
|
cd udev
|
|
|
|
install -dv $1/lib/{firmware,udev/devices/pts}
|
|
mknod -m0666 $1/lib/udev/devices/null c 1 3
|
|
|
|
BLKID_CFLAGS="-I/usr/include/blkid" \
|
|
BLKID_LIBS="-L/lib -lblkid" \
|
|
KMOD_CFLAGS="-I/usr/include" \
|
|
KMOD_LIBS="-L/lib -lkmod" \
|
|
./configure --prefix=/usr \
|
|
--with-rootprefix='' \
|
|
--bindir=/sbin \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/lib \
|
|
--enable-rule_generator \
|
|
--disable-introspection \
|
|
--disable-keymap \
|
|
--disable-gudev \
|
|
--with-usb-ids-path=no \
|
|
--with-pci-ids-path=no \
|
|
--with-systemdsystemunitdir=no
|
|
make
|
|
make DESTDIR="$1" install
|
|
rm -rfv $1/usr/share/doc/udev
|
|
cd udev-config-20100128
|
|
make DESTDIR="$1" install
|
|
make DESTDIR="$1" install-doc
|