|
|
a85d1c |
From 9d071a9b4b40f0f86bb0b739b72c0b9b4870f060 Mon Sep 17 00:00:00 2001
|
|
|
a85d1c |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a85d1c |
Date: Fri, 14 May 2021 09:42:08 +0200
|
|
|
a85d1c |
Subject: Initial redhat build configuation.
|
|
|
a85d1c |
|
|
|
a85d1c |
Using .distro repository to hold redhat tools and configuration.
|
|
|
a85d1c |
|
|
|
a85d1c |
Package can be built on brew using rh-rhel-koji command.
|
|
|
a85d1c |
|
|
|
a85d1c |
Note: Old rh-brew target is supported.
|
|
|
a85d1c |
|
|
|
a85d1c |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
a85d1c |
|
|
|
a85d1c |
Merged patches (2.7.0.6):
|
|
|
a85d1c |
- 896c5c83 Require iptables package
|
|
|
a85d1c |
- a702a0d1 (origin/rhel-9.0.0-beta) source-git: Use dynamic SRPM_NAME
|
|
|
a85d1c |
---
|
|
|
a85d1c |
.distro/Makefile | 73 ++++++
|
|
|
a85d1c |
.distro/Makefile.common | 18 ++
|
|
|
a85d1c |
.distro/WALinuxAgent.spec.template | 254 +++++++++++++++++++++
|
|
|
a85d1c |
.distro/module-setup.sh | 16 ++
|
|
|
a85d1c |
.distro/rpmbuild/BUILD/.gitignore | 2 +
|
|
|
a85d1c |
.distro/rpmbuild/RPMS/.gitignore | 2 +
|
|
|
a85d1c |
.distro/rpmbuild/SOURCES/.gitignore | 2 +
|
|
|
a85d1c |
.distro/rpmbuild/SPECS/.gitignore | 2 +
|
|
|
a85d1c |
.distro/rpmbuild/SRPMS/.gitignore | 2 +
|
|
|
a85d1c |
.distro/scripts/extract_build_cmd.py | 83 +++++++
|
|
|
a85d1c |
.distro/scripts/frh.py | 24 ++
|
|
|
a85d1c |
.distro/scripts/git-backport-diff | 327 +++++++++++++++++++++++++++
|
|
|
a85d1c |
.distro/scripts/git-compile-check | 215 ++++++++++++++++++
|
|
|
a85d1c |
.distro/scripts/process-patches.sh | 92 ++++++++
|
|
|
a85d1c |
.distro/scripts/tarball_checksum.sh | 3 +
|
|
|
a85d1c |
setup.py | 4 +-
|
|
|
a85d1c |
16 files changed, 1117 insertions(+), 2 deletions(-)
|
|
|
a85d1c |
create mode 100644 .distro/Makefile
|
|
|
a85d1c |
create mode 100644 .distro/Makefile.common
|
|
|
a85d1c |
create mode 100644 .distro/WALinuxAgent.spec.template
|
|
|
a85d1c |
create mode 100644 .distro/module-setup.sh
|
|
|
a85d1c |
create mode 100644 .distro/rpmbuild/BUILD/.gitignore
|
|
|
a85d1c |
create mode 100644 .distro/rpmbuild/RPMS/.gitignore
|
|
|
a85d1c |
create mode 100644 .distro/rpmbuild/SOURCES/.gitignore
|
|
|
a85d1c |
create mode 100644 .distro/rpmbuild/SPECS/.gitignore
|
|
|
a85d1c |
create mode 100644 .distro/rpmbuild/SRPMS/.gitignore
|
|
|
a85d1c |
create mode 100755 .distro/scripts/extract_build_cmd.py
|
|
|
a85d1c |
create mode 100755 .distro/scripts/frh.py
|
|
|
a85d1c |
create mode 100755 .distro/scripts/git-backport-diff
|
|
|
a85d1c |
create mode 100755 .distro/scripts/git-compile-check
|
|
|
a85d1c |
create mode 100755 .distro/scripts/process-patches.sh
|
|
|
a85d1c |
create mode 100755 .distro/scripts/tarball_checksum.sh
|
|
|
a85d1c |
|
|
|
a85d1c |
diff --git a/setup.py b/setup.py
|
|
|
a85d1c |
index 12c9e1d6..e4d7cf7e 100755
|
|
|
a85d1c |
--- a/setup.py
|
|
|
a85d1c |
+++ b/setup.py
|
|
|
a85d1c |
@@ -97,7 +97,7 @@ def get_data_files(name, version, fullname): # pylint: disable=R0912
|
|
|
a85d1c |
agent_bin_path = osutil.get_agent_bin_path()
|
|
|
a85d1c |
|
|
|
a85d1c |
if name in ('redhat', 'centos', 'almalinux', 'cloudlinux'): # pylint: disable=R1714
|
|
|
a85d1c |
- if version.startswith("8.2"):
|
|
|
a85d1c |
+ if version.startswith("9"):
|
|
|
a85d1c |
# redhat8+ default to py3
|
|
|
a85d1c |
set_bin_files(data_files, dest=agent_bin_path,
|
|
|
a85d1c |
src=["bin/py3/waagent", "bin/waagent2.0"])
|
|
|
a85d1c |
@@ -106,7 +106,7 @@ def get_data_files(name, version, fullname): # pylint: disable=R0912
|
|
|
a85d1c |
set_conf_files(data_files)
|
|
|
a85d1c |
set_logrotate_files(data_files)
|
|
|
a85d1c |
set_udev_files(data_files)
|
|
|
a85d1c |
- if version.startswith("8.2"):
|
|
|
a85d1c |
+ if version.startswith("9"):
|
|
|
a85d1c |
# redhat 8+ uses systemd and python3
|
|
|
a85d1c |
set_systemd_files(data_files, dest=systemd_dir_path,
|
|
|
a85d1c |
src=["init/redhat/waagent.service",
|
|
|
a85d1c |
--
|
|
|
a85d1c |
2.31.1
|
|
|
a85d1c |
|