blob: b069be5942eb430f58985e5e9cd85370c8888a2f (
plain)
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
|
#!/bin/sh -e
for patch in *.patch; do
patch -p1 < "$patch"
done
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/bin \
--localstatedir=/var \
--disable-systemd-service \
--enable-pie \
--enable-dbus-policy \
--enable-wired \
PKG_CONFIG="pkgconf --static"
# Don't use systemd as the default name resolver.
sed -i 's|method_name = "systemd"|method_name = "resolvconf"|' src/resolve.c
# Update the manual page to reflect upon the change.
sed -i '/If not specified/s/systemd/resolvconf/' src/iwd.config.5
make LDFLAGS=-all-static
make DESTDIR="$1" install
for sv in iwd ead; do
install -Dm755 "$sv.run" "$1/etc/sysmgr/$sv"
done
|