diff options
author | seb <seb> | 2002-03-04 12:39:37 +0000 |
---|---|---|
committer | seb <seb> | 2002-03-04 12:39:37 +0000 |
commit | 5b7f919addf99fb6ed1f569ea2baba5b3e02c9ef (patch) | |
tree | 32ee165e4fdc87504eff4198d3b0438fc91e0e56 /pkgtools/pkg_install | |
parent | 36dc80b7a530f9a9cf0c67848e230a3e2ac7e828 (diff) | |
download | pkgsrc-5b7f919addf99fb6ed1f569ea2baba5b3e02c9ef.tar.gz |
Make it compile and install cleanly on Solaris.
Avoid using '..' in LOCALBASE as it might end up in the binaries as part of
TAR_FULLPATHNAME.
Record MANINSTALL setting.
Add a workaround for SHLOCK definition or else LOCALBASE setting breaks it.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index c6b3848f8fd..1400795c5b0 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.45 2001/10/30 14:12:37 agc Exp $ +# $NetBSD: Makefile,v 1.46 2002/03/04 12:39:37 seb Exp $ # Note to package maintainers: # To update the distfile of this pkg, cd to /usr/src/usr.sbin, @@ -23,16 +23,28 @@ NO_MTREE= yes NO_PKG_REGISTER= yes NO_PACKAGE= No package registration is done MANCOMPRESSED_IF_MANZ= yes +BUILD_DEFS+= MANINSTALL .include "../../mk/bsd.prefs.mk" -LOCALBASE= ${PKG_TOOLS_BIN}/.. +.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" +SHLOCK:= ${LOCALBASE}/bin/shlock +.endif + +LOCALBASE:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||} PKG_DBDIR?= /var/db/pkg .if ${OPSYS} == "NetBSD" && !exists(/usr/share/tmac/tmac.andoc) IGNORE+= "You need to have the 'text' set installed to build this package!" .endif +.if ${OPSYS} == "SunOS" +MAKEFLAGS+= NETBSD_COMPATIBLE=YES +MANINSTALL= +MAKE_ENV+= MANINSTALL= MKMAN=no NOMAN=YES +MAKE_ENV+= ZOULARISBASE=${ZOULARISBASE} +.endif + .if ${OPSYS} == "Darwin" MAKE_ENV+= DIGESTDIR=${.CURDIR}/../digest/files CPPFLAGS+= -I${DIGESTDIR} -I${DIGESTDIR} |