X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fconnman.spec;fp=packaging%2Fconnman.spec;h=f9a90f6d8c7445462327002cb9a4af3011309c12;hb=6289f6a099afd889a013f895fca9df34028c2fb7;hp=6f12bbb2eee65b8ba0005401e362ab4603398b93;hpb=d21359e658ca906a560143a81ac1ea6e765e9dd4;p=platform%2Fupstream%2Fconnman.git 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