Topic: Local Repo
For those on the LAN with no internet connection, a local FA repo can be setup with ability to use unsigned packages. Grab the repo bundle from my GitHub Repo (may not be upto date) and extract it to your locally resolvable domain like: http://localhost.or.localdomain.com/farepo/2.3/ such that the themes, languages, charts and extensions folders are under it.
Now in the config.php file, append the following code:
// LAN repo (0), WAN repo with signed packages (1)
$repo_sign = 0;
// Comment out parameters not used
$repo_auth = array(
// 'scheme' => 'http://', // 'ftp://', 'https://'
// 'login' => '',
// 'pass' => '',
'host' => 'localhost.or.localdomain.com',
'path' => 'farepo', // no leading or trailing slashes (/)
'branch' => '2.3' // Repository branch for current sources version
);
Now edit the function get_pkg_or_list() in includes/packages.inc file:
1. Append the $repo_sign variable to the list of global variables.
2. Replace the line:
if (openssl_verify($data, $sig, $cert) <= 0) {
with
if ((!isset($repo_sign) || $repo_sign == 1) && openssl_verify($data, $sig, $cert) <= 0) {
Now the local repo is fully functional since the config.php parameters override the values in version.php.
@joe - can this flag ($repo_sign = true;) and a commented out repo array be included in the config.php file along with the changes in the includes/packages.inc in the mainstream stable distribution itself?