2015-03-21

Slitaz64 -- tazpkg / https

Sorry, https not supported

Update: 20150527

tazpkg diff tazpkg @ 803:f07e0fd1175e
date Sun May 10 13:33:16 2015 +0300 (2 weeks ago ago)
http://hg.slitaz.org/tazpkg/diff/f07e0fd1175e/tazpkg#l1.189

   1.189 @@ -586,21 +568,15 @@
   1.190 
   1.191  # Download a file from this mirror
   1.192 
   1.193 -download_from()
   1.194 -{
   1.195 -    local i
   1.196 -    local mirrors
   1.197 -    mirrors="$1"
   1.198 -    shift
   1.199 +download_from() {
   1.200 +    local i mirrors="$1"; shift
   1.201      for i in $mirrors; do
   1.202          case "$i" in
   1.203              # Mirror URL can have a trailing slash or not.
   1.204 -            http://*|ftp://*)
   1.205 -                busybox wget -c ${i%/}/$@ && break ;;
   1.206 -            https://*)
   1.207 -                echo 'Sorry, https not supported' ;;
   1.208 +            http://*|https://*|ftp://*)
   1.209 +                busybox wget -c -q -T 30 -U TazPkg ${i%/}/$@ 2>/dev/null && break ;;
   1.210              *)
   1.211 -                ln -sf $i/$1 . && break ;;
   1.212 +                ln -sf ${i%/}/$1 . && break ;;
   1.213          esac
   1.214      done
   1.215  }

----

64-bit-version
l.manu

If you want use the x86_64 packages repository, run the following command :tazpkg -sm https://googledrive.com/host/0B7R739rLD0ezWFJyOTFEM1pGa0U/packages/
I have patched tazpkg in order to handle https url.

# diff tazpkg tazpkg-5.3.3
--- tazpkg
+++ tazpkg-5.3.3
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh 
 #
 # TazPKG - Tiny autonomous zone packages manager.
 #
@@ -459,6 +459,9 @@
    http://*|ftp://*)
     wget -O $2 ${i%packages/*}packages/get/$1 &&
     return 0 ;;
+   https://*)
+    wget --no-check-certificate -nv -O $2 ${i%packages/*}packages/get/$1 &&
+    return 0 ;;
    esac
   done
  done
@@ -476,6 +479,7 @@
   case "$i" in
    # Mirror URL can have a trailing slash or not.
    http://*|ftp://*) busybox wget -c ${i%/}/$@ && break ;;
+   https://*)  wget --no-check-certificate -nv -c ${i%/}/$@ && break ;;
    *) ln -sf $i/$1 . && break ;;
   esac
  done
@@ -674,6 +678,10 @@
   status
  fi
  action "Installing \$PACKAGE..."
+
+ [ "$SLITAZ_ARCH" ] && [ -d fs/lib ] && [ ! -h fs/lib ] && mv fs/lib fs/lib64
+ [ "$SLITAZ_ARCH" ] && [ -d fs/usr/lib ] && [ ! -h fs/usr/lib ] && mv fs/usr/lib fs/usr/lib64
+
  [ "$(busybox ls fs/* 2> /dev/null)" ] && cp -a fs/* $ROOT/
  status
  if [ -s files2remove.list ]; then
# 


  -q,  --quiet               quiet (no output).
  -v,  --verbose             be verbose (this is the default).
  -nv, --no-verbose          turn off verboseness, without being quiet.