aboutsummaryrefslogtreecommitdiff
path: root/extra/opendoas/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/opendoas/build')
-rwxr-xr-xextra/opendoas/build13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/opendoas/build b/extra/opendoas/build
new file mode 100755
index 00000000..d660c7e3
--- /dev/null
+++ b/extra/opendoas/build
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+# shellcheck disable=SC2016
+sed -i '/chown ${BINOWN}:${BINGRP}/d' bsd.prog.mk
+
+./configure \
+ --enable-static \
+ --without-pam
+
+make
+make DESTDIR="$1" install
+
+install -D doas.conf "$1/etc/doas.conf"