X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fipkg-make-index.sh;h=a398559bd8c7da3423b16cde4e26aeeeb99b7b58;hb=ea81aa83fc9026d42f6764c4cb6fd13c99e5b57d;hp=31b4327da34ccfeb8f190f064cd8ac0e50bed185;hpb=7417c040c77b993e0be73676e2edaef37b99082f;p=openwrt.git diff --git a/scripts/ipkg-make-index.sh b/scripts/ipkg-make-index.sh index 31b4327da3..a398559bd8 100755 --- a/scripts/ipkg-make-index.sh +++ b/scripts/ipkg-make-index.sh @@ -14,14 +14,17 @@ for pkg in `find $pkg_dir -name '*.ipk' | sort`; do name="${pkg##*/}" name="${name%%_*}" [[ "$name" = "kernel" ]] && continue + [[ "$name" = "libc" ]] && continue echo "Generating index for package $pkg" >&2 file_size=$(ls -l $pkg | awk '{print $5}') md5sum=$(md5sum $pkg | awk '{print $1}') + sha256sum=$(openssl dgst -sha256 $pkg | awk '{print $2}') # Take pains to make variable value sed-safe sed_safe_pkg=`echo $pkg | sed -e 's/^\.\///g' -e 's/\\//\\\\\\//g'` tar -xzOf $pkg ./control.tar.gz | tar xzOf - ./control | sed -e "s/^Description:/Filename: $sed_safe_pkg\\ Size: $file_size\\ MD5Sum: $md5sum\\ +SHA256sum: $sha256sum\\ Description:/" echo "" done