Author: krejzi
Date: Wed Aug 16 10:45:24 2017
New Revision: 19030
Log:
Meh, I hate svn
Modified:
trunk/scripts/blfs-chapter09.php
Modified: trunk/scripts/blfs-chapter09.php
==============================================================================
--- trunk/scripts/blfs-chapter09.php Wed Aug 16 10:45:04 2017 (r19029)
+++ trunk/scripts/blfs-chapter09.php Wed Aug 16 10:45:24 2017 (r19030)
@@ -5,16 +5,14 @@
$CHAPTER = '9';
$CHAPTERS = 'Chapter 9';
-#$START_PACKAGE = 'appstream-glib';
$START_PACKAGE = 'apr';
-$STOP_PACKAGE = 'xapian-core';
+$STOP_PACKAGE = 'yaml';
$renames = array();
-$renames[ 'v' ] = 'liblinear';
$renames[ 'node-v' ] = 'node.js';
$ignores = array();
-//$current="node-v"; // For debugging
+//$current="qca"; // For debugging
$regex = array();
$regex[ 'clucene-core' ] = "/^.*Download clucene-core-([\d\.]+).tar.*$/";
@@ -23,6 +21,7 @@
$regex[ 'libiodbc' ] = "/^.*Download libiodbc-(\d[\d\.]+\d).tar.*$/";
$regex[ 'libical' ] = "/^.*v(\d[\d\.]+\d).*$/";
+
$sf = 'sourceforge.net';
$url_fix = array (
@@ -102,15 +101,11 @@
'match' => '^.*$',
'replace' =>
"https://github.com/storaged-project/libblockdev/releases" ),
- array( 'pkg' => 'libdaemon',
- 'match' => '^.*$',
- 'replace' => "http://pkgs.fedoraproject.org/repo/pkgs/libdaemon" ),
-
- array( 'pkg' => 'v', //liblinear
+ array( 'pkg' => 'liblinear',
'match' => '^.*$',
'replace' => "https://github.com/cjlin1/liblinear/releases" ),
- array( 'pkg' => 'node-v',
+ array( 'pkg' => 'node-v',
'match' => '^.*$',
'replace' => "https://nodejs.org/dist" ),
@@ -141,6 +136,10 @@
array( 'pkg' => 'json-c',
'match' => '^.*$',
'replace' => "https://s3.amazonaws.com/json-c_releases" ),
+
+ array( 'pkg' => 'qca',
+ 'match' => '^.*$',
+ 'replace' => "https://download.kde.org/stable/qca" ),
);
function get_packages( $package, $dirpath )
@@ -241,6 +240,13 @@
$dirpath .= "/$dir";
}
+ if ( $book_index == "qca" )
+ {
+ $lines = http_get_file( "$dirpath" );
+ $dir = find_max( $lines, "/\d\./", "/^.*;(\d[\d\.]*)\/.*$/" );
+ $dirpath .= "/$dir/src/";
+ }
+
// Customize http directories as needed
if ( $book_index != "json-c")
{
@@ -334,7 +340,7 @@
if ( $book_index == "libusb" )
return find_max( $lines, '/libusb v/', '/^.*libusb v([\d\.]+).*$/' );
- if ( $book_index == "v" ) // liblinear
+ if ( $book_index == "liblinear" )
return find_max( $lines, '/v\d/', '/^.*v(\d+)$/' );
if ( $book_index == "node-v" ) // node.js
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page