Commit graph

268 commits

Author SHA1 Message Date
joerg
d02ad103b8 Change the way the fetch process is organised as proposed on tech-pkg:
- 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.
2009-02-10 18:55:54 +00:00
wiz
f4d4d06ea1 Break out of fetch loop if cd to _DISTDIR fails.
From Anon Ymous.
2009-02-08 23:16:08 +00:00
taca
beb4f88cfa Remove extra debug codes which noted by Ryo HAYASAKA as PR pkg/40175. 2008-12-15 09:01:30 +00:00
rillig
5a901cfed5 Added a -v flag to the verify_file function, which in case of a
verification failure prints a useful and concrete error message.
2008-12-14 14:09:32 +00:00
obache
581742f7e4 Add a missing end of slash. 2008-12-02 12:58:59 +00:00
obache
fe2a3978cf Update MASTER_SITE_MOZILLA with today's primary and secondary mirrors. 2008-12-01 11:49:20 +00:00
obache
96bb16916f Remove belnet from MASTER_SITE_SOURCEFORGE.
It is not listed in mirror picker and can't resolve the name.
Noticed by Zafer Aydogan via private mail.
2008-11-25 05:21:35 +00:00
joerg
92b7363904 Allow use of fetch as FETCH_CMD. 2008-10-08 15:39:07 +00:00
obache
dc6f08ef29 Fix a typo in comment. 2008-09-24 05:33:17 +00:00
rillig
930598a2d4 Corrected the usage message. 2008-09-15 21:07:46 +00:00
obache
60ce23921c Add FETCH_*_ARGS templates for curl.
Should be solution for PR 39208.
2008-09-07 08:17:39 +00:00
obache
233258e7f0 Remove ftp.scarlet.be from MASTER_SITE_KDE, service suspended over a month.
Noticed by Zafer Aydogan via private mail.
2008-08-25 02:40:33 +00:00
obache
c39b0a3e62 Remove ftp.scarlet.be from MASTER_SITE_MOZILLA_ALL.
It was uncompleted and now service suspended, noticed by Zafer Aydogan.

While here, update MSTER_SITE_MOZILLA taken from mirrors list:
  http://www.mozilla.org/mirrors.html
2008-08-24 05:46:43 +00:00
obache
f6fb61c8e9 Update MASTER_SITE_PGSQL, but it is not used anywhere... 2008-08-23 12:37:48 +00:00
obache
478e76cf18 Update MASTER_SITE_MYSQL, taken from current download page.
Noticed some dead hosts by Zafer Aydogan via private mail.
2008-08-23 03:07:33 +00:00
obache
8f263e90c4 Update MASTER_SITE_GENTOO, taken from http://www.gentoo.org/main/en/mirrors2.xml
Noticed some dead hosts by Zafer Aydogan via private mail.
2008-08-23 02:21:13 +00:00
heinz
600f9fc51c Removed stale mirrors for Apache and synchronized pkgsrc list with
http://www.apache.org/mirrors/. Tried to introduce some geographic
diversity (America, Europe, Asia, Australia).
2008-06-18 18:40:36 +00:00
tnn
9f2af91942 Add MASTER_SITE_XORG 2008-05-24 19:41:48 +00:00
joerg
4a202fc0c8 Add ftp as tool. On NetBSD and DragonFly, this will use the system
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-22 20:11:55 +00:00
joerg
65244e1c32 Move digest dependency into checksum and fetch part.
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-05-22 16:27:22 +00:00
joerg
caa9b2eebf Move handling of pkg_install version into flavor. Add an explicit
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@
2008-04-03 14:07:51 +00:00
wiz
a35121ac8e Remove outdated/non-existing mysql mirror sites. 2008-03-26 06:43:14 +00:00
xtraeme
5285714147 Add two spain mirrors to MASTER_SITE_KDE. 2008-02-21 11:52:21 +00:00
tnn
3abd1a38e8 Remove ftp.informatik.hu-berlin.de from MASTER_SITES_GNU since it doesn't
seem to support passive mode. From Alver on #pkgsrc
In it's place, add mirrors.kernel.org and ftp.sunet.se instead.
2008-02-03 22:23:30 +00:00
obache
2d70679191 Mirror site of sourceforge.jp, keihanna and globalbase come back. 2008-01-21 02:15:45 +00:00
ghen
9ec634a248 Update list of PostgreSQL mirrors, from:
http://wwwmaster.postgresql.org/download/mirrors-ftp

