summaryrefslogtreecommitdiff
path: root/mk/install/bin-install.mk
AgeCommit message (Collapse)AuthorFilesLines
2008-02-20Add colon in comment to aid "make help" in finding helpwiz1-2/+2
for the bin-install target.
2008-02-19Eliminated some code duplication, provided a default definition forrillig1-7/+19
PKGNAME_REQD and documented it a little bit.
2007-11-03Moved common commands into a variable. This saves 15 lines.rillig1-24/+10
2007-09-21BINPKG_SITES may be empty, and most shells don't like syntacticallyrillig1-3/+5
empty for loops.
2007-09-19Renamed pkgpath to pkg_path, since there exists a completely independentrillig1-9/+9
variable PKGPATH. I hope this will avoid some confusion.
2007-09-19When using bin-install, the version of the installed package was checkedrillig1-6/+9
twice: First against the required package pattern (PKGNAME_REQD), and then against the current version (PKGNAME). When only a binary package for an old (but sufficient) version of a package was available, that version had been installed and the current version been built afterwards, which was unnecessary. This problem was mentioned in PR 36146, and is hereby fixed. By the way, the code was really ugly: The messages that had been printed didn't reflect what the code was actually doing. This is fixed, too.
2007-08-23pkg_add can figure out the suffix itself, thanks.joerg1-2/+2
2007-08-20Add cross-compiling support for bin-install and deinstall targets.joerg1-1/+26
2007-08-02Add core of the infrastructure support for cross-compilation.joerg1-1/+5
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of the target filesystem - derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR - buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR - compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf) - PKG_DBDIR is prefixed with _CROSS_DESTDIR - package-install and bin-install are not called with su - install and strip are redirected to the tool version - links for the target specific ar, as, ld, nm, objdump, ranlib and strip are added - compiler wrapper detect if linking is requested or not - special command sinks for CPP and CC/CXX add the cross-compile magic: - modify include dirs to get the target /usr/include - modify linker dirs and runpath to use target /usr/lib at link time, but keep correct rpath entries Supported-by: Google SoC 2007 Basic tests by he@ on Sparc. Review from jlam@.
2007-03-09Fixed pkglint warnings.rillig1-4/+6
2007-03-09Replaced PKG_SILENT/PKG_DEBUG with RUN.rillig1-6/+3
2006-11-21Only set BINPKG_SITES to ftp.netbsd.org, if the OS is actually NetBSD.joerg1-1/+5
2006-11-03Add package-install. For non-DESTDIR builds, package and package-installjoerg1-2/+2
are identical. For DESTDIR builds, the package is not installed to PREFIX as part of the build, so package-install does exactly that after package is done. Change bin-install to call package-install.
2006-10-03Rewrote the bin-install target so that it doesn't lock LOCALBASErillig1-20/+31
recursively. This bug was reported by Hans Rosenfeld in http://mail-index.netbsd.org/tech-pkg/2006/10/03/0002.html As a side effect, when bin-install fails to install a binary package, the package is still built from source, but not as a privileged user.
2006-08-09Drop .ORDER declarations since pkgsrc doesn't support "make -j ...".jlam1-2/+1
2006-08-04Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.rillig1-3/+3
Added two targets acquire-localbase-lock and release-localbase-lock, which mark the complete LOCALBASE directory as locked, so that multiple packages cannot run the install, deinstall or bin-install targets at the same time. The install target aquires locks in both WRKSRC and LOCALBASE, the other two targets only need the LOCALBASE lock, since they may be run without WRKSRC being present on the system. locking.mk must be included before tools.mk and the PKG_FAIL_REASON check.
2006-08-04Rewrote the header comment so that "bin-install" can be found by "bmakerillig1-4/+6
help".
2006-08-04Moved the bin-install target from bsd.pkg.mk to install/bin-install.mk.rillig1-0/+64
Added documentation. Added locking around the real installation.