Author: bdubbs Date: Mon Dec 18 09:58:23 2017 New Revision: 19607 Log: Fix alpine, id3lib, and gpm currency scripts
Modified: trunk/scripts/blfs-chapter17.php trunk/scripts/blfs-chapter46.php trunk/scripts/blfs-include.php Modified: trunk/scripts/blfs-chapter17.php ============================================================================== --- trunk/scripts/blfs-chapter17.php Sun Dec 17 16:58:18 2017 (r19606) +++ trunk/scripts/blfs-chapter17.php Mon Dec 18 09:58:23 2017 (r19607) @@ -30,6 +30,10 @@ 'match' => '^ftp:\/\/ftp.gnome', 'replace' => "http://ftp.gnome" ), + array( 'pkg' => 'alpine', + 'match' => '^.*$', + 'replace' => "http://repo.or.cz/alpine.git/shortlog" ), + array( 'pkg' => 'w3m', 'match' => '^.*$', 'replace' => "http://sourceforge.net/projects/w3m/files" ), @@ -194,6 +198,9 @@ return 0; // This is an error } + if ( $book_index == "alpine" ) + return find_max( $lines, '/New version/', '/^.*New version ([\d\.]+).*$/' ); + if ( $book_index == "c-ares" ) return find_max( $lines, '/c-ares/', '/^.*c-ares ([\d\.]+) .*$/' ); Modified: trunk/scripts/blfs-chapter46.php ============================================================================== --- trunk/scripts/blfs-chapter46.php Sun Dec 17 16:58:18 2017 (r19606) +++ trunk/scripts/blfs-chapter46.php Mon Dec 18 09:58:23 2017 (r19607) @@ -28,6 +28,7 @@ $regex = array(); $regex[ 'faac' ] = "/^.*Download faac-(\d[\d\.]+\d).*$/"; $regex[ 'a52dec' ] = "/^.*a52dec-(\d[\d\.]+\d) is.*$/"; +$regex[ 'id3lib' ] = "/^.*Download id3lib-(\d[\d\.]+\d).*$/"; $regex[ 'libass' ] = "/^.*Release (\d[\d\.]+\d).*$/"; $regex[ 'libdv' ] = "/^.*Download libdv-(\d[\d\.]+\d).*$/"; $regex[ 'libmpeg2' ] = "/^.*libmpeg2-(\d[\d\.]+\d).*$/"; @@ -63,6 +64,10 @@ 'match' => '^.*$', 'replace' => "http://liba52.sourceforge.net/" ), + array( 'pkg' => 'id3lib', + 'match' => '^.*$', + 'replace' => "http://sourceforge.net/projects/id3lib/files/id3lib" ), + array( 'pkg' => 'libao', 'match' => '^.*$', 'replace' => "http://downloads.xiph.org/releases/ao" ), @@ -245,7 +250,8 @@ if ( $package == "opus" ) $dirpath .= '/'; - if ( $package == "faad2" ) + if ( $package == "faad2" || + $package == "id3lib" ) exec( "links -dump $dirpath", $lines ); else $lines = http_get_file( $dirpath ); @@ -344,6 +350,9 @@ array( 'pkg' => 'frei', 'regex' => "/^.*frei0r-plugins-(\d[\d\.]+).*$/" ), + array( 'pkg' => 'id3lib', + 'regex' => "/^.*id3lib-(\d[\d\.]+).*$/" ), + array( 'pkg' => 'libmpeg2', 'regex' => "/^.*libmpeg2-(\d[\d\.]+).*$/" ), Modified: trunk/scripts/blfs-include.php ============================================================================== --- trunk/scripts/blfs-include.php Sun Dec 17 16:58:18 2017 (r19606) +++ trunk/scripts/blfs-include.php Mon Dec 18 09:58:23 2017 (r19607) @@ -110,7 +110,7 @@ preg_match( "/docutils/", $url ) || preg_match( "/expect/", $url ) ) { - exec( "curl -L -s -m40 -A Firefox/41.0 $url", $dir ); + exec( "curl -L -k -s -m40 -A Firefox/41.0 $url", $dir ); $s = implode( "\n", $dir ); $dir = strip_tags( $s ); $strip = explode( "\n", $dir ); -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page