summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkmodular62
1 files changed, 56 insertions, 6 deletions
diff --git a/mkmodular b/mkmodular
index 0e6e9227..30e5f97a 100755
--- a/mkmodular
+++ b/mkmodular
@@ -70,6 +70,47 @@ data:
EOT;
+$template_redis = <<< EOT
+---
+document: modulemd
+version: 2
+data:
+ name: redis
+ stream: remi-@VERSION@
+ version: @DATE@
+ context: 00000000
+ arch: @ARCH@
+ summary: Redis persistent key-value database
+ description: >-
+ Alternative redis @VERSION@ module.
+ The remi-@VERSION@ stream provides more recent versions
+ and than default @VERSION@ stream.
+ license:
+ module:
+ - GPLv2+
+ content:
+ - BSD and MIT
+ - CC-BY-SA
+ dependencies:
+ - buildrequires:
+ platform: [@DIST@]
+ requires:
+@DEPS@
+ references:
+ documentation: https://redis.io/documentation
+ tracker: https://github.com/antirez/redis/issues
+ profiles:
+ default:
+ rpms:
+ - redis
+ api:
+ rpms:
+ - redis
+ artifacts:
+ rpms:
+
+EOT;
+
$template_glpi = <<< EOT
---
document: modulemd
@@ -127,6 +168,14 @@ data:
9.2: [default]
9.3: [default]
...
+---
+document: modulemd-defaults
+version: 1
+data:
+ module: redis
+ profiles:
+ remi-5.0: [default]
+...
EOT;
@@ -235,21 +284,22 @@ if (count($_SERVER['argv'])<2 || in_array('f29', $_SERVER['argv'])) {
}
if (count($_SERVER['argv'])<2 || in_array('el8', $_SERVER['argv'])) {
- $dest = 'enterprise/8/modular/x86_64';
+ $dest = 'enterprise/8/modular-test/x86_64';
echo "Populate $dest\n";
cleanup($dest);
$deps = ['platform' => 'el8', 'nginx' => '1.14', 'httpd' => '2.4'];
- $mod = genModule('enterprise/8/php72/x86_64', $dest, '*.rpm', '7.2', 'x86_64', $deps, $template_php);
- $mod .= genModule('enterprise/8/php73/x86_64', $dest, '*.rpm', '7.3', 'x86_64', $deps, $template_php);
+ $mod = genModule('enterprise/8/test72/x86_64', $dest, '*.rpm', '7.2', 'x86_64', $deps, $template_php);
+ $mod .= genModule('enterprise/8/test73/x86_64', $dest, '*.rpm', '7.3', 'x86_64', $deps, $template_php);
$mod .= $defaults;
createRepo($dest, $mod);
- $dest = 'enterprise/8/modular-test/x86_64';
+ $dest = 'enterprise/8/modular/x86_64';
echo "Populate $dest\n";
cleanup($dest);
$deps = ['platform' => 'el8', 'nginx' => '1.14', 'httpd' => '2.4'];
- $mod = genModule('enterprise/8/test72/x86_64', $dest, '*.rpm', '7.2', 'x86_64', $deps, $template_php);
- $mod .= genModule('enterprise/8/test73/x86_64', $dest, '*.rpm', '7.3', 'x86_64', $deps, $template_php);
+ $mod = genModule('enterprise/8/php72/x86_64', $dest, '*.rpm', '7.2', 'x86_64', $deps, $template_php);
+ $mod .= genModule('enterprise/8/php73/x86_64', $dest, '*.rpm', '7.3', 'x86_64', $deps, $template_php);
+ $mod .= genModule('enterprise/8/remi/x86_64', $dest, 'redis*.rpm', '5.0', 'x86_64', $deps, $template_redis);
$mod .= $defaults;
createRepo($dest, $mod);
}