diff options
-rw-r--r-- | mk/bsd.pkg.mk | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 26d2e4b1c21..83f87ab474e 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.498 2000/07/06 15:37:49 hubertf Exp $ \ +# $NetBSD: bsd.pkg.mk,v 1.499 2000/07/06 16:45:21 hubertf Exp $ \ # # This file is in the public domain. # @@ -2289,6 +2289,21 @@ checksum: fetch fi .endif + +# Install binary pkg, without strict uptodate-check first +# (XXX should be able to snarf via FTP. Later...) +bin-install: + @if [ -f ${PKGFILE} ] ; then \ + ${ECHO_MSG} "Installing from binary pkg ${PKGFILE}" ; \ + ${PKG_ADD} ${PKGFILE} ; \ + else \ + ${SHCOMMENT} Cycle through some FTP server here ;\ + ${ECHO_MSG} "Installing from source" ; \ + ${MAKE} ${MAKEFLAGS} package && \ + ${MAKE} ${MAKEFLAGS} clean ; \ + fi + + ################################################################ # The special package-building targets # You probably won't need to touch these |