summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-09-08 21:36:27 +0100
committerRoy Marples <roy@marples.name>2019-09-08 21:36:27 +0100
commit33100ef750f2b08eda61afb4514785e20a16ff4b (patch)
treea6f02c353217c47b42b2c352ff303b334e5b21a0
parent2097f218ee95759ab199af47f94e74eb5b2970cb (diff)
downloadopenresolv-3.9.2.tar.xz
configure: DragonFly has the same flaw as FreeBSDopenresolv-3.9.2
-rwxr-xr-xconfigure15
1 files changed, 9 insertions, 6 deletions
diff --git a/configure b/configure
index ad707ba..c9422b7 100755
--- a/configure
+++ b/configure
@@ -91,7 +91,15 @@ dragonfly*)
# This means /usr HAS to be mounted not via dhcpcd
: ${LIBEXECDIR:=${PREFIX:-/usr}/libexec/resolvconf}
;;
-freebsd*)
+linux*)
+ # cksum does't support -a and netpgp is rare
+ echo "CKSUM= sha256sum --tag" >>$CONFIG_MK
+ echo "PGP= gpg2" >>$CONFIG_MK
+ ;;
+esac
+
+case "$OS" in
+dragonfly*|freebsd*)
# On FreeBSD, /etc/init.d/foo status returns 0 if foo is not enabled
# regardless of if it's not running.
# So we force onestatus to work around this silly bug.
@@ -99,11 +107,6 @@ freebsd*)
STATUSARG="onestatus"
fi
;;
-linux*)
- # cksum does't support -a and netpgp is rare
- echo "CKSUM= sha256sum --tag" >>$CONFIG_MK
- echo "PGP= gpg2" >>$CONFIG_MK
- ;;
esac