Table of Contents

Man Page

This page is the manual page for src2pkg 2.2. Always consult your local version (man src2pkg) when there is conflicting information.

Description

src2pkg - Builds an installable package from a source archive or from other installable content.

src2pkg [-h(--help), -hh(--more-help), --version, --list]

src2pkg [User Options] [Build Options] file-name

src2pkg -[ABCDHINOPRSTUV(VV)WX] -[abcdefimnpsuv] file-name

Extended Options

-E -LANG -[DEST,JAIL,REAL,SAFE,UNION]-[DEB,PET,PET2,TAZ,TBZ,TGZ,TLZ,TXZ,Z1,Z2,Z3,Z4] -[ACF,ACN] -LOG -BUMP —resume=funcname --pause=[before|after|funcname] -[M32,M64] --machine=?? --jobs=?? -[L32,L64] --libdirsuffix=??

Capitalized User Options take no argument:

The following Build Options require an argument separated by the '=' sign. Use single ' or double ” quotes around the arguments if they contain spaces:

Note: Variables shown above in parenthesis are the src2pkg script equivalents.

Special Options:

Extended Options:

INSTALL_TYPE:

The 'Z' options are cumulative - Z4 does all of Z1, Z2 and Z3.
     -Z1 Z1 Use bzip2 instead of gzip for man-pages.
     -Z2 Z2 Compresses ELF binaries using upx or upx-ucl if present.
     -Z3 Z3 Link to a common copy of the GPL in /usr/share/licences.
     -Z4 Z4 Archive the package doc directory and remove 'info' files.

EXAMPLES

USAGE When given the name of a compressed source tarball src2pkg performs all the commands necessary to unpack and com pile the sources and then install them using the command ´make install´, tracking whatever directories, files or links are created and then making a Slackware-type tgz package from those files, etc.

src2pkg will execute its' own scripts if one is named instead of a tarball, or the command 'src2pkg -X' will search the current directory and run the first *.scrpkg.auto or *.src2pkg script it finds.

Giving a valid URL to a source tarball or *.src2pkg script online will automatically download the archive or script for you if you are connected to the internet and then build the package.

The options -ACF and -ACN are used to allow src2pkg to try to find options automatically and pass them to the con‐ figure script. The -ACF option tells src2pkg to look for options in an RPM *.spec file or debian 'rules' file, if either one is present inside the sources. The -ACN option tells src2pkg to detect common standard options in the configure script itself. If present, they will assigned default values and used to configure the sources. The list of possible options which will be searched for can be configured in the /etc/src2pkg/src2pkg.conf file by setting the AUTO_CONFIG_OPTIONS variable.