-
Notifications
You must be signed in to change notification settings - Fork 19
/
oci-umount.spec
112 lines (91 loc) · 3.88 KB
/
oci-umount.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
%global provider github
%global provider_tld com
%global project projectatomic
%global repo oci-umount
# https://github.com/projectatomic/oci-umount
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global commit 51e7c50598412a1da6e063a9d9a765b7299344ee
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: oci-umount
Epoch: 2
Version: 2.5
Release: 1.git%{shortcommit}%{?dist}
Summary: OCI umount hook for docker
Group: Applications/Text
License: GPLv3+
URL: https://%{provider_prefix}
Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
#exclude ppc64, the same arches as docker
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 ppc64le s390x %{mips}
Obsoletes: docker-oci-umount < 2:1.13.1-13
BuildRequires: gcc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: pkgconfig(yajl)
BuildRequires: pkgconfig(mount)
BuildRequires: golang-github-cpuguy83-go-md2man
BuildRequires: pcre-devel
%description
OCI umount hooks umount potential leaked mount points in a containers
mount name-spaces
%prep
%setup -q -n %{name}-%{commit}
%build
autoreconf -i
%configure --libexecdir=%{_libexecdir}/oci/hooks.d/
%make_build
%install
%make_install
install -d %{buildroot}%{_datadir}/%{name}/%{name}.d
%files
%{_libexecdir}/oci/hooks.d/%{name}
%{_mandir}/man1/%{name}.1*
%doc README.md
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{name}.conf
%dir %{_libexecdir}/oci
%dir %{_libexecdir}/oci/hooks.d
%dir %{_datadir}/containers/oci/hooks.d
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{name}.d
%{_datadir}/%{name}/oci-umount-options.conf
%{_datadir}/containers/oci/hooks.d/%{name}.json
%ghost %{_sysconfdir}/%{name}/%{name}.d
%ghost /etc/oci-umount/oci-umount-options.conf
%changelog
* Fri Feb 1 2019 Dan Walsh <dwalsh@redhat.com> - 2:2.5.1-1.git
- Add man page.
- Cleanup issues fround with coverity
* Wed Feb 28 2018 Dan Walsh <dwalsh@redhat.com> - 2:2.4.1-1.git
- Add new paths for CRI-O
* Mon Jan 22 2018 Dan Walsh <dwalsh@redhat.com> - 2:2.3.3-1.git
- Support passing of stage via stage environment variable.
* Thu Dec 21 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.3.2-1.git
- Fix oci-umount to run in stages to support CRI-O
* Tue Nov 7 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.3.1-1.git51e7c505
- Provide a knob log_level to control verbosity of messages
* Thu Sep 21 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.2.0-2.git0a4dcd6
* Thu Sep 21 2017 Dan Walsh <dwalsh@redhat.com> - 2:2.2.0-2.git0a4dcd6
- Add support for multiple configuration files.
oci-umount will still read config file /etc/oci-umount.conf if it
exists, but will also read config files in /usr/share/oci-umount/oci-umount.d
and config files in /etc/oci-umount/oci-umount.d. If the same file name exists
in both directories, then oci-umount will only use the content in /ect/oci-umount/oci-umount.d.
- Make Logs less noisy
- Improve logs output, adding containier id, and needed file information
- Add support for specifying submounts PATH/* will unmount all mountpoints
under PATH in a container
- Support for oci configuration files to specify when to run the plugin
* Thu Sep 21 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2:2.2.0-1.git0a4dcd6
- bump to v2.2.0
* Thu Aug 17 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 2:2.0.0-2.gitf90b64c
- rebased to f90b64c144ff1a126f7c57b32396e8990ca696fd
* Thu Jul 27 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 2:1.13-103.git7623f6a
- obsolete with epoch
* Thu Jul 20 2017 fkluknav <fkluknav@redhat.com> - 2:1.13-102.git7623f6a
- fixes according to package review
* Mon Jul 17 2017 fkluknav <fkluknav@redhat.com> - 2:1.13-101.git7623f6a
- adapted for Fedora, versioning continues from the current docker version
* Wed May 17 2017 Dan Walsh <dwalsh@redhat.com> - 0.1.1
- Initial RPM release