Compare commits

..

No commits in common. "9a9fb85fd97a342a260129125ecaa6507ebdc135" and "78ea31812222f21629e4c1ed4ec9ef79a9c08f13" have entirely different histories.

3 changed files with 7 additions and 19 deletions

View File

@ -16,12 +16,12 @@ usage:
@echo 'Available targets: "install", "uninstall"' @echo 'Available targets: "install", "uninstall"'
install: install:
install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(SYSCONFDIR)/apparmor.d install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(SYSCONFDIR)/apparmor.d
install buddycheck.pl $(DESTDIR)$(BINDIR)/buddycheck install buddycheck.pl $(DESTDIR)$(BINDIR)/buddycheck
pod2man buddycheck.1 > $(DESTDIR)$(MANDIR)/man1/buddycheck.1 pod2man buddycheck.1 > $(DESTDIR)$(MANDIR)/man1/buddycheck.1
sed s?__BINDIR__?$(BINDIR)? buddycheck.apparmor > $(DESTDIR)$(SYSCONFDIR)/apparmor.d/buddycheck sed s?__BINDIR__?$(BINDIR)? buddycheck.apparmor > $(SYSCONFDIR)/apparmor.d/buddycheck
uninstall: uninstall:
rm $(BINDIR)/buddycheck rm $(DESTDIR)$(BINDIR)/buddycheck
rm $(MANDIR)/man1/buddycheck.1 rm $(DESTDIR)$(MANDIR)/man1/buddycheck.1
rm $(SYSCONFDIR)/apparmor.d/buddycheck rm $(SYSCONFDIR)/apparmor.d/buddycheck

View File

@ -11,12 +11,12 @@ abi <abi/3.0>,
include <tunables/global> include <tunables/global>
profile buddycheck __BINDIR__/buddycheck { profile buddycheck /usr/local/bin/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,
__BINDIR__/buddycheck r, /usr/local/bin/buddycheck r,
} }

View File

@ -16,7 +16,6 @@
# 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,9 +24,7 @@ Summary: Health check
License: EUPL-1.2 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
%if %{with apparmor} BuildRequires: pod2man
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.
@ -41,20 +38,11 @@ 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