configure: DragonFly has the same flaw as FreeBSD openresolv-3.9.2
authorRoy Marples <roy@marples.name>
Sun, 8 Sep 2019 20:36:27 +0000 (21:36 +0100)
committerRoy Marples <roy@marples.name>
Sun, 8 Sep 2019 20:36:27 +0000 (21:36 +0100)
configure

index ad707ba45b92d09bf4a9f3cfabe88cdfa04dbaed..c9422b74b69cb2356c40e9aa4eadc38284f504c5 100755 (executable)
--- 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