summaryrefslogtreecommitdiff
path: root/mk/install
AgeCommit message (Collapse)AuthorFilesLines
2016-07-26Support NetBSD man/html entries. Fixes deforaos-*.jperkin1-2/+2
2016-06-16add ftp6 to binpkg_sites, at request of joerg, since cdn is ipv4 onlymspo1-2/+3
2016-06-16set cdn.netbsd.org as the bin install site for netbsdmspo1-2/+2
2016-04-10Remove support for USE_DESTDIR=no.joerg4-59/+12
2015-10-12Support compressed manual pages with 3am and 3f suffixes.jperkin1-2/+2
2015-09-07Remove warning about 'make replace' being experimental.gdt1-2/+1
Lots of people have been using make replace for many years, at least since 2006. It hasn't been experimental for most of those years, and there have been no reports of "data loss".
2014-12-06Add a new definition, PKGSRC_KEEP_BIN_PKGS, which defaults to "no".agc2-4/+8
This definition controls whether the binary package which is built during package installation will be copied to pkgsrc/packages/All. To retain binary packages in pkgsrc/packages/All, set PKGSRC_KEEP_BIN_PKGS=yes in environment or MAKECONF. If this is not set, binary packages will not be preserved after their WRKDIR is removed. This may not be what you want. To preserve the status quo since 2013/05/22, and just delete the binary package after it's built, the default for PKGSRC_KEEP_BIN_PKGS is "no", or it can be explicitly set. As reviewed on tech-pkg.
2014-07-28Use the standard 75 x '=' print format.jperkin1-3/+3
2014-03-11Introduce infrastructure support for SMF.jperkin1-0/+40
SMF is the Service Management Facility, the default init system in Solaris and derivatives since version 10. This adds "smf" to the list of supported INIT_SYSTEM types, and makes it the default init system on platforms where it is available. Packages can introduce SMF support by providing a manifest file, by default located in ${FILESDIR}/smf/manifest.xml but manifests under ${WRKSRC} can be used too if the package source includes one. SMF method scripts are supported too if required, using SMF_METHODS in a similar manner to RCD_SCRIPTS. Many parts of the SMF infrastructure are configurable, see mk/smf.mk for the full details.
2013-05-23prevent to generate binary package in ${PACKAGES} from the side effect ofobache2-4/+4
`install' with USE_DESTDIR=yes. This changes prevent to unwanted overwite of existing binary packages with test installation (`stage-install', `replace' & `undo-replace', and so on). To do both `install' and `package', you can still use `package-install' target, same as USE_DESTDIR=no.
2013-01-05Modify mk/plist/plist-gnu.mk to convert gnu/man to ${PKGGNUDIR}${PKGMANDIR}.sbd1-1/+2
Also modify mk/install/install.mk to make the conversion when using AUTO_MKDIRS.
2012-12-06Introduce PKGGNUDIR as a way to control gnu prefix.jperkin1-4/+6
By default pkgsrc uses LOCABASE/gnu as a prefix for packages to install native versions of GNU tools, which are them symbolically linked back to the 'g' versions of the files in LOCALBASE, and users can then add LOCALBASE/gnu/bin to PATH to pick up those tools. On systems where the GNU environment is desired, PKGGNUDIR now allows users to install the non-'g' files directly into LOCALBASE, making them the default without having to alter PATH, whilst retaining the 'g' files in order to ensure dependencies and tool paths remain the same.
2012-07-28fix typo in commentreed1-2/+2
2011-11-05When using Minix, set BINPKG_SITES to the official Minix binary package site.tcort1-1/+4
2011-10-15Rename "flavor" to "pkgformat".reed4-22/+22
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG support to pkgsrc. (I am not adding that further support in this commit.) This is just a rename of the existing functionality. Now it will be easy to test the GSoC work by simply putting in a single directory (such as "rpm" or "deb"). See http://addpackageforma.sourceforge.net/ for some details. This is from Anton's CVS, but I made some minor changes: - changed plural pkgformats to singular pkgformat (to be consistent) - fixed a few places (in comments) that were missed - catch up on some additions to flavor not in the pkgforma cvs: PKGSRC_SETENV and _flavor-destdir-undo-replace and undo-destdir-replace-install.
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs2-6/+6
to santise environment
2011-08-01Pass PKGNAME_REQD through to the make process on the other sideapb1-1/+2
of the "su" command. This fixes {cd math/py-networkx; env PYTHON_VERSION_DEFAULT=25 PKGNAME_REQD='py24-networkx-*' make replace;}
2011-06-04Add support undo-replace with USE_DESTDIR.obache1-1/+8
fixes PR#43689.
2011-03-21remove quote from "DESTDIR".obache1-2/+2
2011-03-21Introduce DESTDIR_VARNAME package-settable variable.obache1-4/+9
A variable name that should be set as staged installation location presented as ${DESTDIR} at installation phase. "DESTDIR" is set by default. for packages using different variable for staged installation prefix, and/or using DESTDIR variable for different purpose.
2011-02-07Add default binpkg site for DragonFly. From Justin Sherrill in PR 44526.wiz1-1/+4
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".