summaryrefslogtreecommitdiff
path: root/mk/install
AgeCommit message (Collapse)AuthorFilesLines
2010-04-18syncing BINPKG_SITES with reality.sbd1-2/+2
Originally suggested by hubertf@
2010-02-25Rename internal package-clean target to package-eat-cookie.joerg1-2/+2
2010-02-24Rename the install phase to stage-install. Introduce a new installjoerg2-16/+32
target that defaults to either stage-install or package-install, depending on whether DESTDIR support is active and supported by the package or not.
2009-10-06Use the correct variable names.joerg1-4/+4
2009-09-20Fix syntax. Mea culprajoerg1-2/+2
2009-09-18Deal with strip idiosyncracies:joerg1-2/+10
- sometimes creates the temporary file, but fails - sometimes it is successful, but still keeps the temporary file - sometimes it crashes when called with more than one argument Bite the bullet and call it individually with explicit output file and clean up after it.
2009-09-02Use filtered plist for install-strip-debug and install-man-handling,joerg1-4/+3
simplifying the latter.
2009-09-02Add STRIP_DEBUG option, which removes debug information from all files,joerg2-2/+25
leaving basic symbol tables intact. Document that INSTALL_UNSTRIPPED doesn't work for all packages.
2009-06-17Make sure that _UPDATE_RUNNING=YES is passed down to su-deinstall forjoerg1-2/+2
PKG_PRESERVE packages (e.g. pkg_install). Otherwise an old version of pkg_install is not removed from pkgdb.
2009-06-09Add support for using USE_DESTDIR=yes and replace together.joerg1-2/+13
Based on the patch send to tech-pkg in 2008, but less intrusive.
2008-11-18Documented INSTALL_UNSTRIPPED.rillig1-1/+10
2008-06-11Honor PKGLOCALEDIR for AUTO_MKDIRS.obache1-1/+2
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.
2008-01-04Made the .include directives simpler, since the directory of therillig1-2/+2
including file is always the first in the search path.
2007-12-10Added compatibility code for INSTALLATION_DIRS_FROM_PLIST. I hadrillig1-1/+2
intended that all the time, but didn't test enough. :( Thanks to wiz for catching this one.
2007-12-07Added AUTO_MKDIRS as an alias for INSTALLATION_DIRS_FROM_PLIST. Therillig1-1/+3
variable is much more comfortable than specifying all the directories in INSTALLATION_DIRS that using such a long name for it feels like a punishment. It also doesn't look nice in the package Makefiles, for example: old: INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 new: AUTO_MKDIRS= yes The variable INSTALLATION_DIRS_FROM_PLIST will be deprecated slowly.
2007-12-01Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needsrillig1-2/+1
it. It had only been used to change the "nerrors" variable in bulk builds, but this variable is not used further anyway.
2007-11-03Moved common commands into a variable. This saves 15 lines.rillig1-24/+10
2007-11-03Simpler includes.rillig1-3/+3
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-09-13It has always annoyed be that package authors had to write ${PKGMANDIR}/rillig1-2/+16
in the definition of INSTALLATION_DIRS, where a short man/ would be much shorter. Since we already have that man-transforming magic in some other places of pkgsrc, it's also here. While here, documented INSTALLATION_DIRS and INSTALLATION_DIRS_FROM_PLIST so they are found by "bmake help".
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.joerg2-3/+35
2007-08-14Remove bootstrap-register, bootstrap was changed a while ago to usejoerg1-10/+1
normal building and installation.
2007-08-14Fix a number of bugs in the DESTDIR support:joerg1-2/+4
- check-perms.mk was not DESTDIR aware, prefix files before passing it to the directory extraction - PKG_FILELIST_CMD was calling pkg_info, which is fine for normal installation, but fails of course for DESTDIR. Just drop the @ lines from ${_DEPENDS_PLIST} and use that. - To make he former work, ensure that _flavor-generate-metadata is part of _INSTALL_ALL_TARGETS. It was normally a dependency of _flavor-register, but that is skipped for DESTDIR. - Remove ${_DEPENDS_PLIST} when running install-clean.
2007-08-10Remove ${WRKDIR}/.pkgdb during "install-clean" as that directoryjlam1-2/+2
contains files that are generated during the "install" phase. This should fix the problem where PLIST modifications were ignored if the PLIST was modified between a "make deinstall" and a "make reinstall".
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-07-02Remove USE_MTREE support. Keep one copy (the NetBSD version) forjoerg2-15/+4
the purpose of print-PLIST in plist/common-dirs.mtree. Discussed with wiz@, no objections on tech-pkg@.
2007-04-19Check if INSTALLATION_DIRS_FROM_PLIST is defined before using .ifxtraeme1-2/+3
!empty... Reported by Mihai Chelaru.
2007-04-19Drop NO_MTREE by making it the default. Introduce USE_MTREE to get thejoerg2-31/+5
old behaviour back. Discussed on tech-pkg@.
2007-03-09Fixed pkglint warnings.rillig3-23/+24
2007-03-09Replaced PKG_SILENT/PKG_DEBUG with RUN.rillig2-10/+7
2007-03-09Replaced the remaining PKG_SILENT/PKG_DEBUG pairs with RUN.rillig1-6/+9
2007-03-09Fixed the quoting in INSTALLATION_DIRS and install-dirs-from-PLIST.rillig1-33/+32
In install-dirs-from-PLIST, all directories that don't contain an '@' or '$' character are automatically installed.
2007-03-09Added MAKEFLAGS to the RECURSIVE_MAKE call. Almost all other callsrillig1-2/+3
already have it.
2007-03-09Renamed some more flavor-specific targets to have the form _flavor-*.rillig2-55/+7
Split check-vulnerable into a general an a flavor-specific part, for consistence with all the other targets.
2007-03-08Renamed replace-pkg to _flavor-replace and undo-replace-pkg torillig1-6/+6
_flavor-undo-replace. The leading underscore makes it obvious that these targets are private, which saves redundant comments.
2007-03-02Make MTREE_FILE and MTREE_ARGS internal by prefixing them with '_'.wiz1-5/+5
They are not supposed to be set by the user.
2007-03-02Desupport unused FORCE_PKG_REGISTER.wiz1-2/+2
2007-03-02Remove support for obsolete and unused NO_PKG_REGISTER.wiz1-3/+3
2007-02-20Cleaned up the code:rillig1-41/+30
- Targets that are not intended to be defined here (replace-pkg and undo-replace-pkg) are not defined here. (Sounds obvious, but apparently isn't.) - Targets that are intended to be defined here and only here (replace and undo-replace) do not need a multiple-definition protection. - Moved all comments to the top of the file.
2007-01-06Moved the code that installs check-files on the hook from install.mk torillig1-5/+1
check-files.mk, for two reasons: 1. It belongs there. 2. Now check-files is run before check-perms and check-interpreter.
2006-12-15Set NO_MTREE for packages flagged as allowing DESTDIR. They are supposedjoerg1-1/+8
to work without precreated directories anyway.
2006-11-21Only set BINPKG_SITES to ftp.netbsd.org, if the OS is actually NetBSD.joerg1-1/+5
2006-11-12Removed the tests for CHECK_INTERPRETER and CHECK_PERMS. They are now inrillig1-7/+1
../checks/*.mk.
2006-11-12Moved the check for whether check-wrkref should be run fromrillig1-4/+1
install/install.mk to check/check-wrkref.mk. Renamed the check-wrkref target to _check-wrkref.
2006-11-11Added some documentation.rillig1-19/+23
Since hooks should not be overwritten, removed the !target() check. That way, one gets a warning when attempting to add some code to the hook.