summaryrefslogtreecommitdiff
path: root/mk/fetch/fetch.mk
AgeCommit message (Collapse)AuthorFilesLines
2016-01-06Use :tA to make DISTINFO_FILE absolute when passing it to the fetchdholland1-2/+2
and checksum scripts. Fixes the problem where DISTINFO_FILE=../../foo/bar/distinfo doesn't work without having an extraneous and ugly ${.CURDIR} stuffed into it by hand.
2015-09-14Reorder and fix logic snafu.joerg1-3/+3
2015-09-13Introduce IGNORE_INTERACTIVE_FETCH to allow trying to fetch files fromjoerg1-2/+7
the override site, even for INTERACTIVE_STATE=stage or FETCH_MESSAGE. Ignore all backup sites as they won't have the distfile anyway, the fetch wouldn't be interactive in first place otherwise.
2015-09-08Add a hook for running an action after a successful fetch.joerg1-1/+4
This is intended for keeping distfile archives synchronised between different machines without requiring NFS mounts or the like.
2014-10-07Pass "--remote-time" option to "curl" to get correct time stampstron1-2/+2
on downloaded files.
2014-02-14tell wget as a tool.obache1-2/+2
2013-11-16Ensure failure on failure of depends-fetch and depends-checksum targets.jakllsch1-2/+2
2013-11-16Use correct verb in depends-fetch target information message.jakllsch1-2/+2
2013-02-16Remove fetched file if fetch command succeeds to fetch but checksum mismatchobache1-1/+2
with PKG_RESUME_TRANSFERS=YES. PR 39896.
2013-02-07FTPUSERAGENT is a environment variable for ftp(1), not a make variable.obache1-2/+1
No need to pass here. related to PR 47525.
2013-01-20Allow overwritting of FTPUSERAGENT for some broken sites, which requires it.morr1-2/+2
2012-12-14Clear FTPUSERAGENT environment variable.ryoon1-1/+2
When FTPUSERAGENT="Mozilla/1.0", for example, fetching from MASTER_SITE_SOURCEFORGE fails. Original problem is reported from tsutsui@.
2012-07-27Make curl a tool. Add support for /usr/bin/curl, if available, on Solaris.jperkin1-2/+2
SmartOS and OmniOS users can now set FETCH_USING=curl and no longer require pkgsrc dependencies for downloading distfiles.
2012-02-06Revert runaway commitfhajny1-1/+2
2012-02-06Added devel/ruby-kgio, www/ruby-raindrops and www/ruby-unicornfhajny1-2/+1
2011-12-06Let wget to skip CERT check, same as curl doing.obache1-1/+2
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs1-3/+3
to santise environment
2011-05-17he -> the typo in fetch.mk; reported by Snader_LBmspo1-2/+2
2011-02-10Disable certificate checks when using "curl". This fixes the build oftron1-2/+2
the "youtube-dl" package.
2011-02-08Add FETCH_USE_IPV4_ONLY option to force connecting to only IPv4 addresses.obache1-5/+12
2011-02-08Add `--location' option for curl to follow HTTP redirect.obache1-2/+2
2011-02-08Let curl to silent fail with server error.obache1-1/+2
fixes a part of PR#44528.
2011-01-22For curl, "=" is not required for longname options with value.obache1-3/+3
2011-01-18For PR #44396.reed1-2/+2
"FETCH_CMD is the program used to fetch files for FETCH_USING=custom."
2010-06-27Add FETCH_TIMEOUT option to limit the time connections may hang duringjoerg1-5/+13
fetch. Requested by spz@, OK by wiz@
2009-07-15Add depends-fetch and depends-checksum. They work likejoerg1-1/+11
show-depends-options, e.g. recurse. make fetch-list does not provide the same functionality as it doesn't deal well with broken mirror.
2009-03-17Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig1-7/+7
2009-02-17Fix C&P error. Pointed out by OBATA Akio.joerg1-2/+2
2009-02-14Don't use += to append to an empty variable. If PASSIVE_FTP is notjoerg1-5/+3
defined, it would still leave the variable with a non-empty value and that would be passed down to the fetch command when running fetch-list.
2009-02-10Optionally request passive FTP for wget.joerg1-2/+2
2009-02-10Change the way the fetch process is organised as proposed on tech-pkg:joerg1-19/+26
- Introduce FETCH_USING, which specifies the mechanism to use; possible values are ftp, fetch, curl, wget, manual and custom. - Depend on the correct tool/program if not using manual or custom. - For manual, just use /usr/bin/false to bail out if a distfile is missing. - For custom, FETCH_CMD and related variables are used as before. - Default value is ftp.
2008-10-08Allow use of fetch as FETCH_CMD.joerg1-1/+6
2008-09-24Fix a typo in comment.obache1-2/+2
2008-09-07Add FETCH_*_ARGS templates for curl.obache1-1/+7
Should be solution for PR 39208.
2008-05-22Move digest dependency into checksum and fetch part.joerg1-25/+1
Make _ALL_FILES and in turn _CKSUMFILES available earlier. Use it to only depend on digest if _CKSUMFILES is non-empty. NO_CHECKSUM will now only skip the checksum and checksum-phase targets. FAILOVER_FETCH will independently check the sums on distfiles and depend on digest, fixing the remaining issues originally raised in PR 34914.
2008-04-03Move handling of pkg_install version into flavor. Add an explicitjoerg1-1/+2
phase pkg_install-depends before bootstrap-depends that just tries to install a new pkg_install if the current version is too old. Still keep it as bootstrap dependency for the bulk build code. For NetBSD, PKG_TOOLS_BIN has to be computed in shell code due to a make bug. OK: jlam@
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-12-01If a package defines FETCH_MESSAGE, show that instead of the genericrillig1-2/+2
instructions.
2007-09-06If DISTDIR points to a non-existing location and a package has neitherjoerg1-1/+6
PATCHFILES nor DISTFILES, make fetch would complain about an unbuildable dependency. Fix this by explicitly checking that _ALLFILES is not empty. Reported by Sean Boudreau.
2007-08-14Checksum checks only make sense when distinfo is also present, sojoerg1-3/+2
move this into the conditional.
2007-08-01Teach mirror-distfiles to use emul-fetch if EMUL_PLATFORMS is defined sojlam1-1/+3
that mirror sites will grab all of the distfiles, not just the ones that are for the native platform.
2007-07-14No need to pass "." as directory, it is default value.obache1-3/+1
2007-07-14Allow empty DIST_SUBDIR, need to fix PR 35494.obache1-3/+7
2007-06-12Define some variables for using FETCH_CMD=wget.obache1-1/+6
2006-12-29Silence some longstanding noise in mail/qmail, caused by the factschmonz1-1/+2
that its ${DISTFILES} is also a common ${PATCHFILES}, resulting in the file being listed twice in ${_ALLFILES}. This one-line change removes duplicate filenames from ${_ALLFILES}, mirroring an identical transformation to ${ALLFILES} that used to do the trick. (The fetch code, obviously, has since changed a bit.) What the noise looked like: $ cd pkgsrc/mail/qmail $ make clean PKG_OPTIONS="netqmail" make: "/home/build/trees/pkgsrc-current/mk/fetch/fetch.mk" line 133: warning: duplicate script for target "/home/build/trees/pkgsrc-current/distfiles/netqmail-1.05.tar.gz" ignored make: "/home/build/trees/pkgsrc-current/mk/fetch/fetch.mk" line 133: warning: using previous script for "/home/build/trees/pkgsrc-current/distfiles/netqmail-1.05.tar.gz" defined here ===> Cleaning for qmail-1.03nb12 $ Tested in a bulk build by joerg@.
2006-11-25set ORS to space for _MASTER_RAND_AWK, so that the output would be thejdolecek1-3/+3
in the format MASTER_SORT_REGEX expects when MASTER_SORT_RANDOM is off, in order for MASTER_SORT to actually work when MASTER_SORT_RANDOM=YES (default nowadays) XXX testing stuff before committing would surely be a good idea
2006-10-08pkg/34695: Static list of package master sites may (and often will)mishka1-7/+21
lead to overloads of very first distribution site. Moreover, if first site in the list is not available (often seen for sourceforge mirrors) you have to wait for timeout each time. To distribute load on master distribution sites and to make second problem not so annoying randomly intermix list of MASTER_SITES with MASTER_SORT_RANDOM feature. Any of MASTER_SORT and MASTER_SORT_REGEX can be applied later. The feature is turned ON by default and is disabled for PKG_DEVELOPERs or if MASTER_SORT_RANDOM=no.
2006-10-07Meta-packages that had DIST_SUBDIR set (for whatever reason) tried torillig1-5/+5
fetch files with an empty name, for example "geda/". The problem was that the expression ${LIST:S,^,${DIST_SUBDIR}/,} results in ${DIST_SUBDIR}/ when ${LIST} is empty. This is surprising but matches the documentation in the manual page, so this cannot be called a bug. The proper fix is to use ${LIST:@f@${DIST_SUBDIR}/${f}@} instead. Noticed by Don Woodstock on #netbsd-code.
2006-07-27Rename "SITES_* to "SITES.*" for file-specific lists of sites from whichjlam1-7/+4
to fetch the file. This completes the renaming described in revision 1.1799 of bsd.pkg.mk.
2006-07-27All of the other *SITES* variables are plural, so rename DYNAMIC_SITE_*jlam1-5/+5
to DYNAMIC_SITES_* for consistency.