|
Lines 318-324
Link Here
|
| 318 |
Ports Collection's built-in search mechanism. To use the |
318 |
Ports Collection's built-in search mechanism. To use the |
| 319 |
search feature, you will need to be in the |
319 |
search feature, you will need to be in the |
| 320 |
<filename>/usr/ports</filename> directory. Once in that |
320 |
<filename>/usr/ports</filename> directory. Once in that |
| 321 |
directory, run <command>make search |
321 |
directory, run <command>make <maketarget>search</maketarget> |
| 322 |
name=<replaceable>program-name</replaceable></command> where |
322 |
name=<replaceable>program-name</replaceable></command> where |
| 323 |
<replaceable>program-name</replaceable> is the name of the |
323 |
<replaceable>program-name</replaceable> is the name of the |
| 324 |
program you want to find. For example, if you were looking |
324 |
program you want to find. For example, if you were looking |
|
Lines 341-347
Link Here
|
| 341 |
will not be covered here.</para> |
341 |
will not be covered here.</para> |
| 342 |
|
342 |
|
| 343 |
<para>For more in-depth searching you can also use <command>make |
343 |
<para>For more in-depth searching you can also use <command>make |
| 344 |
search key=<replaceable>string</replaceable></command> where |
344 |
<maketarget>search</maketarget> |
|
|
345 |
key=<replaceable>string</replaceable></command> where |
| 345 |
<replaceable>string</replaceable> is some text to search for. |
346 |
<replaceable>string</replaceable> is some text to search for. |
| 346 |
This searches port names, comments, descriptions and |
347 |
This searches port names, comments, descriptions and |
| 347 |
dependencies and can be used to find ports which relate to a |
348 |
dependencies and can be used to find ports which relate to a |
|
Lines 946-952
Link Here
|
| 946 |
returned to your prompt. The next step is to install the |
947 |
returned to your prompt. The next step is to install the |
| 947 |
port. In order to install it, you simply need to tack one word |
948 |
port. In order to install it, you simply need to tack one word |
| 948 |
onto the <command>make</command> command, and that word is |
949 |
onto the <command>make</command> command, and that word is |
| 949 |
<command>install</command>:</para> |
950 |
<maketarget>install</maketarget>:</para> |
| 950 |
|
951 |
|
| 951 |
<screen>&prompt.root; <userinput>make install</userinput> |
952 |
<screen>&prompt.root; <userinput>make install</userinput> |
| 952 |
===> Installing for lsof-4.57 |
953 |
===> Installing for lsof-4.57 |
|
Lines 981-989
Link Here
|
| 981 |
|
982 |
|
| 982 |
<note> |
983 |
<note> |
| 983 |
<para>You can save two extra steps by just running <command>make |
984 |
<para>You can save two extra steps by just running <command>make |
| 984 |
install clean</command> instead of <command>make</command>, |
985 |
<maketarget>install clean</maketarget></command> instead of |
| 985 |
<command>make install</command> and <command>make clean</command> |
986 |
<command>make</command>, <command>make |
| 986 |
as three separate steps.</para> |
987 |
<maketarget>install</maketarget></command> and <command>make |
|
|
988 |
<maketarget>clean</maketarget></command> as three separate |
| 989 |
steps.</para> |
| 987 |
</note> |
990 |
</note> |
| 988 |
|
991 |
|
| 989 |
<note> |
992 |
<note> |
|
Lines 1042-1048
Link Here
|
| 1042 |
<note><para>You can build all the ports in a category or as a |
1045 |
<note><para>You can build all the ports in a category or as a |
| 1043 |
whole by running <command>make</command> in the top level |
1046 |
whole by running <command>make</command> in the top level |
| 1044 |
directory, just like the aforementioned <command>make |
1047 |
directory, just like the aforementioned <command>make |
| 1045 |
<makevar>fetch</makevar></command> method. This is |
1048 |
<maketarget>fetch</maketarget></command> method. This is |
| 1046 |
dangerous, however, as some ports cannot co-exist. In other |
1049 |
dangerous, however, as some ports cannot co-exist. In other |
| 1047 |
cases, some ports can install two different files with the |
1050 |
cases, some ports can install two different files with the |
| 1048 |
same filename.</para></note> |
1051 |
same filename.</para></note> |
|
Lines 1128-1142
Link Here
|
| 1128 |
It is not uncommon for users to wish to revisit this menu to add, |
1131 |
It is not uncommon for users to wish to revisit this menu to add, |
| 1129 |
remove, or change these options after a port has been built. There |
1132 |
remove, or change these options after a port has been built. There |
| 1130 |
are many ways to do this. One option is to go into the directory |
1133 |
are many ways to do this. One option is to go into the directory |
| 1131 |
containing the port and type <command>make</command> |
1134 |
containing the port and type <command>make |
| 1132 |
<maketarget>config</maketarget>, which will simply present the menu |
1135 |
<maketarget>config</maketarget></command>, which will simply present |
| 1133 |
again with the same options selected. Another option is to use |
1136 |
the menu again with the same options selected. Another option is to |
| 1134 |
<command>make</command> <maketarget>showconfig</maketarget> which |
1137 |
use <command>make <maketarget>showconfig</maketarget></command> which |
| 1135 |
will show you all the configuration options for the port. Yet |
1138 |
will show you all the configuration options for the port. Yet |
| 1136 |
another option is to execute <command>make</command> |
1139 |
another option is to execute <command>make |
| 1137 |
<maketarget>rmconfig</maketarget> which will remove all selected |
1140 |
<maketarget>rmconfig</maketarget></command> which will remove all |
| 1138 |
options and allow you to start over. All of these options, and |
1141 |
selected options and allow you to start over. All of these options, |
| 1139 |
others, are explained in great detail in in the man page for |
1142 |
and others, are explained in great detail in in the man page for |
| 1140 |
&man.ports.7;.</para> |
1143 |
&man.ports.7;.</para> |
| 1141 |
</sect3> |
1144 |
</sect3> |
| 1142 |
</sect2> |
1145 |
</sect2> |
|
Lines 1200-1207
Link Here
|
| 1200 |
<para>The <application>portupgrade</application> utility is designed |
1203 |
<para>The <application>portupgrade</application> utility is designed |
| 1201 |
to easily upgrade installed ports. It is available from the <filename |
1204 |
to easily upgrade installed ports. It is available from the <filename |
| 1202 |
role="package">ports-mgmt/portupgrade</filename> port. Install it like |
1205 |
role="package">ports-mgmt/portupgrade</filename> port. Install it like |
| 1203 |
any other port, using the <command>make <makevar>install |
1206 |
any other port, using the <command>make <maketarget>install |
| 1204 |
clean</makevar></command> command:</para> |
1207 |
clean</maketarget></command> command:</para> |
| 1205 |
|
1208 |
|
| 1206 |
<screen>&prompt.root; <userinput>cd /usr/ports/ports-mgmt/portupgrade</userinput> |
1209 |
<screen>&prompt.root; <userinput>cd /usr/ports/ports-mgmt/portupgrade</userinput> |
| 1207 |
&prompt.root; <userinput>make install clean</userinput></screen> |
1210 |
&prompt.root; <userinput>make install clean</userinput></screen> |
|
Lines 1267-1275
Link Here
|
| 1267 |
confirmation of every step <application>Portmanager</application> |
1270 |
confirmation of every step <application>Portmanager</application> |
| 1268 |
will perform. <application>Portmanager</application> can also be |
1271 |
will perform. <application>Portmanager</application> can also be |
| 1269 |
used to install new ports on the system. Unlike the usual |
1272 |
used to install new ports on the system. Unlike the usual |
| 1270 |
<command>make install clean</command> command, it will upgrade all |
1273 |
<command>make <maketarget>install clean</maketarget></command> command, |
| 1271 |
the dependencies prior to building and installing the |
1274 |
it will upgrade all the dependencies prior to building and installing |
| 1272 |
selected port.</para> |
1275 |
the selected port.</para> |
| 1273 |
|
1276 |
|
| 1274 |
<screen>&prompt.root; <userinput>portmanager <replaceable>x11/gnome2</replaceable></userinput></screen> |
1277 |
<screen>&prompt.root; <userinput>portmanager <replaceable>x11/gnome2</replaceable></userinput></screen> |
| 1275 |
|
1278 |
|
|
Lines 1385-1393
Link Here
|
| 1385 |
<para>Using the Ports Collection will use up disk |
1388 |
<para>Using the Ports Collection will use up disk |
| 1386 |
space over time. After building and installing software from the |
1389 |
space over time. After building and installing software from the |
| 1387 |
ports, you should always remember to clean up |
1390 |
ports, you should always remember to clean up |
| 1388 |
the temporary <filename class="directory">work</filename> directories using the <command>make |
1391 |
the temporary <filename class="directory">work</filename> directories using the |
| 1389 |
<makevar>clean</makevar></command> command. You can sweep the whole |
1392 |
<command>make <maketarget>clean</maketarget></command> command. You can sweep |
| 1390 |
Ports Collection with the following command:</para> |
1393 |
the whole Ports Collection with the following command:</para> |
| 1391 |
|
1394 |
|
| 1392 |
<screen>&prompt.root; <userinput>portsclean -C</userinput></screen> |
1395 |
<screen>&prompt.root; <userinput>portsclean -C</userinput></screen> |
| 1393 |
|
1396 |
|
|
Lines 1503-1510
Link Here
|
| 1503 |
|
1506 |
|
| 1504 |
<listitem> |
1507 |
<listitem> |
| 1505 |
<para>Ask the maintainer of the port for help. Type |
1508 |
<para>Ask the maintainer of the port for help. Type |
| 1506 |
<command>make maintainer</command> or read the |
1509 |
<command>make <maketarget>maintainer</maketarget></command> |
| 1507 |
<filename>Makefile</filename> to find the maintainer's |
1510 |
or read the <filename>Makefile</filename> to find the maintainer's |
| 1508 |
email address. Remember to include the name and version |
1511 |
email address. Remember to include the name and version |
| 1509 |
of the port (send the <literal>$FreeBSD:</literal> |
1512 |
of the port (send the <literal>$FreeBSD:</literal> |
| 1510 |
line from the <filename>Makefile</filename>) and the |
1513 |
line from the <filename>Makefile</filename>) and the |