File:  [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_tarup / files / pkg_tarup.1
Revision 1.5: download - view: text, annotated - select for diffs
Sat Mar 19 09:44:17 2011 UTC (14 years, 1 month ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, HEAD
Add filebase support, allowing to choose the filename for the resulting
package; from Aleksey Cheusov in relation to PR 44698.

Bump version to 1.9.

.\" $NetBSD: pkg_tarup.1,v 1.5 2011/03/19 09:44:17 wiz Exp $
.Dd March 19, 2011
.Dt PKG_TARUP 1
.Os
.Sh NAME
.Nm pkg_tarup
.Nd utility for tarring up installed software packages
.Sh SYNOPSIS
.Nm
.Op Fl a
.Op Fl d Ar pkgrepository
.Op Fl f Ar filebase
.Op Fl K Ar pkg_dbdir
.Op Fl s Ar pkg_sufx
.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
.It Fl f Ar filebase
By default filename for created package looks like this
.Dl ${pkgbase}-${pkgversion}${pkg_sufx}
This option allows to
use
.Ar filebase
instead of
.Pa ${pkgbase} .
.El
.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 EXIT STATUS
The
.Nm
utility exits 0 on success and 1 on errors.
.Sh SEE ALSO
.Xr pkg_create 1 ,
.Xr pkg_info 1 ,
.Xr pkgsrc 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.

CVSweb <webmaster@jp.NetBSD.org>