summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2017-02-24 14:36:58 +0900
committerchleun.moon <chleun.moon@samsung.com>2017-02-24 16:29:51 +0900
commit376f28aa4b82ec003c8579968ba42ff3050b10c5 (patch)
treeb94301abb0de0d4aa3ba95394ec6806ef4606439 /packaging
parent21e92ee0e2531e80b5bda990a99bbe72abf31991 (diff)
downloadconnman-376f28aa4b82ec003c8579968ba42ff3050b10c5.tar.gz
connman-376f28aa4b82ec003c8579968ba42ff3050b10c5.tar.bz2
connman-376f28aa4b82ec003c8579968ba42ff3050b10c5.zip
Add ipsec plugin
Change-Id: Iafe144233e8dd8bc066e00340a5853e4e16d925a Signed-off-by: cheoleun <chleun.moon@samsung.com>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/connman.spec25
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