blob: 61a97a08a9bfe31e4a298cff6a12bbe2a0fdab6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
LINKFARM(1) NetBSD General Commands Manual LINKFARM(1)
NNAAMMEE
lliinnkkffaarrmm - manage symbolic links to package files
SSYYNNOOPPSSIISS
lliinnkkffaarrmm [--ccDDnnRRVVvv] [--dd _s_t_o_w_d_i_r] [--ss _s_u_b_d_i_r] [--tt _t_a_r_g_e_t] _p_a_c_k_a_g_e
DDEESSCCRRIIPPTTIIOONN
The lliinnkkffaarrmm command is used to manage a "linkfarm", a directory tree of
symbolic links in _t_a_r_g_e_t to the files in the _p_a_c_k_a_g_e sub-directory of
_s_t_o_w_d_i_r. The default action is to create a linkfarm to a package.
The following command-line options are supported:
--cc Check whether a package contains a linkfarm in _t_a_r_g_e_t. If
_p_a_c_k_a_g_e has no symbolic links in _t_a_r_g_e_t that correspond to its
files, then return 0, otherwise return 1.
--DD Delete the linkfarm for _p_a_c_k_a_g_e.
--dd _s_t_o_w_d_i_r
Set _s_t_o_w_d_i_r as the directory in which _p_a_c_k_a_g_e can be found. The
default _s_t_o_w_d_i_r is the _p_a_c_k_a_g_e_s sub-directory in the default
_t_a_r_g_e_t directory.
--nn Don't actually execute the commands for removing and creating the
symbolic links and directories.
--RR Delete and re-create the linkfarm for _p_a_c_k_a_g_e.
--ss _s_u_b_d_i_r
The root of the package hierarchy for the linkfarm is the _s_u_b_d_i_r
sub-directory in the package. By default, assume the root of the
package hierarchy is simply the _p_a_c_k_a_g_e directory.
--tt _t_a_r_g_e_t
Set _t_a_r_g_e_t as the directory in which to create and delete the
linkfarm for _p_a_c_k_a_g_e. The default _t_a_r_g_e_t directory is _/_u_s_r_/_p_k_g
but may be overridden by the LOCALBASE environment variable.
--VV Print version number and exit.
--vv Turn on verbose output. Specifying --vv multiple times increases
the level of verbosity.
EENNVVIIRROONNMMEENNTT
LOCALBASE
The standard packages directory, _/_u_s_r_/_p_k_g, can be overridden by
specifying an alternative directory in the LOCALBASE environment
variable. This affects the default _t_a_r_g_e_t and _s_t_o_w_d_i_r directo-
ries.
PLIST_IGNORE_FILES
This can be used to specify files in _p_a_c_k_a_g_e that should ignored
when creating and deleting symbolic links in _t_a_r_g_e_t.
PLIST_IGNORE_FILES is a space-separated list of shell glob pat-
terns that match files relative to the _p_a_c_k_a_g_e directory, and it
defaults to "info/dir *[~#] *.OLD *.orig *,v".
SSEEEE AALLSSOO
lndir(1), pkg_view(1)
AAUUTTHHOORRSS
The lliinnkkffaarrmm utility was written by Alistair G. Crooks <agc@NetBSD.org>.
NetBSD 1.6 September 2, 2003 NetBSD 1.6
|