diff options
author | Cem Keylan <cem@ckyln.com> | 2021-02-18 03:20:48 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-02-18 03:20:48 +0300 |
commit | a80f5933ade853dbcef130dadea55319aac0cc8c (patch) | |
tree | a8af8b1b1101084597ffa032b8eb00ee6ee9abd7 /dbus/iwd/build | |
parent | 674bed07898c7d0bd422f1652941cfa98bfa72ca (diff) | |
download | repository-a80f5933ade853dbcef130dadea55319aac0cc8c.tar.gz |
iwd: add new package at 1.11
Diffstat (limited to 'dbus/iwd/build')
-rwxr-xr-x | dbus/iwd/build | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dbus/iwd/build b/dbus/iwd/build new file mode 100755 index 00000000..c82e1860 --- /dev/null +++ b/dbus/iwd/build @@ -0,0 +1,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 |