-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
250 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Spec file for AIX systems | ||
Name: wazuh-agent | ||
Version: 4.5.3 | ||
Version: 4.5.4 | ||
Release: 1 | ||
License: GPL | ||
URL: https://www.wazuh.com/ | ||
|
@@ -290,6 +290,8 @@ rm -fr %{buildroot} | |
%attr(750, root, wazuh) %{_localstatedir}/wodles/* | ||
|
||
%changelog | ||
* Tue Oct 24 2023 support <[email protected]> - 4.5.4 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
* Tue Oct 10 2023 support <[email protected]> - 4.5.3 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
* Thu Aug 31 2023 support <[email protected]> - 4.5.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
""" | ||
This script is used to bump the version of the Wazuh packages repository. | ||
Copyright (C) 2015-2020, Wazuh Inc. | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
""" | ||
import argparse | ||
import datetime | ||
import glob | ||
import re | ||
from packaging.version import Version | ||
|
||
FORMAT_STRING="%m-%d-%Y" | ||
|
||
arg_parser=argparse.ArgumentParser() | ||
arg_parser.add_argument('-v', '--version', action='store', dest='version', | ||
help='Version to bump to', required=True) | ||
arg_parser.add_argument('-r', '--revision', action='store', dest='revision', | ||
help='Revision to bump to. Default: 1', default=1) | ||
arg_parser.add_argument('-d', '--date', action='store', dest='date', | ||
help='Date to bump to. Format: m-d-Y. Default: today', | ||
default=datetime.date.today().strftime(FORMAT_STRING)) | ||
args=arg_parser.parse_args() | ||
|
||
date=datetime.datetime.strptime(args.date, FORMAT_STRING) | ||
version=Version(args.version) | ||
|
||
## Find files to bump .spec, changelog, pkginfo, .pkgproj, test-*.sh, | ||
## installVariables.sh, CHANGELOG.md | ||
spec_files=glob.glob('**/*.spec', recursive=True) | ||
changelog_files=glob.glob('**/changelog', recursive=True) | ||
copyright_files=glob.glob('**/copyright', recursive=True) | ||
pkginfo_files=glob.glob('**/pkginfo', recursive=True) | ||
pkgproj_files=glob.glob('**/*.pkgproj', recursive=True) | ||
test_files=glob.glob('**/test-*.sh', recursive=True) | ||
install_variables_files=glob.glob('**/installVariables.sh', recursive=True) | ||
changelog_md_files=glob.glob('**/CHANGELOG.md', recursive=True) | ||
|
||
## Bump version in .spec files | ||
SPEC_FORMAT_STRING="%a %b %d %Y" | ||
spec_date=date.strftime(SPEC_FORMAT_STRING) | ||
for spec_file in spec_files: | ||
with open(spec_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + spec_file) | ||
filedata=file.read() | ||
# Replace version and revision | ||
REGEX=r'Version:\s*(\d+\.\d+\.\d+)' | ||
filedata=re.sub(REGEX, f"Version: {version}", filedata) | ||
REGEX=r'Revision:\s*(\d+)' | ||
filedata=re.sub(REGEX, 'Revision: ' + str(args.revision), | ||
filedata) | ||
# Add new version to changelog | ||
REGEX=r'%changelog' | ||
changelog_string=(f"* {spec_date} support <[email protected]> - {version}" | ||
"\n- More info: https://documentation.wazuh.com/current/release-" | ||
f"notes/release-{version.major}-{version.minor}-" | ||
f"{version.micro}.html") | ||
filedata=re.sub(REGEX, '%changelog\n' + changelog_string, filedata) | ||
|
||
with open(spec_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in deb changelog files | ||
DEB_FORMAT_STRING="%a, %d %b %Y %H:%M:%S +0000" | ||
deb_changelog_date=date.strftime(DEB_FORMAT_STRING) | ||
for changelog_file in changelog_files: | ||
with open(changelog_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + changelog_file) | ||
filedata=file.read() | ||
install_type=re.search(r'(wazuh-(agent|manager|indexer|dashboard))', | ||
filedata).group(1) | ||
changelog_string=(f"wazuh-{install_type} ({version}-RELEASE) stable; " | ||
"urgency=low\n\n * More info: https://documentation.wazuh.com/" | ||
f"current/release-notes/release-{version.major}-{version.minor}-" | ||
f"{version.micro}.html\n\n -- " | ||
f"Wazuh, Inc <[email protected]> {deb_changelog_date}\n\n") | ||
# Add new version to changelog | ||
filedata=changelog_string + filedata | ||
|
||
with open(changelog_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in deb copyrigth files | ||
|
||
for copyrigth_file in copyright_files: | ||
with open(copyrigth_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + copyrigth_file) | ||
filedata=file.read() | ||
# Replace version and revision | ||
REGEX=(r'Wazuh, Inc <[email protected]> on ' | ||
r'(\w+),\s(\d+)\s(\w+)\s(\d+)\s(\d+):(\d+):(\d+)\s\+(\d+)') | ||
filedata=re.sub(REGEX, | ||
f"Wazuh, Inc <[email protected]> on {deb_changelog_date}", | ||
filedata) | ||
|
||
with open(copyrigth_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in pkginfo files | ||
|
||
PKGINFO_FORMAT_STRING="%d%b%Y" | ||
|
||
for pkginfo_file in pkginfo_files: | ||
with open(pkginfo_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + pkginfo_file) | ||
filedata=file.read() | ||
# Replace version and revision | ||
REGEX=r'VERSION=\"(\d+\.\d+\.\d+)\"' | ||
filedata=re.sub(REGEX, f'VERSION=\"{version}\"', filedata) | ||
REGEX=r'PSTAMP=(.*)' | ||
filedata=re.sub(REGEX, | ||
f'PSTAMP=\"{date.strftime(PKGINFO_FORMAT_STRING)}\"', | ||
filedata) | ||
|
||
with open(pkginfo_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in .pkgproj files | ||
|
||
for pkgproj_file in pkgproj_files: | ||
with open(pkgproj_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + pkgproj_file) | ||
filedata=file.read() | ||
# Replace version and revision | ||
REGEX=r'<string>(\d+\.\d+\.\d+)-(\d+)</string>' | ||
filedata=re.sub(REGEX, f'<string>{version}-{args.revision}</string>', | ||
filedata) | ||
REGEX=r'<string>wazuh-agent-(\d+\.\d+\.\d+)-(\d+)</string>' | ||
filedata=re.sub(REGEX, | ||
f'<string>wazuh-agent-{version}-{args.revision}</string>', | ||
filedata) | ||
|
||
with open(pkgproj_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in test-*.sh files | ||
|
||
for test_file in test_files: | ||
with open(test_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + test_file) | ||
filedata=file.read() | ||
# Replace version and revision | ||
REGEX=r'wazuh-manager.x86_64\s+(\d+\.\d+\.\d+)-(\d+)' | ||
filedata=re.sub(REGEX, | ||
f'wazuh-manager.x86_64 {version}-{args.revision}', | ||
filedata) | ||
REGEX=r'wazuh_version=\"(\d+\.\d+\.\d+)\"' | ||
filedata=re.sub(REGEX, f'wazuh_version=\"{version}\"', filedata) | ||
|
||
with open(test_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in installVariables.sh files | ||
|
||
for install_variables_file in install_variables_files: | ||
with open(install_variables_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + install_variables_file) | ||
filedata=file.read() | ||
# Replace version and revision | ||
REGEX=r'wazuh_major=\"(\d+\.\d+)\"' | ||
filedata=re.sub(REGEX, | ||
f'wazuh_major=\"{version.major}.{version.minor}\"', | ||
filedata) | ||
REGEX=r'wazuh_version=\"(\d+\.\d+\.\d+)\"' | ||
filedata=re.sub(REGEX, f'wazuh_version=\"{version}\"', filedata) | ||
|
||
with open(install_variables_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) | ||
|
||
## Bump version in CHANGELOG.md files | ||
|
||
for changelog_md_file in changelog_md_files: | ||
with open(changelog_md_file, 'r', encoding="utf-8") as file: | ||
print('Bumping version in ' + changelog_md_file) | ||
filedata=file.read() | ||
# Add new version to changelog | ||
REGEX=(r'All notable changes to this project ' | ||
r'will be documented in this file.') | ||
changelog_string=(f"## [{version}]\n\n- https://github.com/wazuh/" | ||
f"wazuh-packages/releases/tag/v{version}") | ||
filedata=re.sub(REGEX, REGEX + '\n' + changelog_string, | ||
filedata) | ||
|
||
with open(changelog_md_file, 'w', encoding="utf-8") as file: | ||
file.write(filedata) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
wazuh-wazuh-agent (4.5.4-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
|
||
-- Wazuh, Inc <[email protected]> Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
wazuh-agent (4.5.3-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
This work was packaged for Debian by: | ||
|
||
Wazuh, Inc <[email protected]> on Tue, 10 Oct 2023 00:00:00 +0000 | ||
Wazuh, Inc <[email protected]> on Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
It was downloaded from: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
wazuh-wazuh-manager (4.5.4-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
|
||
-- Wazuh, Inc <[email protected]> Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
wazuh-manager (4.5.3-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
This work was packaged for Debian by: | ||
|
||
Wazuh, Inc <[email protected]> on Tue, 10 Oct 2023 00:00:00 +0000 | ||
Wazuh, Inc <[email protected]> on Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
It was downloaded from: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
Summary: Wazuh helps you to gain security visibility into your infrastructure by monitoring hosts at an operating system and application level. It provides the following capabilities: log analysis, file integrity monitoring, intrusions detection and policy and compliance monitoring | ||
Name: wazuh-agent | ||
Version: 4.5.3 | ||
Version: 4.5.4 | ||
Release: %{_release} | ||
License: GPL | ||
Group: System Environment/Daemons | ||
|
@@ -619,6 +619,8 @@ rm -fr %{buildroot} | |
%attr(750, root, wazuh) %{_localstatedir}/wodles/gcloud/* | ||
|
||
%changelog | ||
* Tue Oct 24 2023 support <[email protected]> - 4.5.4 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
* Tue Oct 10 2023 support <[email protected]> - 4.5.3 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
* Thu Aug 31 2023 support <[email protected]> - 4.5.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
Summary: Wazuh helps you to gain security visibility into your infrastructure by monitoring hosts at an operating system and application level. It provides the following capabilities: log analysis, file integrity monitoring, intrusions detection and policy and compliance monitoring | ||
Name: wazuh-manager | ||
Version: 4.5.3 | ||
Version: 4.5.4 | ||
Release: %{_release} | ||
License: GPL | ||
Group: System Environment/Daemons | ||
|
@@ -841,6 +841,8 @@ rm -fr %{buildroot} | |
%attr(750, root, wazuh) %{_localstatedir}/wodles/gcloud/* | ||
|
||
%changelog | ||
* Tue Oct 24 2023 support <[email protected]> - 4.5.4 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
* Tue Oct 10 2023 support <[email protected]> - 4.5.3 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
* Thu Aug 31 2023 support <[email protected]> - 4.5.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
NAME=Wazuh - Wazuh unifies historically separate functions into a single agent and platform architecture. Providing protection for public clouds, private clouds, and on-premise data centers. | ||
PKG="wazuh-agent" | ||
VERSION="4.5.3" | ||
VERSION="4.5.4" | ||
ARCH="i386" | ||
CLASSES="none" | ||
CATEGORY="system" | ||
VENDOR="Wazuh, Inc <[email protected]>" | ||
PSTAMP="10Oct2023" | ||
PSTAMP="24Oct2023" | ||
EMAIL="[email protected]" | ||
ISTATES="S s 1 2 3" | ||
RSTATES="S s 1 2 3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
wazuh-wazuh-dashboard (4.5.4-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
|
||
-- Wazuh, Inc <[email protected]> Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
wazuh-dashboard (4.5.3-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
This work was packaged for Debian by: | ||
|
||
Wazuh, Inc <[email protected]> on Tue, 10 Oct 2023 00:00:00 +0000 | ||
Wazuh, Inc <[email protected]> on Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
It was downloaded from: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,6 +397,8 @@ rm -fr %{buildroot} | |
%attr(640, root, root) "/etc/systemd/system/wazuh-dashboard.service" | ||
|
||
%changelog | ||
* Tue Oct 24 2023 support <[email protected]> - 4.5.4 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
* Tue Oct 10 2023 support <[email protected]> - 4.5.3 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
* Thu Aug 31 2023 support <[email protected]> - 4.5.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
wazuh-wazuh-indexer (4.5.4-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
|
||
-- Wazuh, Inc <[email protected]> Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
wazuh-indexer (4.5.3-RELEASE) stable; urgency=low | ||
|
||
* More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
This work was packaged for Debian by: | ||
|
||
Wazuh, Inc <[email protected]> on Tue, 10 Oct 2023 00:00:00 +0000 | ||
Wazuh, Inc <[email protected]> on Tue, 24 Oct 2023 00:00:00 +0000 | ||
|
||
It was downloaded from: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1384,6 +1384,8 @@ rm -fr %{buildroot} | |
%attr(640, %{USER}, %{GROUP}) %{INSTALL_DIR}/jdk/lib/security/blocked.certs | ||
|
||
%changelog | ||
* Tue Oct 24 2023 support <[email protected]> - 4.5.4 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-4.html | ||
* Tue Oct 10 2023 support <[email protected]> - 4.5.3 | ||
- More info: https://documentation.wazuh.com/current/release-notes/release-4-5-3.html | ||
* Thu Aug 31 2023 support <[email protected]> - 4.5.2 | ||
|
Oops, something went wrong.