-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheudev.sh
More file actions
executable file
·42 lines (32 loc) · 841 Bytes
/
eudev.sh
File metadata and controls
executable file
·42 lines (32 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# See LICENSE for license details.
#!/bin/bash
set -euo pipefail
unpack_src() {
tar xf eudev-3.2.10.tar.gz && \
cd eudev-3.2.10
return
}
configure() {
./configure --prefix=/usr \
--bindir=/sbin \
--sbindir=/sbin \
--libdir=/usr/lib \
--sysconfdir=/etc \
--libexecdir=/lib \
--with-rootprefix= \
--with-rootlibdir=/lib \
--enable-manpages \
--disable-static
return
}
make_install() {
mkdir -pv $TODD_FAKE_ROOT_DIR/lib/udev/rules.d
mkdir -pv $TODD_FAKE_ROOT_DIR/etc/udev/rules.d
make
make DESTDIR=$TODD_FAKE_ROOT_DIR -j1 install
tar -xvf ../udev-lfs-20171102.tar.xz
make -f udev-lfs-20171102/Makefile.lfs install
$TODD_FAKE_ROOT_DIR/sbin/udevadm hwdb --update
return
}
unpack_src && configure && make_install