Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143933766
D21609.id62148.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D21609.id62148.diff
View Options
Index: head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
===================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
+++ head/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml
@@ -1313,6 +1313,24 @@
like with <application>Poudriere</application>, remember to
run <command>make clean</command> before any testing.</para>
</example>
+
+ <example xml:id="go-ex2">
+ <title>Setting Output Binary Name or Installation Path</title>
+
+ <para>Some ports need to install the resulting binary under a
+ different name or to a path other than
+ the default <literal>${PREFIX}/bin</literal>. This can be
+ done by using <varname>GO_TARGET</varname> tuple syntax,
+ for example:</para>
+ <programlisting>GO_TARGET= ./cmd/ipfs:ipfs-go</programlisting>
+
+ <para>will install <literal>ipfs</literal> binary as
+ <literal>${PREFIX}/bin/ipfs-go</literal> and</para>
+ <programlisting>GO_TARGET= ./dnscrypt-proxy:${PREFIX}/sbin/dnscrypt-proxy</programlisting>
+
+ <para>will install <literal>dnscrypt-proxy</literal> to
+ <literal>${PREFIX}/sbin</literal>.</para>
+ </example>
</sect2>
</sect1>
Index: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
===================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
+++ head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
@@ -1168,17 +1168,14 @@
<term><varname>GO_PKGNAME</varname></term>
<listitem>
- <para>The name of the <application>Go</application> package.
- When building in GOPATH mode, this is the directory that
- will be created in <literal>${GOPATH}/src</literal> and
- seen by the <command>go</command>. When building in
- modules-aware mode, no GOPATH directories will be created
- and <varname>GO_PKGNAME</varname> value will be only used
- as a default for <varname>GO_TARGET</varname>. If not set
- explicitly and <varname>GH_SUBDIR</varname> is present,
- <varname>GO_PKGNAME</varname> value will be inferred from
- <varname>${GH_SUBDIR}</varname>, otherwise it will be set
- to <varname>${PORTNAME}</varname>.</para>
+ <para>The name of the <application>Go</application> package
+ when building in GOPATH mode. This is the directory that
+ will be created in <literal>${GOPATH}/src</literal>. If
+ not set explicitly and <varname>GH_SUBDIR</varname> or
+ <varname>GL_SUBDIR</varname> is present,
+ <varname>GO_PKGNAME</varname> will be inferred from it.
+ It is not needed when building in modules-aware
+ mode.</para>
</listitem>
</varlistentry>
@@ -1186,8 +1183,12 @@
<term><varname>GO_TARGET</varname></term>
<listitem>
- <para>The name of the packages to build. The default
- value is <varname>${GO_PKGNAME}</varname>.</para>
+ <para>The packages to build. The default
+ value is <varname>${GO_PKGNAME}</varname>.
+ <varname>GO_TARGET</varname> can also be a tuple in the
+ form <literal>package:path</literal> where path can be
+ either a simple filename or a full path starting with
+ <literal>${PREFIX}</literal>.</para>
</listitem>
</varlistentry>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 3, 5:03 AM (10 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28421222
Default Alt Text
D21609.id62148.diff (3 KB)
Attached To
Mode
D21609: The porter's handbook Go chapter: update for D21562
Attached
Detach File
Event Timeline
Log In to Comment