Changeset 38302


Ignore:
Timestamp:
2013-10-04T07:56:20+02:00 (4 years ago)
Author:
cyrus
Message:

opkg: add support for SHA256 verification

based on a patch by Evan Hunt <each@…>
Signed-off-by: Steven Barth <steven@…>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/system/opkg/Makefile

    r38284 r38302  
    1212PKG_REV:=618 
    1313PKG_VERSION:=$(PKG_REV) 
    14 PKG_RELEASE:=4 
     14PKG_RELEASE:=5 
    1515 
    1616PKG_SOURCE_PROTO:=svn 
     
    9191 
    9292ifeq ($(BUILD_VARIANT),smime) 
    93         CONFIGURE_ARGS += --enable-openssl 
     93        CONFIGURE_ARGS += --enable-openssl --enable-sha256 
    9494endif 
    9595 
  • trunk/scripts/ipkg-make-index.sh

    r32187 r38302  
    1919        file_size=$(ls -l $pkg | awk '{print $5}') 
    2020        md5sum=$(md5sum $pkg | awk '{print $1}') 
     21        sha256sum=$(openssl sha256 $pkg | awk '{print $2}') 
    2122        # Take pains to make variable value sed-safe 
    2223        sed_safe_pkg=`echo $pkg | sed -e 's/^\.\///g' -e 's/\\//\\\\\\//g'` 
     
    2425Size: $file_size\\ 
    2526MD5Sum: $md5sum\\ 
     27SHA256sum: $sha256sum\\ 
    2628Description:/" 
    2729        echo "" 
Note: See TracChangeset for help on using the changeset viewer.