wok diff xarchive/stuff/slitaz-wrap.sh @ rev 20588

openvas-manager, openvas-administrator: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 15 13:51:03 2018 +0100 (2018-12-15)
parents a95b0be09647
children 02c70d036ea0
line diff
     1.1 --- a/xarchive/stuff/slitaz-wrap.sh	Wed Nov 26 13:45:57 2014 +0100
     1.2 +++ b/xarchive/stuff/slitaz-wrap.sh	Sat Dec 15 13:51:03 2018 +0100
     1.3 @@ -46,6 +46,7 @@
     1.4  LHA_EXTS="lha lzh lzs"
     1.5  LZO_EXTS="lzo"
     1.6  ARJ_EXTS="arj pak arc j uc2 zoo"
     1.7 +NZ_EXTS="nz"
     1.8  _7Z_EXTS="7z bcj bcj2 wim $BZIP2_EXTS $ZIP_EXTS $XZ_EXTS"
     1.9  _7Z_EXTS_X="chm cramfs dmg hfs mbr msi nsis ntfs udf vhd xar arj cab lzh rar \
    1.10  udf cpio $ISO_EXTS $FAT_EXTS $SQUASHFS_EXTS"
    1.11 @@ -315,6 +316,7 @@
    1.12  rar		$RAR_EXTS
    1.13  unace		ace
    1.14  arj		$ARJ_EXTS
    1.15 +nz		$NZ_EXTS
    1.16  7zr		$_7Z_EXTS $_7Z_EXTS_X
    1.17  lha		$LHA_EXTS
    1.18  lzop		$LZO_EXTS
    1.19 @@ -432,6 +434,25 @@
    1.20  /^[\t ]+SymLink -> / { link=$3; attr="l"substr(attr, 2) }
    1.21  /^---/ { display() }
    1.22  '
    1.23 +# Archive: nz.nz
    1.24 +# checksum perm yyyy-mmm-dd hh:mm:ss     size  file
    1.25 +# 387b9923 0755 2016-Aug-10 13:29:41  1144 KB  nz
    1.26 +# a52758fb 0644 2016-Aug-10 13:29:41   371 B   readme.txt
    1.27 +# Total of 3 files, 1 181 184 bytes.
    1.28 +	in_exts $NZ_EXTS && nz l "$archive" | awku '
    1.29 +{
    1.30 +	if ($1 == "checksum") show=1
    1.31 +	else if ($1 == "Total") exit
    1.32 +	else {
    1.33 +		attr=$2
    1.34 +		date=$3
    1.35 +		time=$4
    1.36 +		size=$5 $6
    1.37 +		name=$7
    1.38 +		display()
    1.39 +	}
    1.40 +}
    1.41 +'
    1.42  #  Ver  Date      Time (UT) Attr           Size Ratio  File
    1.43  # ----- ---------- -------- ------ ------------ ------ ----
    1.44  # >   1 2012-04-10 11:47:56 100644          576 0.2611 /etc/skel/.profile
    1.45 @@ -484,6 +505,7 @@
    1.46  zip	-g\ -r		$ZIP_EXTS
    1.47  rar	a		$RAR_EXTS
    1.48  arj	a		$ARJ_EXTS
    1.49 +nz	a		$NZ_EXTS
    1.50  7zr	a\ -ms=off	$_7Z_EXTS
    1.51  lha	a		$LHA_EXTS
    1.52  zpaq	a		$ZPAQ_EXTS
    1.53 @@ -533,6 +555,7 @@
    1.54  lzop		-x		N/A		$LZO_EXTS
    1.55  rar		x\ -o-\ -p-	x\ -o-		$RAR_EXTS
    1.56  arj		x\ -y		x\ -y\ -g?	$ARJ_EXTS
    1.57 +nz		x		N/A		$NZ_EXTS
    1.58  7zr		x\ -y\ -p-	x\ -y		$_7Z_EXTS $_7Z_EXTS_X
    1.59  unace		N/A		x\ -o\ -y	ace
    1.60  cabextract	-q		N/A		cab