Commit graph

65 commits

Author SHA1 Message Date
ryoon
e8aa763230 mk: Introduce GITHUB_SUBMODULES to get and place Git submodules for GitHub 2021-03-30 16:47:03 +00:00
rillig
3059f09896 mk/extract/bsd.extract-vars.mk: make documentation more user-friendly
The variables are now sorted chronologically instead of alphabetically,
to express the order in which the actions happen. The sentences are a bit
shorter than before.

The visual layout has been changed to make the whole variable name stick
out more. Before, the part that was easily visible was the same "EXTRACT_"
for all of them.
2020-03-20 17:16:34 +00:00
rillig
172f1091af mk/extract/extract.mk: enclose extract_file in quotes
This prevents unintended shell word expansion.

It also makes that argument visible in "bmake show-all-extract". Before,
it was left out entirely from the output. Now it is printed as an empty
string literal, which at least gives a hint that "there is something".
2020-03-20 15:00:45 +00:00
gdt
52d38b3cdb mk/extract: move EXTRACT_USING earlier
In an attempt to resolve problems on SunOS, move EXTRACT_USING to the
early variables file, in the hopes that it will be defined before code
that checks it is executed.
2020-03-14 00:14:35 +00:00
gdt
b9c8f5d661 extract.mk: Fix comment about nbtar
Maybe long ago nbtar was pkgsrc's pax-as-tar, but now this is just
${TOOL_PLATFORM.tar} which might be anything.
2020-03-12 16:55:31 +00:00
nia
d790e74201 teach extract about .txz, a weird alias for .tar.xz. 2019-08-02 11:48:17 +00:00
rillig
b88d952e81 mk: allow "bmake clean depends" as shortcut
When "bmake clean depends" was called for a package where the various
cookie files already existed, these would enable different rules than a
clean package directory.

Since "bmake clean" deletes all the cookie files before "bmake depends"
starts, in these combined command lines the cookie files must be treated
as absent.
2019-05-07 19:36:43 +00:00
rillig
858c6cfd69 mk/misc: make configuration for show-all targets more configurable
Up to now, there was a central list of variable name patterns that
defined whether a variable was printed as a sorted list, as a list or as
a single value.

Now each variable group decides on its own which of the variables are
printed in which way, using the usual glob patterns. This is more
flexible since different files sometimes differ in their naming
conventions.

