| |
@@ -87,6 +87,13 @@
|
| |
Requires(preun): systemd
|
| |
Requires(postun): systemd
|
| |
|
| |
+ %if "%{_sbindir}" == "%{_bindir}"
|
| |
+ # Compat symlinks for Requires in other packages.
|
| |
+ # We rely on filesystem to create the symlinks for us.
|
| |
+ Requires: filesystem(unmerged-sbin-symlinks)
|
| |
+ Provides: /usr/sbin/ipsec
|
| |
+ %endif
|
| |
+
|
| |
%description
|
| |
Libreswan is a free implementation of IPsec & IKE for Linux. IPsec is
|
| |
the Internet Protocol Security and uses strong cryptography to provide
|
| |
@@ -152,6 +159,11 @@
|
| |
> %{buildroot}%{_sysconfdir}/ipsec.secrets
|
| |
rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc*
|
| |
|
| |
+ %if "%{_sbindir}" == "%{_bindir}"
|
| |
+ # make install gets the target directory wrong
|
| |
+ mv -v %{buildroot}/usr/sbin/ipsec %{buildroot}/%{_bindir}/
|
| |
+ %endif
|
| |
+
|
| |
%if 0%{with_cavstests}
|
| |
%check
|
| |
# There is an elaborate upstream testing infrastructure which we do not
|
| |
In preparation for https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin.
NetworkManager-libreswan requires /usr/sbin/ipsec.