list2pkg — Create Slackware packages from file lists
list2pkg
[OPTIONS
] [LIST
] {PACKAGE
}
List2pkg is a program to create Slackware packages in a simple way. More precisely, given a list of files, it will create a slackware package containing these files. A user trying to install that package will see the same files installed at the same locations they were on your system.
List2pkg takes two arguments: a file list and the path to the package file which will be created. If the file list argument is omitted or “-”, the list will be read from standard input.
Note that each option can be abbreviated and will be recognized if unambiguous.
--help
Print a short description of each option and exit.
--version
Output version information and exit.
--verbose
Print more information on what the program does to stdout
--quiet
Print only warnings and error messages
--treedir=PATH
Copy the files to that directory before creating the package. By
default, a temporary directory is created in /var/tmp
and deleted afterward.
--changetree=PROG
Once the package directory tree has been created, that script will be run with the tree's path as first argument, so that you can do your own custom changes to the tree.
--doinst=PATH
Give the path to a custom doinst.sh script to be copied to the
package's
install/
directory.
--slack-desc=PATH
Give the path to a custom slack-desc file to be copied to the
package's install/
directory.
--install-files=DIR
Give the path to a directory where other files that will be copied to
the install/
directory are.
--no-root-ownership
If this is given, the files in the package will not have their owner and group reset to root before being packed.
--exclude-ownership=FILE
Give a custom file specifying rules concerning what group and user are
created on the target system by the doinst.sh script. The default file
is in ${SYSCONFDIR}/list2pkg.conf
. See the FILES
section for more information on the file's syntax.
--linkadd=y|n
This option is passed as is to makepkg. The default is 'y'
--prepend
If specified, this is passed to makepkg. By default, this is not.
--chown=y|n
This option is passed as is to makepkg. The default is 'n'
List2pkg uses the ${SYSCONFDIR}/list2pkg.conf
configuration file to know which owner or group name to consider as worth
re-creating on the target system. All names which do not match the
regular expressions in that file and are owner or group of one of the files
in the package tree will be re-created on the target system.
The file syntax is as follows. Each line is matched as a perl regular
expression the following way (consider EXPR
is whatever
is written on the line)
$NAME =~ /^$EXPR$/
If this matches, then the user or group name will not be created on the target system.
Please report bugs and other inconsistencies you find to the author (address is below). If you have implemented a patch, please do send it there. Any contribution is welcome. See also list2pkg's website: http://svasey.org/projects/old-stuff/list2pkg/