summaryrefslogtreecommitdiff
path: root/pkgmk.8.in
blob: e0c3c3d4396341364a8643fc871438ded1db3ff0 (plain)
    1 .TH pkgmk 8 "" "pkgutils #VERSION#" ""
    2 .SH NAME
    3 pkgmk \- make software package
    4 .SH SYNOPSIS
    5 \fBpkgmk [options]\fP
    6 .SH DESCRIPTION
    7 \fBpkgmk\fP is a \fIpackage management\fP utility, which makes
    8 a software package. A \fIpackage\fP is an archive of files (.pkg.tar.gz, .pkg.tar.bz2 or .pkg.tar.xz)
    9 that can be installed using pkgadd(8).
   10 
   11 To prepare to use pkgmk, you must write a file named \fIPkgfile\fP
   12 that describes how the package should be build. Once a suitable
   13 \fIPkgfile\fP file exists, each time you change some source files,
   14 you simply execute pkgmk to bring the package up to date. The pkgmk
   15 program uses the \fIPkgfile\fP file and the last-modification
   16 times of the source files to decide if the package needs to be updated.
   17 
   18 Global build configuration is stored in \fI/etc/pkgmk.conf\fP. This
   19 file is read by pkgmk at startup.
   20 .SH OPTIONS
   21 .TP
   22 .B "\-i, \-\-install"
   23 Install package using pkgadd(8) after successful build.
   24 .TP
   25 .B "\-u, \-\-upgrade"
   26 Install package as an upgrade using pkgadd(8) after successful build.
   27 .TP
   28 .B "\-r, \-\-recursive"
   29 Search for and build packages recursively.
   30 .TP
   31 .B "\-d, \-\-download"
   32 Download missing source file(s).
   33 .TP
   34 .B "\-do, \-\-download\-only"
   35 Do not build, only download missing source file(s).
   36 .TP
   37 .B "\-utd, \-\-up\-to\-date"
   38 Do not build, only check if the package is up to date.
   39 .TP
   40 .B "\-uf, \-\-update\-footprint"
   41 Update footprint and treat last build as successful.
   42 .TP
   43 .B "\-if, \-\-ignore\-footprint"
   44 Build package without checking footprint.
   45 .TP
   46 .B "\-in, \-\-ignore\-new"
   47 Build package, ignore new files in a footprint mismatch.
   48 .TP
   49 .B "\-um, \-\-update\-md5sum"
   50 Update md5sum using the current source files.
   51 .TP
   52 .B "\-im, \-\-ignore\-md5sum"
   53 Build package without checking md5sum first.
   54 .TP
   55 .B "\-cm, \-\-check\-md5sum"
   56 Check md5sum without building the package.
   57 .TP
   58 .B "\-us, \-\-update\-signature"
   59 Update port signature and sha256sums.
   60 .TP
   61 .B "\-cs, \-\-check\-signature"
   62 Check the validity of files using the signature and sha256sums.
   63 .TP
   64 .B "\-is, \-\-ignore\-signature"
   65 Build package without checking the signature and sha256sums.
   66 .TP
   67 .B "\-rs, \-\-refresh\-signature"
   68 Create new signature and keep existing sha256sums.
   69 .TP
   70 .B "\-sk, \-\-secret\-key <file>"
   71 Use private key in <file> to sign the port. By default, the name of the port's parent directory 'repo' is evaluated and /etc/ports/$repo.sec is used as the private key, if it exists.
   72 .TP
   73 .B "\-pk, \-\-public\-key <file>"
   74 Use public key in <file to check the signature. By default, the name of the port's parent directory 'repo' is evaluated and /etc/ports/$repo.pub is used as the public key, if it exists.
   75 .TP
   76 .B "\-ns, \-\-no\-strip"
   77 Do not strip executable binaries or libraries.
   78 .TP
   79 .B "\-f, \-\-force"
   80 Build package even if it appears to be up to date.
   81 .TP
   82 .B "\-c, \-\-clean"
   83 Remove the (previously built) package and the downloaded source files.
   84 .TP
   85 .B "\-kw, \-\-keep-work"
   86 Keep temporary working directory.
   87 .TP
   88 .B "\-cf, \-\-config\-file <file>"
   89 Use alternative configuration file (default is /etc/pkgmk.conf).
   90 .TP
   91 .B "\-v, \-\-version"
   92 Print version and exit.
   93 .TP
   94 .B "\-h, \-\-help"
   95 Print help and exit.
   96 .SH FILES
   97 .TP
   98 .B "Pkgfile"
   99 Package build description.
  100 .TP
  101 .B ".footprint"
  102 Package footprint (used for regression testing).
  103 .TP
  104 .B ".md5sum"
  105 MD5 checksum of source files.
  106 .TP
  107 .B "/etc/pkgmk.conf"
  108 Global package make configuration.
  109 .TP
  110 .B "curl"
  111 Used by pkgmk to download source code.
  112 .TP
  113 .B "wget"
  114 Used by pkgmk to download source code.
  115 .SH EXIT CODES
  116 .TP
  117 .B 0
  118 No error occured.
  119 .TP
  120 .B 1
  121 A general error has occured.
  122 .TP
  123 .B 2
  124 The Pkgfile is invalid.
  125 .TP
  126 .B 3
  127 The source or build directory is missing or is lacking read/write permissions.
  128 .TP
  129 .B 4
  130 An error occured during the download of source files.
  131 .TP
  132 .B 5
  133 An error occured during unpacking of source files.
  134 .TP
  135 .B 6
  136 An md5sum mismatch occured.
  137 .TP
  138 .B 7
  139 A footprint mismatch occured.
  140 .TP
  141 .B 8
  142 An error occured while running the build function.
  143 .TP
  144 .B 9
  145 An error occured while installing the package via pkgadd.
  146 .SH SEE ALSO
  147 pkgmk.conf(5), pkgadd(8), pkgrm(8), pkginfo(8), rejmerge(8), curl(1), wget(1)
  148 .SH COPYRIGHT
  149 pkgmk (pkgutils) is Copyright (c) 2000-2005 Per Liden and Copyright (c) 2006-2013 CRUX team (http://crux.nu).
  150 pkgmk (pkgutils) is licensed through the GNU General Public License.
  151 Read the COPYING file for the complete license.

Generated by cgit