1 .TH zpm-add 8 2019-02-15 "ZPM 0.4"
3 zpm-add \- add files to a package
10 .BI "[ -M " mtime " ]"
11 .BI "[ -P " prefix " ]"
12 .BI "[ -S " stripprefix " ]"
14 .BI "[ -T " target " ]"
16 .BI "[ -g " group " ]"
19 .BI "[ -p " package " ]"
22 \fBzpm-add\fR adds files to a zpm package.
23 The package file must exist, and the package in the package file
24 must exist. File metadata is taken from the filesystem, unless
25 overridden by command line options.
27 If the package name is not given with the \-p option, it will be inferred.
28 from the package file name. The package file name must be parsable as a
33 Create the package if necessary, create the package file if it does not
37 mark the package as complete when finished. Normally a package
38 is marked as incomplete after adding files.
41 Mark added files as config files.
44 Add files to the named package. The package will be looked up as if by
45 zpm-findpkg. Overrides \-i.
48 force added files to be the type. See Non-Existent Files.
51 specify the hash value of a file. See Non-Existent Files.
54 specify mtime. for a non-existent file, if not specified here, the current
58 Directly set the mode of added files. If not set, the mode will be taken
62 Don't add any file content for regular files.
65 Prefix added file paths with the given prefix. No '/' is added,
66 so the prefix should include a trailing '/' if the prefix is intended
70 recursively add paths underneath directories
73 zpm-add -f passwd-1.0-1.zpm passwd-1.0-1 /etc/passwd
74 Add the /etc/passwd file to the passwd-1.0-1 package.
76 0 if adding files was successful
77 1 if adding files failed if -x is not given
78 255 if adding files failed and -x is given
87 .BR zpm-packagehash (8)