|
|
@ -1,11 +1,12 @@ |
|
|
Name: traefik |
|
|
Name: traefik |
|
|
Version: 2.3.4 |
|
|
Version: 2.3.4 |
|
|
Release: itix1 |
|
|
Release: itix2 |
|
|
Summary: The Cloud Native Application Proxy |
|
|
Summary: The Cloud Native Application Proxy |
|
|
License: MIT |
|
|
License: MIT |
|
|
Source0: https://github.com/traefik/%{name}/releases/download/v%{version}/%{name}_v%{version}_linux_amd64.tar.gz |
|
|
Source0: https://github.com/traefik/%{name}/releases/download/v%{version}/%{name}_v%{version}_linux_amd64.tar.gz |
|
|
ExclusiveArch: x86_64 |
|
|
ExclusiveArch: x86_64 |
|
|
Source1: traefik.service |
|
|
Source1: traefik.service |
|
|
|
|
|
Source2: traefik.yaml |
|
|
Requires(pre): shadow-utils |
|
|
Requires(pre): shadow-utils |
|
|
BuildRequires: systemd |
|
|
BuildRequires: systemd |
|
|
|
|
|
|
|
|
@ -26,22 +27,34 @@ onfiguration step you need. |
|
|
%prep |
|
|
%prep |
|
|
%setup -q -c |
|
|
%setup -q -c |
|
|
cp %{S:1} %{name}.service |
|
|
cp %{S:1} %{name}.service |
|
|
|
|
|
cp %{S:2} %{name}.yaml |
|
|
|
|
|
|
|
|
%build |
|
|
%build |
|
|
|
|
|
|
|
|
%install |
|
|
%install |
|
|
install -d %{buildroot}/opt/%{name}/etc/ |
|
|
install -d %{buildroot}/opt/%{name}/etc/ |
|
|
|
|
|
install -d %{buildroot}/opt/%{name}/etc/conf.d |
|
|
install -d %{buildroot}/srv/%{name}/ |
|
|
install -d %{buildroot}/srv/%{name}/ |
|
|
install -D traefik %{buildroot}/opt/%{name}/bin/traefik |
|
|
install -D traefik %{buildroot}/opt/%{name}/bin/traefik |
|
|
install -D -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service |
|
|
install -D -m 0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service |
|
|
|
|
|
install -D -m 0644 %{name}.yaml %{buildroot}/opt/%{name}/etc/%{name}.yaml |
|
|
|
|
|
touch %{buildroot}/opt/%{name}/etc/%{name}.env |
|
|
|
|
|
|
|
|
%files |
|
|
%files |
|
|
|
|
|
|
|
|
|
|
|
%defattr(0755, root, root, 0755) |
|
|
|
|
|
/opt/%{name}/bin/traefik |
|
|
|
|
|
|
|
|
%defattr(0644, root, root, 0755) |
|
|
%defattr(0644, root, root, 0755) |
|
|
%dir /opt/%{name}/bin |
|
|
%dir /opt/%{name}/bin |
|
|
|
|
|
%{_unitdir}/%{name}.service |
|
|
%dir /opt/%{name}/etc |
|
|
%dir /opt/%{name}/etc |
|
|
|
|
|
%dir /opt/%{name}/etc/conf.d |
|
|
|
|
|
%config(noreplace) /opt/%{name}/etc/%{name}.yaml |
|
|
|
|
|
%config(noreplace) /opt/%{name}/etc/%{name}.env |
|
|
|
|
|
|
|
|
|
|
|
%defattr(0600, traefik, itix-svc, 0700) |
|
|
%dir /srv/%{name} |
|
|
%dir /srv/%{name} |
|
|
%attr(0755, root, root) /opt/%{name}/bin/traefik |
|
|
|
|
|
%{_unitdir}/%{name}.service |
|
|
|
|
|
|
|
|
|
|
|
%pre |
|
|
%pre |
|
|
getent group itix-svc >/dev/null || groupadd -r itix-svc |
|
|
getent group itix-svc >/dev/null || groupadd -r itix-svc |
|
|
@ -51,6 +64,14 @@ getent passwd %{name} >/dev/null || useradd -r -g itix-svc \ |
|
|
|
|
|
|
|
|
exit 0 |
|
|
exit 0 |
|
|
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|
|
%systemd_post %{name}.service |
|
|
|
|
|
|
|
|
|
|
|
%preun |
|
|
|
|
|
%systemd_preun %{name}.service |
|
|
|
|
|
|
|
|
|
|
|
%postun |
|
|
|
|
|
%systemd_postun_with_restart %{name}.service |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
%changelog |
|
|
* Mon Feb 22 2021 Nicolas MASSE <nicolas.masse@itix.fr> - 2.3.4-itix1 |
|
|
|
|
|
- First release |
|
|
|
|
|
|