forked from eucalyptus/eucaconsole-selinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eucaconsole-selinux.spec
67 lines (45 loc) · 1.57 KB
/
eucaconsole-selinux.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Name: eucaconsole-selinux
Version: 0.1.3
Release: 1%{?dist}
Summary: SELinux policy for eucaconsole
License: ISC
URL: https://github.com/eucalyptus/eucaconsole-selinux
Source0: %{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: selinux-policy-devel
Requires: libselinux-utils
Requires: policycoreutils
Requires(post): policycoreutils
Requires(post): selinux-policy-base >= %{_selinux_policy_version}
Requires(postun): policycoreutils
%description
This package installs and sets up the SELinux policy security module
for eucaconsole.
%prep
%autosetup
%build
make
%install
install -Dp -m 0644 eucaconsole.if $RPM_BUILD_ROOT%{_datadir}/selinux/devel/include/contrib/eucaconsole.if
install -Dp -m 0644 eucaconsole.pp $RPM_BUILD_ROOT%{_datadir}/selinux/packages/eucaconsole.pp
%files
%license COPYING
%{_datadir}/selinux/devel/include/contrib/eucaconsole.if
%{_datadir}/selinux/packages/eucaconsole.pp
%post
if /usr/sbin/selinuxenabled; then
/usr/sbin/semodule -i %{_datadir}/selinux/packages/eucaconsole.pp >/dev/null || :
fi
%postun
if [ $1 -eq 0 ] && /usr/sbin/selinuxenabled; then
/usr/sbin/semodule -r eucaconsole >/dev/null || :
fi
%changelog
* Tue Jun 13 2017 Garrett Holmstrom <[email protected]> - 0.1.3-1
- Version bump (0.1.3)
* Tue Feb 14 2017 Garrett Holmstrom <[email protected]> - 0.1.2-1
- Version bump (0.1.2)
* Wed Oct 26 2016 Garrett Holmstrom <[email protected]> - 0.1.1-1
- Moved policy to /usr/share/selinux/packages
* Tue Jul 12 2016 Garrett Holmstrom <[email protected]> - 0.1.0-1
- Created