summaryrefslogtreecommitdiff
path: root/mk/fetch/bsd.fetch-vars.mk
AgeCommit message (Collapse)AuthorFilesLines
2015-09-13Introduce IGNORE_INTERACTIVE_FETCH to allow trying to fetch files fromjoerg1-1/+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-08Make the post-fetch hook a bit more useful by also handing down the URLjoerg1-2/+3
the file was obtained from. This makes it easier to skip any local mirrors.
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.
2015-03-09Use SITES.${_GITHUB_DEFAULT_DISTFILES} instead of ugly := assignmenttnn1-2/+4
to MASTER_SITES which could conceivably break some use cases. Also add comment in bsd.fetch-vars.mk.
2015-03-07Address issues raised by agc@ to make the github master site handlingtnn1-3/+4
more pkgsrcesque. 1) turn _USE_GITHUB into an internal infrastructure variable 2) put back MASTER_SITES in packages' Makefiles. 3) encode the account in the master site URL, remove GH_ACCOUNT 4) rename GH_PROJECT to GITHUB_PROJECT 5) rename GH_TAGNAME to GITHUB_TAG and allow it to accept commit hash as well as tag. GH_COMMIT is gone. 6) turn on this functionality when MASTER_SITES matches a predefined github pattern instead of via explicit USE_GITHUB setting.
2015-03-07Adopt USE_GITHUB from FreeBSD ports to make github MASTER_SITEtnn1-1/+5
handling less painful. See: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github To use, set in Makefile: DISTNAME= exampleproject-1.2 USE_GITHUB= YES The following variables alter USE_GITHUB behavior: GH_ACCOUNT defaults to PKGBASE GH_PROJECT defaults to PKGBASE GH_TAGNAME defaults to PKGVERSION_NOREV (sometimes you want to override with v${PKGVERSION_NOREV}) GH_COMMIT explicit commit hash if no tag is available GH_RELEASE default empty, may be set to ${DISTNAME} for example GH_TYPE overrides the autodetected MASTER_SITE URL scheme
2014-03-02loose mandantory DISTNAME.obache1-1/+3
2014-02-14tell wget as a tool.obache1-2/+2
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.
2009-03-20Only add dependency on the fetch program, if there is something tojoerg1-1/+3
fetch.
2009-02-10Change the way the fetch process is organised as proposed on tech-pkg:joerg1-5/+11
- 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-05-22Add ftp as tool. On NetBSD and DragonFly, this will use the systemjoerg1-2/+2
version of tnftp, otherwise it will use net/tnftp. Require ftp as bootstrap dependency when the package has files to fetch. The dependency is currently unconditional and FETCH_CMD is set to TOOLS_PATH.ftp by default.
2008-05-22Move digest dependency into checksum and fetch part.joerg1-7/+31
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.
2007-11-02Added some variables for "bmake show-all-fetch".rillig1-1/+6
2007-08-16Added a variable DEFAULT_DISTFILES that can be used when addingrillig1-2/+9
distfiles to DISTFILES.
2007-07-27Don't depend on digest if FAILOVER_FETCH and NO_CHECKSUM are setjoerg1-2/+5
together.
2006-07-27Documented DIST_PATH and fixed two typos (${TARGET} is not ${.TARGET}).rillig1-1/+5
2006-07-19Make "mirror-distfiles" less verbose by not printing out anything if nojlam1-3/+5
bootstrap dependencies need to be built and installed.
2006-07-18Overhaul fetch module:jlam1-1/+8
* All the smarts is now encapsulated in the "fetch" script. The fetch script understands how to use the distinfo file (if specified) to look up the size and checksums of the file to fetch and will use that information to verify checksums of the fetched files or resume transfers of interrupted fetches. * Move the default settings for FETCH_RESUME_ARGS and FETCH_OUTPUT_ARGS for "ftp" from mk/defaults/mk.conf into mk/fetch/fetch.mk. We rewrite it to avoid needing conditional statements. * Avoid spawning a new make(1) process just to mirror a distfile. * Split out fetch-list targets into a separate file fetch-list.mk. These targets should probably be moved into a standalone script. * Fix distclean target to properly remove partial downloads.
2006-07-13* Add a new stage "bootstrap-depends" that happens before all otherjlam1-1/+6
stages, and that installs dependencies listed in BOOTSTRAP_DEPENDS. The bootstrap-depends step works just like the normal depends step and honors the value of DEPENDS_TARGET. It's now possible to add dependencies solely to facilitate fetching the distfiles, e.g. BOOTSTRAP_DEPENDS+= curl-[0-9]*:../../www/curl * Teach the tools framework about ":bootstrap" as a tools modifier which indicates the tool should be added as a dependency via BOOTSTRAP_DEPENDS. * Add "digest" to the tools framework. * Use USE_TOOLS+=digest:bootstrap to force pkgsrc to install digest before anything else. Get rid of unused "uptodate-digest" target and related digest version-checking code. * Finish the refactoring work: split checksum-related code out of bsd.pkg.mk and into pkgsrc/mk/checksum and replace the "checksum" target command list with a script that does all the real work. * Make DIGEST_ALGORITHMS and PATCH_DIGEST_ALGORITHM into private variables by prepending them with an underscore. Also, rename _PATCH_DIGEST_ALGORITHM to _PATCH_DIGEST_ALGORITHMS and adjust the makepatchsum target to allow that variable to contain a list of algorithms, all of which are used when creating the patch checksums for ${DISTINFO_FILE}.
2006-06-06Move some variable definitions out of bsd.prefs.mk and back intojlam1-5/+7
bsd.pkg.mk. They didn't actually need to be defined in bsd.prefs.mk, just somewhere before the "main" bsd.<phase>.mk files were included. This moves some conditional (?=) definitions back into bsd.pkg.mk so they won't conflict with any conditional definitions in package Makefiles. This should fix the "checksum" problems in lang/php-gd as noted here: http://mail-index.netbsd.org/pkgsrc-users/2006/06/05/0012.html where EXTRACT_SUFX had the wrong value due to the order in while *.mk files were included.
2006-06-06Refactor "fetch" and "extract" code into correspondingly namedjlam1-0/+22
subdirectories of pkgsrc/mk. Move the following files around for locality: pkgsrc/mk/scripts/extract -> pkgsrc/mk/extract/extract pkgsrc/mk/bsd.sites.mk -> pkgsrc/mk/fetch/sites.mk Also get rid of the recursive make for the "fetch" and "extract" targets. This basically merges the "fetch" and "extract" phases into the "patch" phase. There is still much more work to do to simplify the fetch code, but this is a good start.