Include http mirrors.
2008-01-09 12:57:05 +00:00
obache
bfcf1f5783 Mirrors of SourceForgeJP seems changed, noticed by Zafer Aydogan in private mail.
+ jaist, iij
- keihanna, globalbase

Move round-robin host name to last, since it refers old mirros now.
2008-01-03 14:34:08 +00:00
obache
6456ebb5c8 Change MOZILLA master sites difinitions, related to PR 37379.
There are three types Mozilla mirrors.
(http://www.mozilla.org/mirroring.html)
 * mozilla-current
        contains only the current version of Firefox and Thunderbird
 * mozilla-release
        contains Firefox, Thunderbird, and Sunbird releases
 * mozilla-all
        complete archive

Define following variables for mozilla master sites:
        MASTER_SITE_MOZILLA_ALL = mozilla-all
        MASTER_SITE_MOZILLA     = mozilla-release
and change some packages to use appropriate variable.

Update contents of MASTER_SITE_MOZILLA with master and primary mirrors
taken from http://www.mozilla.org/mirrors.html and add some sample definitions.
2007-12-22 07:22:04 +00:00
obache
2a5240ee93 Removing '||' does not mean 'simpler' (hi rillig). 2007-12-16 02:51:24 +00:00
heinz
c500777638 Updated list of sourceforge mirrors according to
http://sourceforge.net/project/mirror_picker.php and sourceforge.jp
2007-12-11 19:55:06 +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
d493e10615 If a package defines FETCH_MESSAGE, show that instead of the generic
instructions.
2007-12-01 10:56:31 +00:00
rillig
67974dcb6a Added some variables for "bmake show-all-fetch". 2007-11-02 09:02:57 +00:00
rillig
6974a32cea Simpler .include lines. 2007-10-30 23:35:51 +00:00
rillig
6ae88c613d Made the code simpler and documented it. 2007-10-13 13:49:19 +00:00
xtraeme
9bc710da92 Move belnet sourceforge mirror to the last position, it's unreachable
for me.
2007-09-11 17:22:18 +00:00
joerg
4f84d697c2 If DISTDIR points to a non-existing location and a package has neither
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-09-06 20:54:53 +00:00
heinz
cd9a231f36 Removed mirror qgpop.dl.sourceforge.jp. It is not listed anymore on the
sourceforge.jp download pages and was not restored since this topic came
up in mid-July.
2007-08-19 19:16:58 +00:00
rillig
fca91bf3c4 Added a variable DEFAULT_DISTFILES that can be used when adding
distfiles to DISTFILES.
2007-08-16 07:42:53 +00:00
joerg
1024803ccc Checksum checks only make sense when distinfo is also present, so
move this into the conditional.
2007-08-14 14:19:19 +00:00
obache
1d2a0b073b Move ${DISTDIR} write permission check to just before really need to write.
Patch provided by Aleksej Saushev in PR 36473.
2007-08-04 15:00:29 +00:00
jlam
13157ce5e2 Teach mirror-distfiles to use emul-fetch if EMUL_PLATFORMS is defined so
that mirror sites will grab all of the distfiles, not just the ones that
are for the native platform.
2007-08-01 15:24:51 +00:00
joerg
ced3f13079 Don't depend on digest if FAILOVER_FETCH and NO_CHECKSUM are set
together.
2007-07-27 14:24:53 +00:00
heinz
e37c99a149 Updated list of sourceforge mirrors according to
http://sourceforge.net/project/mirror_picker.php.
2007-07-15 09:53:38 +00:00
obache
01b24d20c2 No need to pass "." as directory, it is default value. 2007-07-14 05:51:11 +00:00
obache
1fcc9dd138 Allow empty DIST_SUBDIR, need to fix PR 35494. 2007-07-14 05:45:35 +00:00
obache
7ca7b65ff4 Define some variables for using FETCH_CMD=wget. 2007-06-12 09:54:52 +00:00
obache
a22e60a21b Add two mirror servers for sourceforge.jp:
* IIJ
 * GLOBALBASE PROJECT
2007-06-11 08:17:54 +00:00
obache
22a6337ce1 Add ring servers to MASTER_SITE_TEX_CTAN. 2007-05-26 04:07:11 +00:00
wiz
db056fe3bc Remove some more outdated/broken mirror sites.
From Zafer Aydogan.
2007-05-23 23:48:52 +00:00
martti
8b869189b2 Remove trailing spaces. This will fix my problems with pkglint:
# pkglint -Wall
FATAL: ../../mk/fetch/sites.mk:56: Unknown line type.
2007-05-22 12:27:08 +00:00
wiz
00cb019610 Remove some outdated mirror sites. From Zafer Aydogan. 2007-05-21 22:42:22 +00:00
wiz
8bf04f2f48 Remove two mirror obsolete mirror sites, from Zafer Aydogan. 2007-05-20 08:54:36 +00:00
wiz
db449971c3 Remove gentoo mirror that does not resolve any longer. From Zafer Aydogan. 2007-05-20 08:53:40 +00:00
wiz
03fb57fcc5 Sync postgresql mirror list. 2007-05-20 08:52:29 +00:00
wiz
71203d2002 Remove two GNU ex-mirrors. 2007-03-04 10:53:17 +00:00
sketch
b1e7556614 The HTTP interface to ftp.fi.netbsd.org has a nasty 404 handler which results
in missing distfiles retrieving www.nic.funet.fi.file_not_found.html instead
of failing and carrying on to the next site.

Use FTP instead which does the right thing.
2007-02-09 15:33:19 +00:00
wiz
b9105fc685 Sync kde mirrors with reality a bit. 2007-01-27 06:32:37 +00:00
rillig
777113885f Backed out my previous change. The variable fetchdir needs to be a
relative path.

The error message nevertheless includes the full path.
2007-01-18 10:51:48 +00:00
rillig
39f6b30d1d It's more informative to use absolute pathnames in error messages than
just ".".
2007-01-10 14:31:35 +00:00
rillig
2edda5704a Better documentation for the "fetch" phase. 2007-01-02 17:54:32 +00:00
schmonz
a35f4e9517 Silence some longstanding noise in mail/qmail, caused by the fact
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-12-29 20:14:57 +00:00
wiz
6d85aa556d mirrors.cloud9.net: No address associated with hostname; remove it 2006-12-10 11:30:16 +00:00
wiz
a05c8b0444 wustl GNU mirror is gone. 2006-12-10 11:28:40 +00:00
jdolecek
ff7e8ffa0d set ORS to space for _MASTER_RAND_AWK, so that the output would be the
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-11-25 21:33:39 +00:00
jdolecek
6b73f1c417 MASTER_SITE_GNOME - add a .cz mirror 2006-11-25 14:46:50 +00:00
obache
d997a0a7b7 Remove http://openoffice.behrsolutions.com/ from MASTER_SITE_OPENOFFICE.
Suggested by Zafer Aydogan in PR 32111.
2006-11-12 12:10:46 +00:00
drochner
33ea4f3b88 add MASTER_SITE_GENTOO, from FreeBSD
cvs: ----------------------------------------------------------------------
2006-10-27 13:38:52 +00:00
dsainty
980d6a91d4 Add an (up to date!) HTTP mirror for KDE sources, the first HTTP site in the preferred list on http://download.kde.org. 2006-10-17 12:14:03 +00:00
mishka
0f000d2afb pkg/34695: Static list of package master sites may (and often will)
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-08 11:37:38 +00:00
rillig
ae06ae6696 Meta-packages that had DIST_SUBDIR set (for whatever reason) tried to
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-10-07 12:22:06 +00:00
salo
ede2607dbc Adjust MASTER_SITE_MOZILLA. 2006-09-25 14:13:17 +00:00
wiz
9d3304f7eb Update MASTER_SITES (mirror.switch.ch).
From Jukka Salmi in PR 34457.
2006-09-03 10:21:52 +00:00
obache
ee65247b9c Added http://qgpop.dl.sourceforge.jp/ in MASTER_SITE_SOURCEFORGE_JP. 2006-09-02 15:10:38 +00:00
obache
5624d01004 SUNSITE in Tokyo University of Science has been closed,
so remove sunsite.{tus,sut}.ac.jp
2006-09-02 09:07:03 +00:00
obache
a76da5187a Canonical name of SourceForge.jp's DNS round robin download server is
`download', not `downloads'.
2006-09-02 08:13:07 +00:00
perry
132c931981 add an http: urls for gnome and gnu for the benefit of those with
broken ftp proxies
2006-08-06 04:56:50 +00:00
jlam
f3381a1115 Typo in comment. 2006-08-03 14:02:58 +00:00
tron
03fcef2986 Removed dead mirror "ftp.uk.kde.org" from list of KDE master sites. 2006-08-02 15:31:02 +00:00
uebayasi
7e4fbabf50 http://prdownloads.sourceforge.jp/ doesn't work for me. Remove it. 2006-08-02 07:09:52 +00:00
jlam
c489860d62 Whenever we invoke a recursive make, we need to ensure that the proper
environment ${PKGSRC_MAKE_ENV} is also passed along.  Create a
convenience variable RECURSIVE_MAKE that does exactly this and that
can be used in place of MAKE when invoking make recursively.

Use RECURSIVE_MAKE everywhere in pkgsrc/mk that we invoke make
recursively.
2006-07-27 21:46:45 +00:00
jlam
ccdf6dbe01 Rename "SITES_* to "SITES.*" for file-specific lists of sites from which
to fetch the file.  This completes the renaming described in revision
1.1799 of bsd.pkg.mk.
2006-07-27 18:48:02 +00:00
jlam
182dc839b5 Document the targets in fetch-list.mk. 2006-07-27 17:29:57 +00:00
jlam
1796f4ff8a Note that "fetch-list" is a public target. 2006-07-27 17:28:38 +00:00
jlam
bac7fb376d Remove an unnecessary recursive make invocation. 2006-07-27 17:23:16 +00:00
jlam
cb7b7bfbd8 Replace this:
for i in `cmd`; do ...; done

with this:

	cmd | while read i; do ...; done
2006-07-27 17:14:56 +00:00
jlam
817fd9ec0d All of the other *SITES* variables are plural, so rename DYNAMIC_SITE_*
to DYNAMIC_SITES_* for consistency.
2006-07-27 16:06:27 +00:00
jlam
e7af7b2e05 Apply the "convention over configuration" principle:
If ${FILESDIR}/getsite.sh exists, then use it to determine the fetch
URL for each of the distfiles for the package.  Otherwise, use
SITE_<file> and MASTER_SITES, in order, to determine the URL for each
distfile.

If the script path differs from ${FILESDIR}/getsite.sh, then set
DYNAMIC_SITE_SCRIPT to the full path to that script.

Remove the need to set DYNAMIC_MASTER_SITES explicitly in the package
Makefile for:

	graphics/ns-cult3d
	wm/sawfish-themes
	www/apache-tomcat55
	www/jakarta-tomcat4
	www/jakarta-tomcat5
2006-07-27 15:16:44 +00:00
jlam
d5f750aa08 The ORDERED_SITES variable defined in fetch.mk was made private in
revision 1.14, so reflect that in the usage in fetch-list.mk.  This
fixes PR pkg/34075.
2006-07-27 13:51:21 +00:00
rillig
ac35deefb7 Documented DIST_PATH and fixed two typos (${TARGET} is not ${.TARGET}). 2006-07-27 07:41:40 +00:00
wiz
078ec42655 Remove mirrors.sunsite.dk because it causes hangs in the
weekly distfiles fetch.
2006-07-23 14:11:52 +00:00
wiz
0b9a3594c5 Remove cran.dk -- causes hangs for weekly distfiles mirror job. 2006-07-23 13:28:14 +00:00
joerg
eeaca99630 verify_file() returns a non-zero result whenever the distfile does not
currently exist. This triggers a bug in the Bourne shell of at least
DragonFly and Irix, when set -e is also active. Remove set -e to avoid
this. Discussed with jlam@, shown by DragonFly bulk builds, complains on
DragonFly's user list and PR 34036.

A test case for this shell bug is, which should return 0:

set -e

testf () {
	test -f /nonexistent || return 1
	return 0
}

if testf; then
	exit 1
fi
exit 0
2006-07-20 13:31:08 +00:00
jlam
c88a32be7d Make "mirror-distfiles" less verbose by not printing out anything if no
bootstrap dependencies need to be built and installed.
2006-07-19 16:01:40 +00:00
jlam
ec6f4ba413 Comment the code a bit more. 2006-07-19 15:13:40 +00:00
jlam
ae7cf87ca5 Only pass -v to the fetch script if PKG_VERBOSE is set. 2006-07-19 14:25:59 +00:00
jlam
cbcfa6d0b5 Restore original quoting from old fetch.mk for _ORDERED_SITES to resolve
the problem with MASTER_SORT*.

XXX The whole MASTER_SORT* thing should just be a standalone script.
2006-07-19 14:22:47 +00:00
jlam
2936f01adf Add a verbose flag to the fetch script to output the actual fetch command. 2006-07-19 14:16:29 +00:00
jlam
d2df49806c Make some variables "private":
MASTER_SORT_AWK
	SORT_SITES_CMD
	ORDERED_SITES

These variables are purely internal to pkgsrc.
2006-07-19 14:03:59 +00:00
jlam
16335bb8a4 Work around incomprehensible quoting mess surrounding MASTER_SORT* by
in do-fetch-file (formerly they were inserted by the old _FETCH_FILE
inserting some quotes that are no longer added by the fetch command list
macro).  This makes fetching with MASTER_SORT* set work again.
2006-07-19 14:01:29 +00:00
jlam
1302d118e8 PASSIVE_FETCH only affects "ftp", so move it to the ftp-related FETCH_*
variables.
2006-07-19 13:33:42 +00:00
jlam
4c09a7046a Convert _FETCH_MESSAGE to plain old FETCH_MESSAGE. Remove _FETCH_MESSAGE
processing from mk/fetch/*.mk.
2006-07-18 23:27:14 +00:00
jlam
833691e2fe Overhaul fetch module:
* 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-18 22:41:06 +00:00
jlam
e65b7c1371 First cut at a fetch script to replace the humungous fetch "macros" in
fetch.mk.  This script currently completely replaces the functionality
in _FETCH_FILE.  I will eventually add the ability to resume a file
transfer to this script.
2006-07-17 15:34:22 +00:00
schmonz
0a53ed9007 Remove duplicate files from ${ALLFILES}. This doesn't affect the
"fetch" target, but it does affect the "checksum" target's shell
script, which errors out on the second occurrence of a file. The
shell script should perhaps also be fixed, but it seems sensible
regardless for ${ALLFILES} not to contain duplicate filenames. As
a side effect, the file list is sorted.

Regression found by building mail/qmail with the "qmail-netqmail"
option, which adds to PATCHFILES a file that's already in ${DISTFILES}.
Arguably this is gross, but it worked before, and now works again.

Tested on my usual pkg_comp(8) build of 200+ packages, with an
initially empty ${DISTDIR} and ${PACKAGES}. Thanks seb@ for the
more idiomatic make(1) construction.
2006-07-17 02:13:11 +00:00
rillig
2221827892 Split the variable BUILD_DEFS into those that are defined by packages
and those that are defined by the infrastructure (_BUILD_DEFS). This
allows the build-defs-message target to be moved to the end of
bsd.pkg.mk. Now it prints the correct result even in unprivileged
builds, which had been wrong due to the order in which the files have
been included. For example, ${UNPRIVILEGED_USER} was displayed as (not
defined) although its value was defined, which could be checked with
"bmake show-var".

Tested with one package that _does_ define BUILD_DEFS and with one that
doesn't. The behavior stays the same.
2006-07-15 23:58:52 +00:00
jlam
b532d92d10 DIGEST is no longer defined, so use TOOLS_DIGEST instead. 2006-07-13 15:23:18 +00:00
jlam
7a2c97d53f * Add a new stage "bootstrap-depends" that happens before all other
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-07-13 14:02:34 +00:00
rillig
1dd9c5c90e Removed the leading "-" of a shell command. The unexpected error message
that it had produced had confused me.
2006-07-12 12:34:13 +00:00
jlam
990d0b5377 Make the check-vulnerable target more self-sufficient, by moving some
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-07-05 09:08:35 +00:00
jdolecek
d35e963055 add .cz KDE mirror 2006-06-25 18:02:38 +00:00
tron
be3eaae91c Remove "apache.towardex.com" (down) and "sunsite.tus.ac.jp" (redirects
to new version) from the list of Apache master sites.
2006-06-23 07:45:49 +00:00
jlam
8f71bbc4ec If FAILOVER_FETCH is defined, then we need the digest binary to already
be installed, so let uptodate-digest do that crazy thing it does.
2006-06-20 14:54:03 +00:00
jlam
fce460b04b Fix FAILOVER_FETCH usage to actually match documentation -- it's
supposed to be just defined/undefined, but was previously being used
as non-empty/emtpy.
2006-06-20 14:50:27 +00:00
jlam
3058ace76f Move some variable definitions out of bsd.prefs.mk and back into
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-06 15:28:51 +00:00
jlam
4a1c92e775 Improve the warning message if the vulnerabilities file is not found. 2006-06-06 03:36:00 +00:00
jlam
eee5c6a41f Add documentation about which are the public targets for the fetch module. 2006-06-06 03:35:42 +00:00
jlam
c78510391e Refactor "fetch" and "extract" code into correspondingly named
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.
2006-06-06 03:05:48 +00:00