summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Rinnestam <fredrik@crux.nu>2018-02-07 18:22:25 +0100
committerFredrik Rinnestam <fredrik@crux.nu>2018-02-07 18:22:25 +0100
commitae5df6094b41c7c52eea5f7407c0a973f6a6317c (patch)
tree0a79d0ba8754f870cbe4cf6b719b6f0620b28064
parent60825521fb9683fd934fdad622a35783e4c65534 (diff)
downloadpkgutils-ae5df6094b41c7c52eea5f7407c0a973f6a6317c.tar.gz
pkgutils-ae5df6094b41c7c52eea5f7407c0a973f6a6317c.tar.xz
pkgmk: dropped bzip2 support, added support for lzip
-rw-r--r--pkgmk.conf.5.in2
-rwxr-xr-xpkgmk.in4
2 files changed, 3 insertions, 3 deletions
diff --git a/pkgmk.conf.5.in b/pkgmk.conf.5.in
index 742b326a..98976d61 100644
--- a/pkgmk.conf.5.in
+++ b/pkgmk.conf.5.in
@@ -84,7 +84,7 @@ If set to 'no', pkgmk will strip built binaries.
Default: 'no'
.TP
\fBPKGMK_COMPRESSION_MODE='STRING'\fP
-Option to select the mode used to compress the packages. Valid strings are gz, bz2 and xz.
+Option to select the mode used to compress the packages. Valid strings are gz, bz2, xz and lz.
.br
Default: 'gz'
.SH SEE ALSO
diff --git a/pkgmk.in b/pkgmk.in
index 9c1d95a0..6ee685fc 100755
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -549,8 +549,8 @@ build_package() {
case $PKGMK_COMPRESSION_MODE in
gz) COMPRESSION="-z" ;;
- bz2) COMPRESSION="-j" ;;
xz) COMPRESSION="-J" ;;
+ lz) COMPRESSION="--lzip" ;;
esac
bsdtar -c $COMPRESSION -f $TARGET * && bsdtar -t -v -f $TARGET
@@ -820,7 +820,7 @@ main() {
check_pkgfile
case $PKGMK_COMPRESSION_MODE in
- gz|bz2|xz)
+ gz|xz|lz)
TARGET="$PKGMK_PACKAGE_DIR/$name#$version-$release.pkg.tar.$PKGMK_COMPRESSION_MODE"
;;
*)

Generated by cgit