opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

fetch.sh (719B)


      1 set -e
      2 
      3 dir=$1
      4 shift
      5 
      6 cd "$dir"
      7 
      8 if [ -e src ] ; then
      9         rm -rf src
     10 fi
     11 
     12 if ! sh "$OLDPWD/scripts/checksum.sh" -c sha256 2>/dev/null ; then
     13         curl -L -K url -O
     14         sh "$OLDPWD/scripts/checksum.sh" -c sha256
     15 fi
     16 
     17 sh "$OLDPWD/scripts/extract.sh" src.tar.gz -s ',^,src/,' \
     18 	'bin/pax/*' \
     19 	'include/*' \
     20 	'lib/libc/*' \
     21 	'lib/libcrypto/arc4random/*' \
     22 	'lib/libutil/*' \
     23 	'usr.bin/diff/*' \
     24 	'usr.bin/doas/*' \
     25 	'usr.bin/fmt/*' \
     26 	'usr.bin/m4/*' \
     27 	'usr.bin/nc/*' \
     28 	'usr.bin/patch/*' \
     29 	'usr.bin/rsync/*' \
     30 	'usr.bin/xargs/*' \
     31 	'usr.bin/yacc/*' \
     32 	'usr.sbin/acme-client/*'
     33 sh "$OLDPWD/scripts/extract.sh" sys.tar.gz -s ',^,src/,' 'sys/sys/*'
     34 
     35 git apply -v --whitespace=nowarn --directory "$dir/src" patch/*