summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/files/view/pkg_view.cat1
blob: fd92de5c64b1aafd462f4f975e71b1d73ad28f9b (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
PKG_VIEW(1)             NetBSD General Commands Manual             PKG_VIEW(1)

NNAAMMEE
     ppkkgg__vviieeww - add and delete instances of depoted packages in views

SSYYNNOOPPSSIISS
     ppkkgg__vviieeww [--nnVVvv] [--dd _s_t_o_w_d_i_r] [--ii _i_g_n_o_r_e] [--kk _p_k_g___d_b_d_i_r] [--WW _v_i_e_w_b_a_s_e]
              [--ww _v_i_e_w] _c_o_m_m_a_n_d _p_a_c_k_a_g_e _._._.

DDEESSCCRRIIPPTTIIOONN
     The ppkkgg__vviieeww command is used to add and delete instances of depoted pack-
     ages in _s_t_o_w_d_i_r in a _v_i_e_w in the _v_i_e_w_b_a_s_e directory.

WWAARRNNIINNGG
     _S_i_n_c_e _t_h_e ppkkgg__vviieeww _c_o_m_m_a_n_d _m_a_y _e_x_e_c_u_t_e _s_c_r_i_p_t_s _o_r _p_r_o_g_r_a_m_s _p_r_o_v_i_d_e_d _b_y _a
     _p_a_c_k_a_g_e _f_i_l_e_, _y_o_u_r _s_y_s_t_e_m _m_a_y _b_e _s_u_s_c_e_p_t_i_b_l_e _t_o _`_`_T_r_o_j_a_n _h_o_r_s_e_s_'_' _o_r
     _o_t_h_e_r _s_u_b_t_l_e _a_t_t_a_c_k_s _f_r_o_m _m_i_s_c_r_e_a_n_t_s _w_h_o _c_r_e_a_t_e _d_a_n_g_e_r_o_u_s _p_a_c_k_a_g_e _f_i_l_e_s_.

     _Y_o_u _a_r_e _a_d_v_i_s_e_d _t_o _v_e_r_i_f_y _t_h_e _c_o_m_p_e_t_e_n_c_e _a_n_d _i_d_e_n_t_i_t_y _o_f _t_h_o_s_e _w_h_o _p_r_o_-
     _v_i_d_e _i_n_s_t_a_l_l_a_b_l_e _p_a_c_k_a_g_e _f_i_l_e_s_.  _F_o_r _e_x_t_r_a _p_r_o_t_e_c_t_i_o_n_, _e_x_a_m_i_n_e _a_l_l _t_h_e
     _p_a_c_k_a_g_e _c_o_n_t_r_o_l _f_i_l_e_s _i_n _t_h_e _p_a_c_k_a_g_e _d_a_t_a_b_a_s_e _d_i_r_e_c_t_o_r_y
     _(_/_u_s_r_/_p_k_g_/_p_a_c_k_a_g_e_s_/_<_p_k_g_-_n_a_m_e_>_/_)_.  _P_a_y _p_a_r_t_i_c_u_l_a_r _a_t_t_e_n_t_i_o_n _t_o _a_n_y
     _+_I_N_S_T_A_L_L_, _+_D_E_I_N_S_T_A_L_L_, _+_R_E_Q_U_I_R_E _o_r _+_M_T_R_E_E___D_I_R_S _f_i_l_e_s_, _a_n_d _i_n_s_p_e_c_t _t_h_e
     _+_C_O_N_T_E_N_T_S _f_i_l_e _f_o_r @@ccwwdd_, @@mmooddee _(_c_h_e_c_k _f_o_r _s_e_t_u_i_d_)_, @@ddiirrrrmm_, @@eexxeecc_, _a_n_d
     @@uunneexxeecc _d_i_r_e_c_t_i_v_e_s_, _a_n_d_/_o_r _u_s_e _t_h_e pkg_info(_1) _c_o_m_m_a_n_d _t_o _e_x_a_m_i_n_e _t_h_e
     _i_n_s_t_a_l_l_e_d _p_a_c_k_a_g_e _c_o_n_t_r_o_l _f_i_l_e_s_.

OOPPTTIIOONNSS
     The following command-line options are supported:

     --dd _s_t_o_w_d_i_r
             Set _s_t_o_w_d_i_r as the directory in which the depoted packages can be
             found.  If this option isn't specified, then the _s_t_o_w_d_i_r is taken
             from the value of the environment variable DEPOTBASE if it's set,
             otherwise the default _s_t_o_w_d_i_r is the path to the _p_a_c_k_a_g_e_s direc-
             tory under _v_i_e_w_b_a_s_e.

     --ii _i_g_n_o_r_e
             Add _i_g_n_o_r_e to the list of files in _p_a_c_k_a_g_e that should ignored
             when adding or removing the package instance from _v_i_e_w.

     --kk _p_k_g___d_b_d_i_r
             Set _p_k_g___d_b_d_i_r as the package database directory for the default
             (empty) view.  If this option isn't specified, then the package
             database directory is taken from the value of the environment
             variable PKG_DBDIR, otherwise it defaults to _/_v_a_r_/_d_b_/_p_k_g.

     --nn      Don't actually execute the commands for manipulating the package
             instances.

     --VV      Print the version number and exit.

     --vv      Turn on verbose output.  Specifying --vv multiple times increases
             the level of verbosity.

     --WW _v_i_e_w_b_a_s_e
             Set _v_i_e_w_b_a_s_e as the directory in which all the views are managed.
             The default _v_i_e_w_b_a_s_e directory is _/_u_s_r_/_p_k_g but may be overridden
             by the LOCALBASE environment variable.

     --ww _v_i_e_w
             Set _v_i_e_w as the directory in _v_i_e_w_b_a_s_e in which the package
             instances should be added or deleted.  The default _v_i_e_w is the
             empty view but may be overridden by the PKG_VIEW environment
             variable.

     The following commands are supported:

     aadddd     Add the listed package instances into _v_i_e_w.

     cchheecckk   Check whether the listed package instances are present in _v_i_e_w.
             If they are not present, then return 0, otherwise return 1.

     ddeelleettee  Delete the listed package instances from _v_i_e_w.

EENNVVIIRROONNMMEENNTT
     DEPOTBASE
             This is the location of the _s_t_o_w_d_i_r directory inside which all
             depoted packages are kept.  The default _s_t_o_w_d_i_r is the _p_a_c_k_a_g_e_s
             directory under _v_i_e_w_b_a_s_e.

     LOCALBASE
             This is the location of the _v_i_e_w_b_a_s_e directory in which all the
             views are managed.  The default _v_i_e_w_b_a_s_e directory is _/_u_s_r_/_p_k_g.

     PKG_DBDIR
             If the --kk flag isn't given, then the value of the environment
             variable PKG_DBDIR is the package database directory for the
             default view, otherwise it defaults to _/_v_a_r_/_d_b_/_p_k_g.

     PLIST_IGNORE_FILES
             This can be used to specify files in _p_a_c_k_a_g_e that should ignored
             when adding or removing the package instance from _v_i_e_w.
             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 depot directory,
             and it defaults to "info/dir *[~#] *.OLD *.orig *,v".  This is
             overridden by any _PLIST_IGNORE_FILES setting in a package's
             _b_u_i_l_d_-_i_n_f_o_-_f_i_l_e (see pkg_create(1)) if it exists.

     PKG_VIEW
             The default view can be specified in the PKG_VIEW environment
             variable.

FFIILLEESS
     <pkg-dbdir>/<package>/+INSTALL
             If the package contains an _i_n_s_t_a_l_l script (see pkg_create(1)),
             then after the package instance is added into a view, the script
             is executed with the following arguments:

             _p_a_c_k_a_g_e  The name of the package instance being added.

             VVIIEEWW--IINNSSTTAALLLL
                      Keyword denoting that the script is to perform any
                      actions needed after the package instance is added to a
                      view.

             If the _i_n_s_t_a_l_l script exits with a non-zero status code, the
             installation is terminated.

     <pkg-dbdir>/<package>/+DEINSTALL
             If the package contains an _d_e_i_n_s_t_a_l_l script (see pkg_create(1)),
             then before the package instance is deleted from a view, the
             script is executed with the following arguments:

             _p_a_c_k_a_g_e  The name of the package instance being deleted.

             VVIIEEWW--DDEEIINNSSTTAALLLL
                      Keyword denoting that the script is to perform any
                      actions needed before the package instance is deleted
                      from a view.

             If the _d_e_i_n_s_t_a_l_l script exits with a non-zero status code, the
             de-installation is terminated.

     The _i_n_s_t_a_l_l and _d_e_i_n_s_t_a_l_l scripts are called with the environment vari-
     able PKG_PREFIX set to the path to the _v_i_e_w directory.

SSEEEE AALLSSOO
     linkfarm(1), pkg_delete(1)

AAUUTTHHOORRSS
     The ppkkgg__vviieeww utility was written by Alistair G. Crooks <agc@NetBSD.org>.

NetBSD 2.0                     September 8, 2003                    NetBSD 2.0