summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_tarup/files/pkg_tarup.1
blob: 73906cc9474ace1a5e53dcf113b469898afc4231 (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
.\" $NetBSD: pkg_tarup.1,v 1.4 2008/11/19 00:20:48 obache Exp $
.Dd July 14, 2004
.Dt PKG_TARUP 1
.Os
.Sh NAME
.Nm pkg_tarup
.Nd a utility for tarring up installed software packages
.Sh SYNOPSIS
.Nm
.Op Fl a
.Bk -words
.Op Fl d Ar pkgrepository
.Ek
.Bk -words
.Op Fl K Ar pkg_dbdir
.Ek
.Bk -words
.Op Fl s Ar pkg_sufx
.Ek
.Ar pkg-name-or-pattern
.Op Ar ...
.Sh DESCRIPTION
The
.Nm
command is used to create a binary package from an installed package.
It can be used to tar up one or more packages, including dependent
packages, if desired.
.Pp
The following options are available:
.Bl -tag -width indent
.It Fl a
Create packages for all dependent packages too.
.It Fl d Ar pkgrepository
Set
.Ar pkgrepository
as the destination directory for the created package file(s).
If this option isn't specified, then
.Pa /tmp
is used.
.It Fl K Ar pkg_dbdir
Set
.Ar pkg_dbdir
as the package database directory.
If this option isn't specified, then the package database directory
is taken from the value of the environment variable
.Ev PKG_DBDIR
if it is set, otherwise it defaults to
.Pa @PKG_DBDIR@ .
.It Fl s Ar pkg_sufx
Set
.Ar pkg_sufx
as the extension used for the created package file(s).
If this option isn't specified, then
.Pa .tgz
is used.
.El
.Sh EXIT STATUS
The
.Nm
utility exits 0 on success and 1 on errors.
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm :
.Bl -tag -width indent
.It Ev PREFIX
Package binaries installation prefix used to build the path.
Defaults to
.Pa @PREFIX@ .
.It Ev ECHO , ID , SED , SU_CMD , GREP
Actual commands to use.
These default to
.Pa @ECHO@ ,
.Pa @ID@ ,
.Pa @SED@ ,
.Pa @SU_CMD@ ,
and
.Pa @GREP@ .
.It Ev PKG_DBDIR
If the
.Fl K
flag isn't given, then
.Ev PKG_DBDIR
is the location of the package database directory.
The default package database directory is
.Pa @PKG_DBDIR@ .
.It Ev PKG_SUFX
If the
.Fl s
flag isn't given, then
.Ev PKG_SUFX
is the suffix of the created package file.
The default is
.Pa @PKG_SUFX@ .
.It Ev PKGREPOSITORY
If the
.Fl d
flag isn't given, then
.Ev PKGREPOSITORY
is the destination directory for the created package file(s).
The default is
.Pa /tmp .
.El
.Pp
Any variable that affects
.Xr pkg_info 1
or
.Xr pkg_create 1 .
.Sh SEE ALSO
.Xr pkg_create 1 ,
.Xr pkg_info 1 ,
.Xr packages 7
.Sh BUGS
Packages that contain files with spaces in their names probably
won't work.
There is no way to safely tell
.Xr pkg_create 1
about these files.