summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-05-19 13:42:51 +0000
committerobache <obache@pkgsrc.org>2014-05-19 13:42:51 +0000
commit4b627722f5f1ce215fb54e3792c265f576a27043 (patch)
treea7a36176e954c46abdc4f8f9e584ba0e6c16e822 /doc/guide
parentc7e5d6ab0d21fbe95b1b798797603896befa60d0 (diff)
downloadpkgsrc-4b627722f5f1ce215fb54e3792c265f576a27043.tar.gz
describle for what MASTER_SITES starting with dash is used.
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/files/build.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/guide/files/build.xml b/doc/guide/files/build.xml
index fa9914bde92..0c7aab15490 100644
--- a/doc/guide/files/build.xml
+++ b/doc/guide/files/build.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: build.xml,v 1.66 2014/05/19 13:16:56 obache Exp $ -->
+<!-- $NetBSD: build.xml,v 1.67 2014/05/19 13:42:51 obache Exp $ -->
<chapter id="build">
<title>The build process</title>
@@ -300,7 +300,15 @@ MASTER_SITES= http://www.example.com/download.cgi?file=
<para> The exception to this rule are URLs starting with a dash.
In that case the URL is taken as is, fetched and the result stored
- under the name of the distfile.</para>
+ under the name of the distfile.
+ You can use this style for the case download URL style does not
+ match to above usuall case.
+ For example, permanent download URL is a redirecter to real download URL,
+ or download file name is offerd by HTTP Content-Disposition header.</para>
+
+<programlisting>
+MASTER_SITES= -http://www.example.com/archive/v1.0.0
+</programlisting>
<para>There are some predefined values for
<varname>MASTER_SITES</varname>, which can be used in