This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
eucalyptus-selinux.spec
133 lines (91 loc) · 3.43 KB
/
eucalyptus-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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
Name: eucalyptus-selinux
Version: 0.2.3
Release: 1%{?dist}
Summary: SELinux policy for eucalyptus
License: ISC
URL: https://github.com/eucalyptus/eucalyptus-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 eucalyptus.
%prep
%autosetup
%build
make
%install
install -Dp -m 0644 eucalyptus.if $RPM_BUILD_ROOT%{_datadir}/selinux/devel/include/contrib/eucalyptus.if
install -Dp -m 0644 eucalyptus.pp $RPM_BUILD_ROOT%{_datadir}/selinux/packages/eucalyptus.pp
%files
%license COPYING
%doc TODO
%{_datadir}/selinux/devel/include/contrib/eucalyptus.if
%{_datadir}/selinux/packages/eucalyptus.pp
%post
if /usr/sbin/selinuxenabled; then
/usr/sbin/semodule -i %{_datadir}/selinux/packages/eucalyptus.pp >/dev/null || :
if [ -e /etc/eucalyptus/nc-hooks ]; then
/usr/sbin/restorecon /etc/eucalyptus/nc-hooks || :
fi
fi
%postun
if [ $1 -eq 0 ] && /usr/sbin/selinuxenabled; then
/usr/sbin/semodule -r eucalyptus >/dev/null || :
fi
%changelog
* Mon Apr 10 2017 Garrett Holmstrom <[email protected]> - 0.2.3-1
- Version bump (0.2.3)
* Mon Apr 10 2017 Garrett Holmstrom <[email protected]> - 0.1.19-1
- Version bump (0.1.19)
* Mon Jan 23 2017 Matt Bacchi <[email protected]> - 0.2.2-1
- Version bump (0.2.2)
* Sat Jan 21 2017 Garrett Holmstrom <[email protected]> - 0.2.1-1
- Version bump (0.2.1)
* Fri Jan 13 2017 Matt Bacchi <[email protected]> - 0.2.0-1
- Version bump (0.2.0)
* Wed Jan 11 2017 Garrett Holmstrom <[email protected]> - 0.1.18-1
- Version bump (0.1.18)
* Mon Jan 9 2017 Garrett Holmstrom <[email protected]> - 0.1.17-1
- Version bump (0.1.17)
* Thu Nov 17 2016 Garrett Holmstrom <[email protected]> - 0.1.16-1
- Version bump (0.1.16)
* Mon Oct 31 2016 Garrett Holmstrom <[email protected]> - 0.1.15-1
- Version bump (0.1.15)
* Wed Oct 26 2016 Garrett Holmstrom <[email protected]> - 0.1.14-1
- Version bump (0.1.14)
- Moved policy to /usr/share/selinux/packages
* Wed Jul 6 2016 Garrett Holmstrom <[email protected]> - 0.1.13-1
- Version bump (0.1.13)
* Wed Jun 29 2016 Garrett Holmstrom <[email protected]> - 0.1.12-1
- Version bump (0.1.12)
* Tue Jun 28 2016 Garrett Holmstrom <[email protected]> - 0.1.11-1
- Version bump (0.1.11)
- Relicensed to ISC
* Fri Jun 24 2016 Garrett Holmstrom <[email protected]> - 0.1.10-1
- Version bump (0.1.10)
* Thu Jun 16 2016 Garrett Holmstrom <[email protected]> - 0.1.9-1
- Version bump (0.1.9)
* Thu Jun 9 2016 Garrett Holmstrom <[email protected]> - 0.1.8-1
- Version bump (0.1.8)
* Thu Jun 9 2016 Garrett Holmstrom <[email protected]> - 0.1.7-1
- Version bump (0.1.7)
* Wed Jun 8 2016 Garrett Holmstrom <[email protected]> - 0.1.6-1
- Version bump (0.1.6)
* Tue Jun 7 2016 Garrett Holmstrom <[email protected]> - 0.1.5-1
- Version bump (0.1.5)
* Fri May 27 2016 Garrett Holmstrom <[email protected]> - 0.1.4-1
- Version bump (0.1.4)
* Wed May 25 2016 Garrett Holmstrom <[email protected]> - 0.1.3-1
- Version bump (0.1.3)
* Mon May 23 2016 Garrett Holmstrom <[email protected]> - 0.1.2-1
- Version bump (0.1.2)
* Mon May 23 2016 Garrett Holmstrom <[email protected]> - 0.1.1-1
- Version bump (0.1.1)
* Mon Apr 4 2016 Garrett Holmstrom <[email protected]> - 0.1.0-1
- Created