-
Notifications
You must be signed in to change notification settings - Fork 7
/
linstor-gateway.spec
151 lines (109 loc) · 4.94 KB
/
linstor-gateway.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
%define _firewalldir /usr/lib/firewalld
%if 0%{?suse_version}
%define firewall_macros_package firewall-macros
%else
%define firewall_macros_package firewalld-filesystem
%endif
Name: linstor-gateway
Version: 1.7.0
Release: 1
Summary: Exposes highly available LINSTOR storage via iSCSI, NFS, or NVMe-OF.
%global tarball_version %(echo "%{version}" | sed -e 's/~rc/-rc/' -e 's/~alpha/-alpha/')
URL: https://www.github.com/LINBIT/linstor-gateway
Source: %{name}-%{tarball_version}.tar.gz
BuildRoot: %{buildroot}
BuildRequires: %{firewall_macros_package}
License: GPLv3+
ExclusiveOS: linux
%description
LINSTOR Gateway manages highly available iSCSI targets, NFS exports, and NVMe-oF
targets by leveraging LINSTOR and drbd-reactor.
%prep
%setup -q -n %{name}-%{tarball_version}
%build
make
%install
install -D -m 755 %{_builddir}/%{name}-%{tarball_version}/%{name} %{buildroot}/%{_sbindir}/%{name}
install -D -m 644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{name}.xml %{buildroot}%{_firewalldir}/services/%{name}.xml
%post
%systemd_post %{name}.service
%firewalld_reload
# if drbd-reactor is already installed, install the auto-reload service
find %{_datadir}/doc/drbd-reactor* \
\( -name 'drbd-reactor-reload.path' -o -name 'drbd-reactor-reload.service' \) \
-exec cp {} %{_unitdir}/ \; || true
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun %{name}.service
%files
%defattr(-,root,root)
%{_sbindir}/%{name}
%{_unitdir}/%{name}.service
%dir %{_firewalldir}
%dir %{_firewalldir}/services
%{_firewalldir}/services/%{name}.xml
%changelog
* Tue Nov 26 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.7.0-1
- New upstream release
* Thu Jul 18 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.6.0-1
- New upstream release
* Thu Jul 04 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.6.0~rc.1-1
- New upstream release
* Wed Apr 17 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.5.0-1
- New upstream release
* Tue Apr 09 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.5.0~rc.1-1
- New upstream release
* Mon Mar 04 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.4.0-1
- New upstream release
* Tue Feb 20 2024 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.4.0~rc.1-1
- New upstream release
* Tue Oct 24 2023 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.3.0-1
- New upstream release
* Mon Oct 16 2023 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.3.0~rc.1-1
- New upstream release
* Tue Mar 14 2023 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.2.0-1
- New upstream release
* Mon Mar 06 2023 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.1.1-1
- New upstream release
* Fri Feb 24 2023 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.1.0-1
- New upstream release
* Mon Nov 21 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.0.0-1
- New upstream release
* Fri Nov 4 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 1.0.0~rc.1-1
- New upstream release
* Tue Jul 26 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.13.1-1
- New upstream release
* Mon Jun 27 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.13.0-1
- New upstream release
* Tue May 3 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.12.1-1
- New upstream release
* Sun Apr 3 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.12.0-1
- New upstream release
* Thu Mar 17 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.12.0~rc.1-1
- New upstream release
* Mon Feb 14 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.11.0-1
- New upstream release
* Tue Feb 8 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.11.0~rc.2-1
- New upstream release
* Mon Jan 31 2022 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.11.0~rc.1-1
- New upstream release
* Wed Nov 24 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.10.0-1
- New upstream release
* Wed Nov 17 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.10.0~rc.1-1
- New upstream release
* Tue Sep 28 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.9.0-1
- New upstream release
* Thu Sep 23 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.9.0~rc.3-1
- New upstream release
* Wed Sep 15 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.9.0~rc.2-1
- New upstream release
* Wed Sep 1 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.9.0~rc.1-1
- New upstream release
* Tue Mar 23 2021 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.8.0-1
- New upstream release
* Fri Dec 04 2020 Christoph Böhmwalder <christoph.boehmwalder@linbit.com> - 0.7.0-1
- Rename to linstor-gateway
* Wed Oct 09 2019 Roland Kammerer <roland.kammerer@linbit.com> - 0.1.0-1
- Initial Release