aboutsummaryrefslogtreecommitdiff
path: root/core/eudev/build
blob: 68a37e7b06a7130e1d6e7b62746a176d3c085292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

kinstall() {
    mkdir -p "${2%/*}"; cp "$3" "$2"
    chmod "$1" "$2"
}

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --sysconfdir=/etc \
    --enable-hwdb \
    --disable-introspection

make
make DESTDIR="$1" install

# Install runit service.
kinstall 755 "$1/etc/sv/udevd/run" udevd.run
ln -s /run/runit/supervise.udevd "$1/etc/sv/udevd/supervise"

# Install sysmgr service.
kinstall 755 "$1/etc/sysmgr/udevd" udevd.run