diff options
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/connman.spec | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec index b2e1d6a2..9923a4d1 100755 --- a/packaging/connman.spec +++ b/packaging/connman.spec @@ -1,5 +1,6 @@ %bcond_with connman_openconnect %bcond_without connman_openvpn +%bcond_without connman_ipsec %bcond_without connman_vpnd Name: connman @@ -24,6 +25,9 @@ BuildRequires: openconnect %if %{with connman_openvpn} BuildRequires: openvpn %endif +%if %{with connman_ipsec} +BuildRequires: strongswan +%endif BuildRequires: ca-certificates-devel BuildRequires: readline-devel #%systemd_requires @@ -64,6 +68,16 @@ Requires: openvpn OpenVPN support for Connman. %endif +%if %{with connman_ipsec} +%package plugin-ipsec +Summary: Openvpn Support for Connman +Requires: %{name} = %{version} +Requires: ipsec + +%description plugin-ipsec +OpenVPN support for Connman. +%endif + %if %{with connman_vpnd} %package connman-vpnd Summary: VPN Support for Connman @@ -136,6 +150,9 @@ chmod +x bootstrap %if %{with connman_openvpn} --enable-openvpn \ %endif +%if %{with connman_ipsec} + --enable-ipsec \ +%endif %if 0%{?enable_connman_features} %connman_features \ %endif @@ -274,6 +291,14 @@ systemctl daemon-reload %{_datadir}/dbus-1/system-services/net.connman.vpn.service %endif +%if %{with connman_ipsec} +%files plugin-ipsec +%manifest %{name}.manifest +%{_libdir}/%{name}/plugins-vpn/ipsec.so +%{_libdir}/%{name}/scripts/ipsec-script +%{_datadir}/dbus-1/system-services/net.connman.vpn.service +%endif + %if %{with connman_vpnd} %files connman-vpnd %manifest %{name}.manifest |