summaryrefslogtreecommitdiff
path: root/packaging/connman.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/connman.spec')
-rwxr-xr-xpackaging/connman.spec28
1 files changed, 28 insertions, 0 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec
index 6f12bbb..f9a90f6 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
@@ -13,6 +14,7 @@ Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libiptc)
BuildRequires: pkgconfig(xtables)
BuildRequires: pkgconfig(libsmack)
@@ -24,6 +26,10 @@ BuildRequires: openconnect
%if %{with connman_openvpn}
BuildRequires: openvpn
%endif
+%if %{with connman_ipsec}
+BuildRequires: strongswan
+BuildRequires: pkgconfig(openssl)
+%endif
BuildRequires: ca-certificates-devel
BuildRequires: readline-devel
#%systemd_requires
@@ -64,6 +70,17 @@ Requires: openvpn
OpenVPN support for Connman.
%endif
+%if %{with connman_ipsec}
+%package plugin-ipsec
+Summary: IPsec Support for Connman
+Requires: %{name} = %{version}
+Requires: strongswan
+BuildRequires: pkgconfig(openssl)
+
+%description plugin-ipsec
+OpenVPN support for Connman.
+%endif
+
%if %{with connman_vpnd}
%package connman-vpnd
Summary: VPN Support for Connman
@@ -136,6 +153,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
@@ -272,6 +292,14 @@ systemctl daemon-reload
%license COPYING
%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