Changeset c0904fc


Ignore:
Timestamp:
02/10/2018 10:12:31 PM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 8.2, 8.2-rc1, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, cross-chap5, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
46f9e6c
Parents:
e5474751
Message:

Update currency script for openssl

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11364 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lfs-latest.php

    re5474751 rc0904fc  
    1414$regex[ 'bzip2'    ] = "/^.*current version is ([\d\.]+).*$/";
    1515$regex[ 'check'    ] = "/^.*Check (\d[\d\.]+\d).*$/";
    16 $regex[ 'expect'   ] = "/^.*Download expect([\d\.]+)\.tar.*$/";
    17 $regex[ 'expat'    ] = "/^.*Download expat-([\d\.]+)\.tar.*$/";
    1816$regex[ 'intltool' ] = "/^.*Latest version is (\d[\d\.]+\d).*$/";
    1917$regex[ 'less'     ] = "/^.*current released version is less-(\d+).*$/";
    20 $regex[ 'mpc'      ] = "/^(\d\.\d\.\d).*$/";
    2118$regex[ 'mpfr'     ] = "/^mpfr-([\d\.]+)\.tar.*$/";
    2219$regex[ 'systemd'  ] = "/^.*v([\d]+).*$/";
    2320$regex[ 'sysvinit' ] = "/^.*sysvinit-([\d\.]+)dsf\.tar.*$/";
    24 $regex[ 'tcl-core' ] = "/^.*Download tcl([\d\.]+)-src.*$/";
    2521$regex[ 'tzdata'   ] = "/^.*tzdata([\d]+[a-z]).*$/";
    2622$regex[ 'xz'       ] = "/^.*xz-([\d\.]*\d).*$/";
     
    109105  global $regex;
    110106
    111 //if ( $package != "check" ) return 0; // Debug
     107//if ( $package != "expat" ) return 0; // Debug
    112108
    113109if ( $package == "check"      ) $dirpath = "https://github.com/libcheck/check/releases";
    114110if ( $package == "e2fsprogs"  ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs";
    115111if ( $package == "expat"      ) $dirpath = "http://sourceforge.net/projects/expat/files";
    116 if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/$package/files"; 
     112if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files"; 
    117113if ( $package == "file"       ) $dirpath = "https://github.com/file/file/releases";
    118114if ( $package == "flex"       ) $dirpath = "https://github.com/westes/flex/releases";
     
    120116if ( $package == "intltool"   ) $dirpath = "https://launchpad.net/intltool/trunk";
    121117if ( $package == "meson"      ) $dirpath = "https://github.com/mesonbuild/meson/releases";
    122 if ( $package == "mpc"        ) $dirpath = "http://www.multiprecision.org/index.php?prog=mpc&page=download";
     118if ( $package == "mpc"        ) $dirpath = "http://www.multiprecision.org/mpc/download.html";
    123119if ( $package == "mpfr"       ) $dirpath = "http://mpfr.loria.fr/mpfr-current";
    124120if ( $package == "ninja"      ) $dirpath = "https://github.com/ninja-build/ninja/releases";
     
    127123if ( $package == "shadow"     ) $dirpath = "https://github.com/shadow-maint/shadow/releases";
    128124if ( $package == "systemd"    ) $dirpath = "https://github.com/systemd/systemd/releases";
    129 if ( $package == "tcl-core"   ) $dirpath = "http://sourceforge.net/projects/tcl/files";
     125if ( $package == "tcl"        ) $dirpath = "http://sourceforge.net/projects/tcl/files";
    130126if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
    131127if ( $package == "vim"        ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix";
     
    199195        $position = strrpos( $dirpath, "/" );
    200196        $dirpath  = substr ( $dirpath, 0, $position );
    201         //echo "$dirpath\n";
    202197     }
    203198
     
    205200     if ( ! is_array( $lines ) ) return -6;
    206201  } // End fetch
    207 
     202//print_r($lines);
    208203  if ( isset( $regex[ $package ] ) )
    209204  {
     
    245240     return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]+\d).*$/" );
    246241
     242  if ( $package == "expect" )
     243     return find_max( $lines, "/expect/", "/^.*expect(\d[\d\.]+\d).tar.*$/" );
     244
     245  if ( $package == "mpc" )
     246     return find_max( $lines, "/Version/", "/^.*Version (\d[\d\.]+\d)\\s*$/" );
     247
    247248  if ( $package == "XML-Parser" )
    248249  {
     
    253254  }
    254255
     256  if ( $package == "tcl" )
     257     return find_max( $lines, "/tcl/", "/^.*tcl(\d[\d\.]*\d)-src.*$/" );
     258
    255259  if ( $package == "ninja" )
    256260     return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]*\d).*$/" );
     
    270274  if ( $package == "grub" )
    271275     return find_max( $lines, "/grub/", "/^.*grub-(\d\..*).tar.xz.*$/" );
     276
     277  if ( $package == "openssl" )
     278     return find_max( $lines, "/openssl/", "/^.*openssl-([\d\.p]*\d.?).tar.*$/" );
    272279
    273280  // Most packages are in the form $package-n.n.n
     
    320327      }
    321328
     329      else if ( preg_match( "/openssl/", $file ) )
     330      {
     331        $pattern = "/\D*(\d.*\d.*).tar.*$/";
     332      }
     333
    322334      else if ( preg_match( "/gmp/", $file ) )
    323335      {
     
    325337      }
    326338
    327       else if ( preg_match( "/eudev.*manpages/", $file ) ) continue;
    328       //else if ( preg_match( "/python/"         , $file ) ) continue;
    329       else if ( preg_match( "/systemd-man/"    , $file ) ) continue;
     339      else if ( preg_match( "/systemd-man-pages/", $file ) ) continue;
     340      else if ( preg_match( "/python/"         , $file ) ) continue;
    330341
    331342      $version = preg_replace( $pattern, "$1", $file );   // Isolate version
Note: See TracChangeset for help on using the changeset viewer.