Author: bdubbs Date: Thu Feb 20 09:57:01 2020 New Revision: 11755 Log: Update currency for procps-ng and psmisc
Modified: trunk/BOOK/lfs-latest.php Modified: trunk/BOOK/lfs-latest.php ============================================================================== --- trunk/BOOK/lfs-latest.php Thu Feb 20 08:58:11 2020 (r11754) +++ trunk/BOOK/lfs-latest.php Thu Feb 20 09:57:01 2020 (r11755) @@ -120,8 +120,10 @@ if ( $package == "mpc" ) $dirpath = "https://ftp.gnu.org/gnu/mpc"; if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current"; if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases"; -if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files"; -if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files"; +//if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files"; +if ( $package == "procps-ng" ) $dirpath = "https://gitlab.com/procps-ng/procps/-/tags"; +//if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files"; +if ( $package == "psmisc" ) $dirpath = "https://gitlab.com/psmisc/psmisc/-/tags"; if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases"; if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/releases"; if ( $package == "tcl" ) $dirpath = "http://sourceforge.net/projects/tcl/files"; @@ -275,6 +277,12 @@ return str_replace( "_", ".", $max ); } + if ( $package == "procps-ng" ) + return find_max( $lines, "/release/", "/^.* ([\d\.]+).*$/" ); + + if ( $package == "psmisc" ) + return find_max( $lines, "/^v/", "/^v([\d\.]+).*$/" ); + if ( $package == "grub" ) return find_max( $lines, "/grub/", "/^.*grub-(\d\..*).tar.xz.*$/" ); -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
