Line 8... |
Line 8... |
8 |
files. buildidx will generate the index file and save it into the package
|
8 |
files. buildidx will generate the index file and save it into the package
|
9 |
repository.
|
9 |
repository.
|
10 |
|
10 |
|
11 |
requires php-zip
|
11 |
requires php-zip
|
12 |
|
12 |
|
- |
|
13 |
14 oct 2024: tolerate single-file documentation of CORE pkgs in DOC/PKGNAME.TXT
|
13 |
20 may 2024: directory for alternative kernels changed to "KERNEL"
|
14 |
20 may 2024: directory for alternative kernels changed to "KERNEL"
|
14 |
10 mar 2024: support for "url" in LSM files
|
15 |
10 mar 2024: support for "url" in LSM files
|
15 |
01 feb 2024: computes the "latest" collection of symlinks
|
16 |
01 feb 2024: computes the "latest" collection of symlinks
|
16 |
24 nov 2023: SVED included in the MS-DOS compat list instead of EDIT + support for "release xyz" versions
|
17 |
24 nov 2023: SVED included in the MS-DOS compat list instead of EDIT + support for "release xyz" versions
|
17 |
25 aug 2023: validation of the hwreq section in LSM files
|
18 |
25 aug 2023: validation of the hwreq section in LSM files
|
Line 41... |
Line 42... |
41 |
10 jul 2013: changed unzip calls to 7za (to handle cases when appinfo is compressed with lzma)
|
42 |
10 jul 2013: changed unzip calls to 7za (to handle cases when appinfo is compressed with lzma)
|
42 |
04 feb 2013: added CRC32 support
|
43 |
04 feb 2013: added CRC32 support
|
43 |
22 sep 2012: forked 1st version from FDUPDATE builder
|
44 |
22 sep 2012: forked 1st version from FDUPDATE builder
|
44 |
*/
|
45 |
*/
|
45 |
|
46 |
|
46 |
$PVER = "20240520";
|
47 |
$PVER = "20241014";
|
47 |
|
48 |
|
48 |
|
49 |
|
49 |
// computes the BSD sum of a file and returns it
|
50 |
// computes the BSD sum of a file and returns it
|
50 |
function file2bsum($fname) {
|
51 |
function file2bsum($fname) {
|
51 |
$result = 0;
|
52 |
$result = 0;
|
Line 400... |
Line 401... |
400 |
}
|
401 |
}
|
401 |
if ($core_or_msdoscompat == 1) {
|
402 |
if ($core_or_msdoscompat == 1) {
|
402 |
if (str_head_is($f, 'bin/')) continue;
|
403 |
if (str_head_is($f, 'bin/')) continue;
|
403 |
if (str_head_is($f, 'cpi/')) continue;
|
404 |
if (str_head_is($f, 'cpi/')) continue;
|
404 |
if (str_head_is($f, "doc/{$pkgdir}/")) continue;
|
405 |
if (str_head_is($f, "doc/{$pkgdir}/")) continue;
|
- |
|
406 |
if ($f === "doc/{$pkgnam}.txt") continue;
|
405 |
if ($f === 'doc/') continue;
|
407 |
if ($f === 'doc/') continue;
|
406 |
if (str_head_is($f, "nls/{$pkgdir}.")) continue;
|
408 |
if (str_head_is($f, "nls/{$pkgdir}.")) continue;
|
407 |
if ($f === 'nls/') continue;
|
409 |
if ($f === 'nls/') continue;
|
408 |
}
|
410 |
}
|
409 |
// SVARCOM is allowed to have a root-based COMMAND.COM file
|
411 |
// SVARCOM and FREECOM are allowed to have a root-based COMMAND.COM file
|
410 |
if ($pkgnam === 'svarcom') {
|
412 |
if (($pkgnam === 'svarcom') || ($pkgnam === 'freecom')) {
|
411 |
if ($f === 'command.com') continue;
|
413 |
if ($f === 'command.com') continue;
|
412 |
}
|
414 |
}
|
413 |
// the help package is allowed to put files in... help
|
415 |
// the help package is allowed to put files in... help
|
414 |
if (($pkgnam == 'help') && (str_head_is($f, 'help/'))) continue;
|
416 |
if (($pkgnam == 'help') && (str_head_is($f, 'help/'))) continue;
|
415 |
// must be category-prefixed file, add it to the list of categories for this package
|
417 |
// must be category-prefixed file, add it to the list of categories for this package
|