summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-06-14 09:08:31 +0000
committernia <nia@pkgsrc.org>2022-06-14 09:08:31 +0000
commit5a9be4681fd4d74d1a4271c9f51753ff339b0b2f (patch)
tree40ade6debffb868f1f3d133029b66bd2db4297c2 /bootstrap/bootstrap
parent05704ba24cadb6f90c3cf138ae52f2d5c95c793c (diff)
downloadpkgsrc-5a9be4681fd4d74d1a4271c9f51753ff339b0b2f.tar.gz
bootstrap: Default to PREFER_PKGSRC=yes on OpenBSD
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 6c0a75aa9ba..dbc1690bdb9 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.310 2022/04/06 13:06:09 schmonz Exp $
+# $NetBSD: bootstrap,v 1.311 2022/06/14 09:08:31 nia Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -1132,6 +1132,11 @@ echo "PKGMANDIR= $pkgmandir" >> ${TARGET_MKCONF}
echo "" >> ${TARGET_MKCONF}
case $opsys in
+OpenBSD)
+ if [ -z "$prefer_pkgsrc" ] && [ "$prefer_native" != "yes" ]; then
+ prefer_pkgsrc="yes"
+ fi
+ ;;
Linux)
# Default to PREFER_PKGSRC=yes unless user specifies --prefer-native=yes
# Linux systems likely have software from other packages managers