aboutsummaryrefslogtreecommitdiff
path: root/extra/opendoas/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/opendoas/build')
-rwxr-xr-xextra/opendoas/build11
1 files changed, 5 insertions, 6 deletions
diff --git a/extra/opendoas/build b/extra/opendoas/build
index 25819524..31d85d1c 100755
--- a/extra/opendoas/build
+++ b/extra/opendoas/build
@@ -1,16 +1,15 @@
#!/bin/sh -e
./configure \
+ --prefix=/usr \
--enable-static \
--with-timestamp \
--without-pam
+# Do not change ownership as the package manager handles this.
+sed -i /chown/d GNUmakefile
+
make
+make DESTDIR="$1" install
-install -Dm4755 doas "$1/usr/bin/doas"
install -Dm640 doas.conf "$1/etc/doas.conf"
-
-# Install manual pages.
-for man in doas.1 doas.conf.5; do
- install -Dm644 "$man" "$1/usr/share/man/man${man##*.}/$man"
-done