Include AppArmor profile in RPM
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
113e33727d
commit
f3569152e8
@ -11,12 +11,12 @@ abi <abi/3.0>,
|
|||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
profile buddycheck /usr/local/bin/buddycheck {
|
profile buddycheck __BINDIR__/buddycheck {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice>
|
include <abstractions/nameservice>
|
||||||
include <abstractions/perl>
|
include <abstractions/perl>
|
||||||
|
|
||||||
/usr/bin/perl ix,
|
/usr/bin/perl ix,
|
||||||
/usr/local/bin/buddycheck r,
|
__BINDIR__/buddycheck r,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%bcond_without apparmor
|
||||||
|
|
||||||
Name: buddycheck
|
Name: buddycheck
|
||||||
Version: 1
|
Version: 1
|
||||||
@ -25,6 +26,9 @@ License: EUPL-1.2
|
|||||||
URL: https://git.com.de/Georg/buddycheck
|
URL: https://git.com.de/Georg/buddycheck
|
||||||
Source: %{name}-%{version}.tar.zst
|
Source: %{name}-%{version}.tar.zst
|
||||||
BuildRequires: pod2man
|
BuildRequires: pod2man
|
||||||
|
%if %{with apparmor}
|
||||||
|
BuildRequires: apparmor-rpm-macros
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
BuddyCheck is a tool querying the systemd health through Prometheus Node Exporter.
|
BuddyCheck is a tool querying the systemd health through Prometheus Node Exporter.
|
||||||
@ -38,11 +42,20 @@ BuddyCheck is a tool querying the systemd health through Prometheus Node Exporte
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
%if %{with apparmor}
|
||||||
|
%post
|
||||||
|
%{apparmor_reload %{_sysconfdir}/apparmor.d/%{name}}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.txt
|
%doc README.txt
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_mandir}/man1/%{name}.1%{ext_man}
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
||||||
|
%if %{without apparmor}
|
||||||
|
%exclude
|
||||||
|
%endif
|
||||||
|
%{_sysconfdir}/apparmor.d/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user