summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2001-07-17 10:11:32 +0000
committerabs <abs@pkgsrc.org>2001-07-17 10:11:32 +0000
commit4348e0d6e2eea4cb2449c8dd0e16fcae4a2a19d7 (patch)
treeb487a9a90c5d282c9712c36d22b973b19e43b9e1 /mk/bsd.prefs.mk
parent55d16c3cd30665dbe5f700df453a79ab86e3acfe (diff)
downloadpkgsrc-4348e0d6e2eea4cb2449c8dd0e16fcae4a2a19d7.tar.gz
Switch solaris default LOCALBASE across to /usr/pkg
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 9e5d62b8334..5b14020eee3 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.53 2001/07/10 16:37:13 tron Exp $
+# $NetBSD: bsd.prefs.mk,v 1.54 2001/07/17 10:11:32 abs Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -274,7 +274,19 @@ SERIAL_DEVICES?= /dev/null
.if (${OPSYS} == "NetBSD")
PKG_TOOLS_BIN?= /usr/sbin
.elif (${OPSYS} == "SunOS")
-LOCALBASE?= ${DESTDIR}/usr/local
+# Migration aid for old /usr/local LOCALBASE on Solaris
+.if !defined(LOCALBASE) && exists(${DESTDIR}/usr/local/libexec/cgi-bin) && \
+ !exists(${DESTDIR}/usr/pkg/libexec/cgi-bin)
+.BEGIN:
+ @echo "On Solaris and /usr/local/libexec/cgi-bin found:"
+ @echo "- If you have an existing pkgsrc installation & wish to continue"
+ @echo " using /usr/local, append LOCALBASE=/usr/local to /etc/mk.conf."
+ @echo "- Otherwise set LOCALBASE=/usr/pkg in your environment for the"
+ @echo " first package install.
+ @false
+.endif
+# end of migration aid
+LOCALBASE?= ${DESTDIR}/usr/pkg
.if !defined(ZOULARISBASE)
ZOULARISBASE:= ${LOCALBASE}/bsd
.endif