summaryrefslogtreecommitdiff
path: root/mk/extract
AgeCommit message (Collapse)AuthorFilesLines
2014-03-02Document EXTRACT_ENVobache1-1/+4
2013-11-16Decompress .lz files with lzip.shattered2-3/+9
2013-04-12tabifyobache1-2/+2
2013-02-28Add support for *.sh as jre-bin files.jperkin1-2/+2
2012-10-06Add .tar.7z support.ryoon1-2/+5
2012-10-06Replace whitespace with tab.ryoon1-2/+2
2012-10-01Add 7z archive distfile support.ryoon3-3/+14
Fix PR pkg/42967
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs1-2/+2
to santise environment
2010-12-22Use "xzcat" instead of "lzcat" to handle ".lzma" files as the former istron3-6/+5
bundled with NetBSD-current.
2010-10-15Allow EXTRACT_DIR to be specified independently for each file.joerg1-2/+13
OK wiz@
2010-02-07tools definition of bzcat may have option (ex. bzip2 -cd), allow it.obache1-2/+2
2010-01-16Allow a minimum of 64MB when extract lz files.wiz1-2/+2
2009-08-25Change default for zip extraction to leave files as they are.wiz1-2/+2
Previously, zip extraction by default converted to lower case. Fix some packages that need it and remove -L from some packages that manually set it.
2009-07-08Uncompress .xz using xzcat.minskim3-4/+10
2008-11-15Decompress .lzma files with lzcat.minskim3-4/+10
2008-05-26Document bsdtar value. From OKANO Takayoshi.joerg1-3/+3
2008-05-25Add support to extract using bsdtar.joerg2-4/+8
2008-03-12Invent new variable EXTRACTOR that has the environment and path to thejlam1-6/+8
extract script. This can be used in a more natural way by custom do-extract targets than EXTRACT_CMD.
2008-03-12Fix whitespacejlam1-2/+2
2008-01-23Got rid of _PKG_SILENT. Why use __file__ when a simple f does the same?rillig1-9/+7
2007-12-30EXTRACT_USING is always set, even when the necessary tools are notjoerg2-6/+12
depended on because it is not used. Work around it for now by checking that the target is actually non-empty explicitly. This is still simpler than the original code. After the branch, this will be reordered so that it only gets set to non-default values when it will be used.
2007-12-29Fix EXTRACT_USING=gtar and simplify the other cases. TOOLS_GTAR was neverjoerg1-4/+4
defined and therefore no argument was passed to the extract script. This broke at least scmgit-docs on DragonFly.
2007-12-01Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needsrillig1-3/+2
it. It had only been used to change the "nerrors" variable in bulk builds, but this variable is not used further anyway.
2007-11-07Simpler include line.rillig1-2/+2
2007-11-07Made "bmake show-all-extract" work.rillig1-1/+5
2007-07-31Teach the extract module to extract RPMs with rpm2pkg.jlam3-3/+16
2007-01-09Added a typical command for the post-extract target.rillig1-1/+4
2007-01-09Fixed the documentation.rillig1-2/+2
2006-12-29s,//,/,joerg1-2/+2
2006-11-20Added better documentation for pre-extract, do-extract and post-extract.rillig1-2/+20
They are found by "make help" now.
2006-10-18Add cformat= to avoid an error and exit on the undefined variable.ben1-1/+2
2006-10-18Change from jlam that adds the ability to override the decompressor usedben1-7/+23
by extract.
2006-10-15Teach how to unpack .gem files.minskim2-2/+11
2006-10-09Forgot to provide the default value for EXTRACT_DIR.rillig1-2/+4
EXTRACT_DIR may be given relative to WRKDIR.
2006-10-09Added the EXTRACT_DIR variable, which can be used if the distfiles shouldrillig1-2/+13
not be extracted into ${WRKDIR}.
2006-09-13Add support for cpio archives.joerg2-2/+20
2006-09-03use gzip -cd instead of gzcat, the latter not being available on all systems,schwarz1-2/+2
notably not being part of pkgsrc.
2006-08-19it is not necessary to have a variable _EXTRACT_PATTERNS that containsschwarz1-34/+29
${EXTRACT_SUFX}, so one can directly use EXTRACT_ONLY instead. EXTRACT_ONLY defaults to ${DISTFILES} which in turn defaults to ${DISTNAME}${EXTRACT_SUFX}. So if EXTRACT_SUFX is relevant for determining which tools are needed this can only happen if neither DISTFILES nor EXTRACT_ONLY have been set by the package, in which case the relevant variable EXTRACT_ONLY would contain EXTRACT_SUFX.
2006-08-19only depend on the extract tools if there are actually any files to extractschwarz1-30/+34
2006-07-27After auditing all the packages the ensure that they never invoke thejlam1-2/+2
compiler toolchain until the configure stage, move the "wrapper" stage back to between "patch" and "configure". This makes "make extract NO_DEPENDS=" work again for all packages.
2006-07-26add a missing PHONYdrochner1-1/+2
2006-07-22Modify the barrier so that we always invoke the recursive make processjlam1-2/+2
when passing through the barrier. This ensures the PATH (passed via PKGSRC_MAKE_ENV) is correctly set for all phases after the barrier. This fixes a bug in "interactive" pkgsrc use, where if you have no work directory and type "make build && make install", then the "install" step does not have a PATH set to include all the wrapper and tools directories.
2006-07-21Rearrange sequence so that "wrapper" occurs between "tools" andjlam1-6/+5
"extract". This allows all user-definable targets (pre-*, do-*, post-*) to have access to the wrapper scripts.
2006-07-07Rename <phase>_COOKIE variables to _COOKIE.<phase>. These are privatejlam1-10/+10
variables so there are no user-visible changes. This change just makes it a little easier to write for loops.
2006-07-06The cookie files are indirectly made using *-cookie targets, so verifyjlam1-1/+2
that they are never being created more than once by inserting a check into the *-cookie targets.
2006-07-05Flatten out recursive makes into a single re-invocation of make byjlam1-4/+9
introducing the concept of a "barrier". We separate the user-invokable targets into ones that must happen before the barrier, and ones that must happen after the barrier. The ones that happen after the barrier are run in a sub-make process. In this case, the targets that must be run after the barrier are from the "wrapper" step and beyond. We rewrite the various "flow" targets, e.g. wrapper, configure, build, etc., so that they of the right form to use the barrier target. This now completely removes the concept of PKG_PHASE from pkgsrc. It is replaced with the concept of "before" and "after" the barrier, and this state can be checked by testing for the existence of the barrier cookie file. Because we've removed most of the recursive makes, there is now nowhere to hook the PKG_ERROR_HANDLER.* commands, so remove them for now. As part of this commit, put back the logic that conditionalized the sources for the various cookie files. Because the sources are all "phony" targets, they were always run, regardless of whether or not the cookie file already existed. Now, if a cookie file exists, then that entire phase associated with that cookie file is skipped. Lastly, fix a thinko in configure/bsd.configure.mk where setting NO_CONFIGURE in a package Makefile would manage to skip the "wrapper" step altogether. Fix this by correctly noting "wrapper" and not "patch" as the preceding step to "configure".
2006-07-05Make the check-vulnerable target more self-sufficient, by moving somejlam1-7/+8
of the logic from fetch/fetch.mk into flavor/pkg/check.mk, so that check-vulnerable can be used as a source target. Make check-vulnerable a source target for every phase of the build workflow, which ensures that it is always run if the user starts a new phase from the command line. Fix the cookie-generation targets so that they don't append, only overwrite to the cookie file. This works around potential problems due to recursive makes. Move the cookie checks so that they surround the corresponding phase target. The presence of the cookie should now inform the make process to avoid doing any processing of phases that occur before the phase corresponding to the cookie.
2006-06-09Introduce the capability to gather all the warnings and errors thatjlam1-1/+2
are generated for a target and output them all at once at the conclusion of the target's invocation. The implementation is in bsd.pkg.error.mk, which defines a macro target "error-check" that will print out any non-empty warning and error files in ${WARNING_DIR} and ${ERROR_DIR} and exit appropriately if there were errors. Convert some targets that were just long sequences of ${ERROR_MSG} or ${WARNING_MSG} within a single shell statement to use the new delayed error output via error-check. Modify the compiler "fail" wrappers for C++ and Fortran to be less verbose during invocation. Instead collect the warnings and only print them at the end of the completed phase, e.g. after "configure" and/or "build" completes.
2006-06-09No need to synthesis the package directory from components when ${.CURDIR}jlam1-2/+2
already has the right value.
2006-06-08Introduce "makedirs" as a helper target to create directories withjlam1-2/+2
unprivileged ownership.