-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sources for SELinux resources in spec file Bump revision Signed-off-by: Felix Kolwa <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,13 @@ Collector with the supported components for a Red Hat build of OpenTelemetry} | |
%global godocs README.md | ||
|
||
Name: %%PROJECT%% | ||
Release: 1%{?dist} | ||
Release: 2%{?dist} | ||
Summary: Red Hat build of OpenTelemetry | ||
|
||
License: Apache-2.0 | ||
|
||
Source0: %{name}-%{version}.tar.gz | ||
Source1: otel_collector_journald.te | ||
|
||
BuildRequires: systemd | ||
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} | ||
|
@@ -40,7 +41,7 @@ mkdir -p _build/bin | |
%build | ||
|
||
# Compile the SELinux policy module | ||
checkmodule -M -m -o otel_collector_journald.mod otel_collector_journald.te | ||
checkmodule -M -m -o otel_collector_journald.mod %{SOURCE1} | ||
semodule_package -o otel_collector_journald.pp -m otel_collector_journald.mod | ||
|
||
go build -ldflags "-s -w" -v -buildmode pie -mod vendor -o %{gobuilddir}/bin/opentelemetry-collector | ||
|
@@ -55,9 +56,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/opentelemetry-collector/configs | |
mkdir -p %{buildroot}%{_unitdir} | ||
|
||
# install files | ||
|
||
install -m 0644 ./otel_collector_journald.pp %{buildroot}%{_datadir}/selinux/packages/otel_collector_journald.pp | ||
|
||
install -p -m 0644 ./00-default-receivers.yaml %{buildroot}%{_sysconfdir}/opentelemetry-collector/configs/00-default-receivers.yaml | ||
install -p -m 0644 ./opentelemetry-collector.service %{buildroot}%{_unitdir}/%{name}.service | ||
|
||
|
@@ -103,12 +102,20 @@ fi | |
%{_bindir}/* | ||
|
||
%changelog | ||
* Mon Aug 19 2024 Pavol Loffay <[email protected]> - 0.107.0 | ||
* Thu Sep 12 2024 Felix Kolwa <[email protected]> - 0.107.0-2 | ||
- Fix SELinux policy resource names | ||
- Use sources for SELinux resources in spec file | ||
- Bump revision | ||
* Mon Aug 19 2024 Pavol Loffay <[email protected]> - 0.107.0-1 | ||
- Added support for aarch64 | ||
* Mon Aug 5 2024 Benedikt Bongartz <[email protected]> - 0.102.1 | ||
- add default SELinux polices | ||
- Grant access to journal logs | ||
- Grant access to UDP/TCP network sockets | ||
* Thu Aug 01 2024 Benedikt Bongartz <[email protected]> - 0.102.1-3 | ||
- Add default selinux policy for journald receiver | ||
- Bump revision | ||
* Wed Jul 24 2024 Benedikt Bongartz <[email protected]> - 0.102.1-2 | ||
- spec: strip go binary | ||
* Tue Jul 16 2024 Benedikt Bongartz <[email protected]> - 0.102.1-1 | ||
- rpm: trim date (#89) (Ben B) | ||
- Add transform processor (#88) (Ruben Vargas) | ||
* Fri Jun 28 2024 Benedikt Bongartz <[email protected]> - 0.102.1 | ||
- move microshift specifics into another rpm | ||
- bump collector version to 0.102.0 | ||
|
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