Provide a canonical example for how to state "the distfiles for this port
must be fetched manually".
This commit is contained in:
parent
6c44675698
commit
10c4163717
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=38009
1 changed files with 16 additions and 0 deletions
|
@ -4698,6 +4698,22 @@ PORTVERSION= 1.0</programlisting>
|
|||
<filename>/usr/ports/LEGAL</filename> for every listed distribution
|
||||
file, describing exactly what the restriction entails.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Examples</title>
|
||||
|
||||
<para>The preferred way to state "the distfiles for this port must be
|
||||
fetched manually" is as follows:<programlisting>
|
||||
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
||||
IGNORE= may not be redistributed because of licensing reasons. Please visit <replaceable>some-website</replaceable> to accept their license and download ${DISTFILES} into ${DISTDIR}
|
||||
.endif</programlisting></para>
|
||||
|
||||
<para>This both informs the user, and sets the proper metadata on
|
||||
the user's machine for use by automated programs.</para>
|
||||
|
||||
<para>Note that this stanza must be preceded by an inclusion
|
||||
of <filename>bsd.port.pre.mk</filename>.</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="building">
|
||||
|
|
Loading…
Reference in a new issue