aboutsummaryrefslogtreecommitdiff
path: root/extra/opendoas/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-11-17 10:39:44 +0300
committerCem Keylan <cem@ckyln.com>2020-11-17 10:39:44 +0300
commit637a7ed883026ca75eafac0efb9a9656fcdb2e8b (patch)
treed83254182e6643bfc84c1d07f5c81ed249bcb6e4 /extra/opendoas/build
parent89fcbe6cd7cfd8a255c1b57f4808a5cdf1542e93 (diff)
downloadrepository-637a7ed883026ca75eafac0efb9a9656fcdb2e8b.tar.gz
opendoas: bump to 6.8
Diffstat (limited to 'extra/opendoas/build')
-rwxr-xr-xextra/opendoas/build13
1 files changed, 7 insertions, 6 deletions
diff --git a/extra/opendoas/build b/extra/opendoas/build
index cb2c20fe..25819524 100755
--- a/extra/opendoas/build
+++ b/extra/opendoas/build
@@ -1,15 +1,16 @@
#!/bin/sh -e
-# shellcheck disable=SC2016
-sed '/chown ${BINOWN}:${BINGRP}/d' bsd.prog.mk > _
-cat _ > bsd.prog.mk; rm -f _
-
./configure \
--enable-static \
--with-timestamp \
--without-pam
make
-make DESTDIR="$1" install
-install -Dm640 doas.conf "$1/etc/doas.conf"
+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