Man page - mk-origtargz(1)
Packages contains this manual
- devscripts.conf(5)
- build-rdeps(1)
- whodepends(1)
- checkbashisms(1)
- annotate-output(1)
- namecheck(1)
- transition-check(1)
- debrsign(1)
- dpkg-genbuilddeps(1)
- deb-reversion(1)
- ltnu(1)
- debbisect(1)
- cowpoke(1)
- dscextract(1)
- list-unreleased(1)
- getbuildlog(1)
- debclean(1)
- chdist(1)
- rc-alert(1)
- mk-origtargz(1)
- deb2docker(1)
- edit-patch(1)
- what-patch(1)
- dd-list(1)
- tagpending(1)
- suspicious-source(1)
- bts(1)
- deb-why-removed(1)
- devscripts(7)
- plotchangelog(1)
- uscan(1)
- mergechanges(1)
- debsnap(1)
- debftbfs(1)
- hardening-check(1)
- dscverify(1)
- dget(1)
- who-uploads(1)
- debrepro(1)
- git-deborig(1)
- deb-janitor(1)
- deb2apptainer(1)
- dep-14-convert-git-branch-names(1)
- dep3changelog(1)
- wnpp-alert(1)
- pts-unsubscribe(1)
- sadt(1)
- debc(1)
- debdiff-apply(1)
- nmudiff(1)
- add-patch(1)
- dpkg-depcheck(1)
- rmadison(1)
- debsign(1)
- deb2singularity(1)
- diff2patches(1)
- debi(1)
- mk-build-deps(1)
- origtargz(1)
- debrebuild(1)
- deb-check-file-conflicts(1)
- reproducible-check(1)
- mass-bug(1)
- debootsnap(1)
- salsa(1)
- svnpath(1)
- debrelease(1)
- pts-subscribe(1)
- debdiff(1)
- dch(1)
- debcheckout(1)
- wrap-and-sort(1)
- wnpp-check(1)
- manpage-alert(1)
- dcmd(1)
- who-permits-upload(1)
- debchange(1)
- archpath(1)
- debuild(1)
- grep-excuses(1)
- debcommit(1)
- uupdate(1)
apt-get install devscripts
Available languages:
en fr deManual
MK-ORIGTARGZ
NAMESYNOPSIS
DESCRIPTION
OPTIONS
Metadata options
Action options
SEE ALSO
AUTHOR
NAME
mk-origtargz - rename upstream tarball, optionally changing the compression and removing unwanted files
SYNOPSIS
mk-origtargz
[
options
]
foo-1.0.tar.gz
mk-origtargz --help
DESCRIPTION
mk-origtargz renames the given file to match what is expected by dpkg-buildpackage , based on the source package name and version in debian/changelog . It can convert zip to tar , optionally change the compression scheme and remove files according to Files-Excluded and Files-Excluded- component in debian/copyright . The resulting file is placed in debian/../.. . (In debian/copyright , the Files-Excluded and Files-Excluded- component stanzas are a part of the first paragraph and there is a blank line before the following paragraphs which contain Files and other stanzas. The Files-Included stanza may be used to ignore parts of subdirectories specified by the Files-Excluded stanza See uscan (1) "COPYRIGHT FILE EXAMPLE".)
The archive type for zip is detected by " file --dereference --brief --mime-type " command. So any zip type archives such as jar and xpi are treated in the same way.
If the package name is given via the --package option, no information is read from debian/ , and the result file is placed in the current directory.
mk-origtargz is commonly called via uscan , which first obtains the upstream tarball.
OPTIONS
Metadata options
The following
options extend or replace information taken from
debian/
.
--package
package
Use package as the name of the Debian source package, and do not require or use a debian/ directory. This option can only be used together with --version .
The default is to use the package name of the first entry in debian/changelog .
-v , --version version
Use version as the version of the package. This needs to be the upstream version portion of a full Debian version, i.e. no Debian revision, no epoch.
The default is to use the upstream portion of the version of the first entry in debian/changelog .
--exclude-file glob
Remove files matching the given glob from the tarball, as if it was listed in Files-Excluded .
--copyright-file filename
Remove files matching the patterns found in filename , which should have the format of a Debian copyright file ( Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ to be precise). Errors parsing that file are silently ignored, exactly as is the case with debian/copyright .
Unmatched patterns will emit a warning so the user can verify whether it is correct. If there are multiple patterns which match a file, only the last one will count as being matched.
Both the --exclude-file and --copyright-file options amend the list of patterns found in debian/copyright . If you do not want to read that file, you will have to use --package .
--signature signature-mode
Set
signature-mode
:
0 for no signature
1 for normal detached signature
2 for signature on decompressed
3 for self signature
--signature-file signature-file
Use signature-file as the signature file corresponding to the Debian source package to create a dpkg-source (post-stretch) compatible signature file. (optional)
Action options
These options
specify what exactly
mk-origtargz
should do. The
options
--copy
,
--rename
and
--symlink
are mutually exclusive.
--symlink
Make the resulting file a symlink to the given original file. (This is the default behaviour.)
If the file has to be modified (because it is a zip , xpi or zst file, because of --repack or Files-Excluded ), this option behaves like --copy .
--copy
Make the resulting file a copy of the original file (unless it has to be modified, of course).
--rename
Rename the original file.
If the file has to be modified (because it is a zip , xpi , zst file, because of --repack or Files-Excluded ), this implies that the original file is deleted afterwards.
--repack
If the given file is not compressed using the desired format (see --compression ), recompress it.
-S , --repack-suffix suffix
If the file has to be modified, because of Files-Excluded , append suffix to the upstream version.
--force-repack
Recompress even if file is compressed using the desired format and no files were deleted.
-c , --component componentname
Use <componentname> as the component name for the secondary upstream tarball. Set componentname as the component name. This is used only for the secondary upstream tarball of the Debian source package. Then packagename_version.orig-componentname.tar.gz is created.
--compression [ gzip | bzip2 | lzma | xz | default ]
The default method is xz . When mk-origtargz is launched in a debian source repository which format is "1.0" or undefined, the method switches to gzip .
-C , --directory directory
Put the resulting file in the given directory.
--unzipopt options
Add the extra options to use with the unzip command such as -a , -aa , and -b .
SEE ALSO
uscan (1), uupdate (1)
AUTHOR
mk-origtargz and this manpage have been written by Joachim Breitner < nomeata@debian.org >.