summaryrefslogtreecommitdiff
path: root/mk/pkgformat
AgeCommit message (Collapse)AuthorFilesLines
2017-08-23mk/pkgformat: Only pass "-C" option to pkg_create(1) if it's valid.jlam1-2/+2
Only pass "-C ${CONFLICTS}" to pkg_create(1) if ${CONFLICTS} is non-empty; otherwise, a fatal error occurs. This allows CONFLICTS to be defined, but empty.
2017-08-21mk/pkgformat: Support INSTALL scripts that rely on UNPACK.jlam1-1/+10
The pkginstall framework had an UNPACK action invoked early in the PRE-INSTALL stage to unpack scriplets that were invoked in later stages to perform extra work for installation, removal, or both. Add an UNPACK action that is a no-op for any scripts that don't support the action.
2017-08-19Run pkg_add(1) and pkg_delete(1) using ${SETENV} ${PKGTOOLS_ENV}.jlam4-13/+19
PKGTOOLS_ENV allows for passing environment variables to the package install and deinstall scripts.
2017-08-19Substitute the correct string for GTK3_UPDATE_ICON_CACHE.jlam1-2/+2
2017-08-10mk/pkgtasks: Failures in POST- stages of the scripts are non-fatal.jlam3-6/+30
The return values of the postinstall and postremove meta-tasks are ignored unless the user-settable variable ${PKG_FATAL_ERRORS} is "yes". ${PKG_FATAL_ERRORS} defaults to "no" to preserve the existing behavior of install scripts by mk/pkginstall.
2017-08-10mk/pkgtasks: Add infrastructure to use "icon_themes" package task.jlam1-1/+3
Add definitions for the gtk-update-icon-cache(1) command to the script header template, and a makefile fragment that creates the data file for the "icon_themes" package task if ${ICON_THEMES} is "yes" in the package Makefile. Also bump pkgtasks dependency to version 1.12 for the "icon_themes" package task and compatibility with pkgsrc/mk/pkginstall.
2017-08-10mk/pkgtasks: Add additional variables used by package tasks.jlam1-1/+10
These should be explicitly set in the scripts, otherwise, the pkgtasks defaults are used by locating programs in the $PATH or are hardcoded defaults used for testing pkgtasks.
2017-06-07Substitute for LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD in scripts.jlam1-1/+5
LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD are set by emulator/*.mk in order to update the library search paths in the emulated system directories. Substitute for those values, but default them to the empty string so that the default action taken by the "shlibs" task can be used.
2017-06-07Fix subsitutions for @PKG_ADMIN@ and @PKG_INFO@.jlam1-3/+3
The substituted values need to refer to the _CMD variables that hold the path to the actual commands.
2017-06-07Subsitute for @CROSSBASE@ and @VARBASE@ in install scripts.jlam2-2/+10
${CROSSBASE} and ${VARBASE} both point to important directories for installed packages, so always substitute those values into deinstall/install scripts.
2017-06-02Using script templates implies a dependency on pkgtasks.jlam2-4/+39
The header template loads pkgtasks' load.subr unconditionally, so if any script templates are used, then they imply a dependency on pkgtasks. Trigger the dependency in the "pkgtasks" framework by setting USE_PKGTASKS to "yes".
2017-06-01Provide switch to activate new frameworks to replace "pkginstall".jlam1-1/+35
If ${_USE_NEW_PKGINSTALL} is "yes", then use the new "pkgtasks", "init", and "pkgformat/pkg"-scripts frameworks instead of the existing "pkginstall" framework.
2017-06-01Make creation of +DEINSTALL/+INSTALL scripts pkgformat-specific.jlam7-0/+757
Move the files needed to generate +DEINSTALL and +INSTALL scripts for the "pkg" format into pkgsrc/mk/pkgformat/pkg. Create new script templates that make use of "pkgtasks" to perform the actual tasks.
2017-05-19Drop redundant dependency patterns. The normal reduction logic doesn'tjoerg1-1/+4
work for glob expressions, so multiple generic patterns would not be reduced.
2016-09-19Omit pkg_tarup during replace in destdir modegdt1-2/+2
In destdir mode (the default), make replace creates the replacement binary package without modifying the installed system, and then installs it via pkg_add -u. Thus, the new package is known to have built and packaged ok before the system is changed, and the risk of trouble is low; thus the benefit of tarring up the installed package is very low, especially since the newly-tarred-up package is removed by "make clean". Using pkg_tarup costs cycles to run and more importantly causes users to have to install it since it is not an automatic dependency. In addition, binary packages are now kept by default when building, so the old version should be accessible in case of trouble. This commit does not change the non-destdir case. Almost no one uses that method, and the relative benefit of tarup is much higher.
2016-07-18Fix a typo in a commentleot1-2/+2
2016-05-09Stop creating category symlinks in ${PACKAGES}, but keep All/ for now.joerg1-28/+3
2016-04-10Remove support for USE_DESTDIR=no.joerg6-152/+13
2016-04-10Always require the 2010 version of pkg_install to simplify things a bit.joerg1-5/+1
2016-02-02Changed "Install binary package" to "Installing binary package"rillig1-2/+2
2015-10-29Perform signing at the staged package stage rather than only during thejperkin1-17/+19
copy to the target pkgfile. Ensures consistency at all stages, means we can support verifying the signature at install time, and also fixes signed packages with recent pbulk changes which now invoke 'stage-package-create' rather than 'package'.
2015-09-07Switch to globbing for package symlinks to delete. This provides significantjperkin1-3/+3
performance improvements on at least OSX and SunOS, where each file is stat'd rather than just the links we are looking for, especially with large package directories over NFS.
2015-07-04Remove USE_X11BASE and X11PREFIX.joerg1-2/+1
2015-04-21Add a new ulimit modifier for cputime. Support raising limits forjoerg1-2/+2
package creation. There are very few things in pkgsrc that needs more than one hour per process on decently fast hardware, so setting that as (soft) limit for bulk builds avoids the infinite loops seen in some other packages. There are a few select exceptions, i.e. flightgear-data needs more than one hour for pkg_create when using xz. This flag allows selectively giving those places more time without wasting resources in the broken cases.
2015-02-16Put back PKGNAME_REQD fix for su-real-package-install.jperkin1-1/+2
2015-02-16Put back MESSAGE_SRC_DFLT.jperkin1-18/+17
2015-02-02Revertobache1-17/+18
introduce MESSAGE_SRC_DFLT, same as PLIST_SRC_DFLT for PLIST_SRC. proposed/discussed is required for such changes.
2015-02-01Revert "Pass PKGNAME_REQD to su-real-package-install",obache1-2/+1
proposed/discussed is required for such infrastructure changes.
2014-12-30Remove pkg_views support, second part: infrastructure.wiz5-114/+4
2014-12-08Fix a typo. No functional change.agc1-2/+2
2014-12-07Pass PKGNAME_REQD to su-real-package-install, for multiversion packagesobache1-1/+2
not using default version.
2014-11-02introduce MESSAGE_SRC_DFLT, same as PLIST_SRC_DFLT for PLIST_SRC.obache1-18/+17
2014-10-08Add missing braces and check getline returns success, this code must havejperkin1-2/+3
worked by pure luck in the past, and now works with strict POSIX awk too.
2014-04-07Fixes undefined variable references.obache1-3/+3
2014-04-06Create signed packages automatically if desired. It is disabled by default,khorben1-3/+18
and documented in mk/defaults/mk.conf. Both the "gpg" and "x509" methods supported by pkg_admin(1) are supported. With package signing enabled, a staging, unsigned copy of the package is always created, and its final copy to the package repository is done with pkg_admin(1) instead of "ln || cp". Proper operation should otherwise not be affected. Tested both with and without user-destdir support in packages. "can live with it" joerg@ From EdgeBSD.
2014-03-08Clean up target file if failed.obache1-4/+4
fixes PR pkg/48294.
2014-03-02Skip automatic shlib permission fix for files in CHECK_SHLIBS_SKIP.obache1-1/+5
2013-08-10drop unwanted stage-package-remove before stage-package-create,obache1-2/+2
to avoid unwanted stage binary package removal/regeneration.
2013-08-10reduce dependencies, to avoid unwanted binary package regeneration.obache1-3/+2
* ${_BUILD_INFO_FILE} only depends on ${_PLIST_NOKEYWORDS}, not plist target. * plist target is not required to create +CONTENTS
2013-07-13${_SIZE_PKG_FILE} only require ${PLIST}, so restrict dependency to it.obache1-2/+2
This change avoid to regeneration the file, it may cause pemission issue with PKG_DESTDIR_SUPPORT=destdir.
2013-05-23prevent to generate binary package in ${PACKAGES} from the side effect ofobache2-8/+49
`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-05-12consider nb? in dependency pattern.obache1-2/+2
2013-05-12Move show-depends-options, it is pkgformat independ target.obache1-11/+1
2013-05-09Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.riastradh6-28/+119
Build depends are target packages that are needed at build-time for, e.g., static libraries to link against, header files to include, &c. Tool depends are native packages that are needed at build-time for, e.g., compilers/linkers/&c. to run. ok agc
2013-03-07Temporary skip REQUIRE metadata collection for PE (Cygwin),obache1-2/+2
some DLL lead `ldd' command to hung up.
2013-02-10Add REQUIRE/PROVIDER metadata detection support for OBJECT_FMT=PE (Cygwin).obache1-1/+15
2012-07-02Expand the list of full dependencies, so that the shared library checkjoerg2-2/+136
can work without further calls for indirect full dependencies.
2012-05-13Set LD_TRACE_LOADED_OBJECTS_FMT{1,2} for OpenBSD so that output of ldd will beobache1-2/+2
expected format. workaround of PR 38838.
2011-12-13Be a bit less aggressive in the required version of pkg_install encodedjoerg2-3/+6
into binary packages.
2011-10-23Typodholland1-2/+2