diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-07-06 16:45:21 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-07-06 16:45:21 +0000 |
commit | 8fab5a14ebf60afbf82a53508e1e489771b589fb (patch) | |
tree | d5b523d536c8f4d38a6232f4d156c420fe62576c /mk | |
parent | 8465c5230fc1e4dc9d8a394289a52b028b71be5b (diff) | |
download | pkgsrc-8fab5a14ebf60afbf82a53508e1e489771b589fb.tar.gz |
Add bin-install package: will install a binary package if available,
else run a "make package".
XXX needs to be extended to also look on some FTP sites.
Diffstat (limited to 'mk')
-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 |