diff options
author | abs <abs> | 2001-07-17 10:11:32 +0000 |
---|---|---|
committer | abs <abs> | 2001-07-17 10:11:32 +0000 |
commit | b9dd429b9bd3133a58156fb9579c20d63a532e2a (patch) | |
tree | b487a9a90c5d282c9712c36d22b973b19e43b9e1 /mk | |
parent | 4867a19539b8264ed493e46015b1d62b1764bddc (diff) | |
download | pkgsrc-b9dd429b9bd3133a58156fb9579c20d63a532e2a.tar.gz |
Switch solaris default LOCALBASE across to /usr/pkg
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.prefs.mk | 16 |
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 |