Two variable groups are added: license (for everything related to
LICENSE) and go (for lang/go).
2018-11-30 18:38:19 +00:00
minskim
4b82a59c7e lang/rust: Extract .cargo without making a copy in ${WRKDIR} 2018-10-23 16:39:29 +00:00
maya
6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
obache
c79cf317c3 Document EXTRACT_ENV 2014-03-02 09:45:42 +00:00
shattered
aead224866 Decompress .lz files with lzip. 2013-11-16 07:45:26 +00:00
obache
0826fce3ea tabify 2013-04-12 12:38:14 +00:00
jperkin
bfeea1621d Add support for *.sh as jre-bin files. 2013-02-28 18:26:22 +00:00
ryoon
75ab051997 Add .tar.7z support. 2012-10-06 22:24:45 +00:00
ryoon
65938ffe31 Replace whitespace with tab. 2012-10-06 22:16:08 +00:00
ryoon
b707c18585 Add 7z archive distfile support.
Fix PR pkg/42967
2012-10-01 10:45:16 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
tron
c2b518dacb Use "xzcat" instead of "lzcat" to handle ".lzma" files as the former is
bundled with NetBSD-current.
2010-12-22 09:33:30 +00:00
joerg
2daf2a4e60 Allow EXTRACT_DIR to be specified independently for each file.
OK wiz@
2010-10-15 20:22:27 +00:00
obache
171cda4aeb tools definition of bzcat may have option (ex. bzip2 -cd), allow it. 2010-02-07 08:00:51 +00:00
wiz
036448f017 Allow a minimum of 64MB when extract lz files. 2010-01-16 17:08:34 +00:00
wiz
109c80313e Change default for zip extraction to leave files as they are.
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-08-25 11:56:34 +00:00
minskim
ce99bfa433 Uncompress .xz using xzcat. 2009-07-08 13:27:52 +00:00
minskim
9d21508d1a Decompress .lzma files with lzcat. 2008-11-15 20:25:34 +00:00
joerg
5ccc35b89b Document bsdtar value. From OKANO Takayoshi. 2008-05-26 13:39:08 +00:00
joerg
b2a1dcfb92 Add support to extract using bsdtar. 2008-05-25 20:02:02 +00:00
jlam
77ce6ccc01 Invent new variable EXTRACTOR that has the environment and path to the
extract script.  This can be used in a more natural way by custom
do-extract targets than EXTRACT_CMD.
2008-03-12 15:51:39 +00:00
jlam
f08acff9a0 Fix whitespace 2008-03-12 15:48:21 +00:00
rillig
800789264a Got rid of _PKG_SILENT. Why use __file__ when a simple f does the same? 2008-01-23 14:59:35 +00:00
joerg
08016fa1fa EXTRACT_USING is always set, even when the necessary tools are not
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-30 13:37:18 +00:00
joerg
780c8a1afe Fix EXTRACT_USING=gtar and simplify the other cases. TOOLS_GTAR was never
defined and therefore no argument was passed to the extract script.
This broke at least scmgit-docs on DragonFly.
2007-12-29 20:08:16 +00:00
rillig
9fab8079e7 Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needs
it. It had only been used to change the "nerrors" variable in bulk
builds, but this variable is not used further anyway.
2007-12-01 11:11:53 +00:00
rillig
506c5a62cb Simpler include line. 2007-11-07 09:53:15 +00:00
rillig
498b3032c8 Made "bmake show-all-extract" work. 2007-11-07 09:52:58 +00:00
jlam
3629e30a61 Teach the extract module to extract RPMs with rpm2pkg. 2007-07-31 17:42:40 +00:00
rillig
05ac362276 Added a typical command for the post-extract target. 2007-01-09 05:13:43 +00:00
rillig
c9990b973a Fixed the documentation. 2007-01-09 05:13:27 +00:00
joerg
412d5ea7c7 s,//,/, 2006-12-29 00:48:59 +00:00
rillig
1264ae81d1 Added better documentation for pre-extract, do-extract and post-extract.
They are found by "make help" now.
2006-11-20 00:03:22 +00:00
ben
73c7e3adbf Add cformat= to avoid an error and exit on the undefined variable. 2006-10-18 19:18:12 +00:00
ben
ddd1387913 Change from jlam that adds the ability to override the decompressor used
by extract.
2006-10-18 16:17:42 +00:00
minskim
3cc5058c86 Teach how to unpack .gem files. 2006-10-15 01:56:06 +00:00
rillig
39f8019a3e Forgot to provide the default value for EXTRACT_DIR.
EXTRACT_DIR may be given relative to WRKDIR.
2006-10-09 02:37:32 +00:00
rillig
22d4a3747a Added the EXTRACT_DIR variable, which can be used if the distfiles should
not be extracted into ${WRKDIR}.
2006-10-09 02:31:57 +00:00
joerg
030dbf012a Add support for cpio archives. 2006-09-13 11:10:36 +00:00
schwarz
d478480a96 use gzip -cd instead of gzcat, the latter not being available on all systems,
notably not being part of pkgsrc.
2006-09-03 16:36:37 +00:00
schwarz
ffe01c2d57 it is not necessary to have a variable _EXTRACT_PATTERNS that contains
${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-19 20:32:28 +00:00
schwarz
463b1f8ab6 only depend on the extract tools if there are actually any files to extract 2006-08-19 20:06:57 +00:00
jlam
6a569e5eb8 After auditing all the packages the ensure that they never invoke the
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-27 13:47:29 +00:00