diff options
author | hyunuktak <hyunuk.tak@samsung.com> | 2016-01-04 14:15:48 +0900 |
---|---|---|
committer | hyunuktak <hyunuk.tak@samsung.com> | 2016-01-04 14:15:54 +0900 |
commit | 2de1944cb9184bd2ff37103d71d24db06314728f (patch) | |
tree | 2fd1d7ab1a259a2ef982b9655bb6ac951b0723fa /packaging | |
parent | 8769e464f3fb7608e7429ef59d24856eadc0240a (diff) | |
download | connman-2de1944cb9184bd2ff37103d71d24db06314728f.tar.gz connman-2de1944cb9184bd2ff37103d71d24db06314728f.tar.bz2 connman-2de1944cb9184bd2ff37103d71d24db06314728f.zip |
Added Connman VPN package
Change-Id: I0f33c30fc20c9e6b48f159e0a0a5a13193cf8ab9
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/connman.spec | 102 |
1 files changed, 100 insertions, 2 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec index f3c21407..35ff983d 100755 --- a/packaging/connman.spec +++ b/packaging/connman.spec @@ -1,11 +1,16 @@ +%bcond_with connman_openconnect +%bcond_without connman_openvpn +%bcond_without connman_vpnd + Name: connman Version: 1.26 -Release: 6 +Release: 7 License: GPL-2.0+ Summary: Connection Manager Url: http://connman.net Group: Network & Connectivity/Connection Management Source0: %{name}-%{version}.tar.gz +BuildRequires: systemd-devel BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libiptc) @@ -13,6 +18,12 @@ BuildRequires: pkgconfig(xtables) BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(tpkp-gnutls) +%if %{with connman_openconnect} +BuildRequires: openconnect +%endif +%if %{with connman_openvpn} +BuildRequires: openvpn +%endif BuildRequires: ca-certificates-devel BuildRequires: readline-devel #%systemd_requires @@ -26,6 +37,35 @@ Requires(postun): systemd Connection Manager provides a daemon for managing Internet connections within embedded devices running the Linux operating system. +%if %{with connman_openconnect} +%package plugin-openconnect +Summary: Openconnect Support for Connman +Requires: %{name} = %{version} +Requires: openconnect + +%description plugin-openconnect +Openconnect Support for Connman. +%endif + +%if %{with connman_openvpn} +%package plugin-openvpn +Summary: Openvpn Support for Connman +Requires: %{name} = %{version} +Requires: openvpn + +%description plugin-openvpn +OpenVPN support for Connman. +%endif + +%if %{with connman_vpnd} +%package connman-vpnd +Summary: VPN Support for Connman +BuildRequires: %{name} = %{version} +Requires: %{name} = %{version} + +%description connman-vpnd +Provides VPN support for Connman +%endif %package test Summary: Test Scripts for Connection Manager @@ -57,6 +97,10 @@ CFLAGS+=" -DTIZEN_SYS_CA_BUNDLE=\"%TZ_SYS_CA_BUNDLE\"" CFLAGS+=" -DTIZEN_TV_EXT" %endif +%if %{with connman_vpnd} +VPN_CFLAGS+=" -DTIZEN_EXT -lsmack -Werror" +%endif + chmod +x bootstrap ./bootstrap %configure \ @@ -64,6 +108,12 @@ chmod +x bootstrap --enable-client \ --enable-pacrunner \ --enable-wifi=builtin \ +%if %{with connman_openconnect} + --enable-openconnect \ +%endif +%if %{with connman_openvpn} + --enable-openvpn \ +%endif %if 0%{?enable_connman_features} %connman_features \ %endif @@ -117,15 +167,26 @@ cp src/connman.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/ mkdir -p %{buildroot}%{_datadir}/license cp COPYING %{buildroot}%{_datadir}/license/connman +%if %{with connman_vpnd} +#%install_service multi-user.target.wants connman-vpn.service +cp vpn/vpn-dbus.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf +%endif + %post #systemctl daemon-reload #systemctl restart connman.service +%if %{with connman_vpnd} +systemctl restart connman-vpn.service +%endif %preun #systemctl stop connman.service +%if %{with connman_vpnd} +systemctl stop connman-vpn.service +%endif %postun -#systemctl daemon-reload +systemctl daemon-reload %docs_package @@ -142,17 +203,54 @@ cp COPYING %{buildroot}%{_datadir}/license/connman %{_sysconfdir}/dbus-1/system.d/*.conf %attr(644,root,root) %{_libdir}/systemd/system/connman.service %attr(644,root,root) %{_libdir}/systemd/system/multi-user.target.wants/connman.service +%attr(644,root,root) %{_libdir}/systemd/system/connman-vpn.service +%attr(644,root,root) %{_libdir}/systemd/system/multi-user.target.wants/connman-vpn.service %if "%{?_lib}" == "lib64" %attr(644,root,root) %{_unitdir}/connman.service %attr(644,root,root) %{_unitdir}/multi-user.target.wants/connman.service +%attr(644,root,root) %{_unitdir}/connman-vpn.service +%attr(644,root,root) %{_unitdir}/multi-user.target.wants/connman-vpn.service %endif %{_datadir}/license/connman %files test +%manifest connman.manifest %{_libdir}/%{name}/test/* %files devel +%manifest connman.manifest %{_includedir}/* %{_libdir}/pkgconfig/*.pc +%if %{with connman_openconnect} +%files plugin-openconnect +%manifest %{name}.manifest +%{_unitdir}/connman-vpn.service +%{_libdir}/connman/plugins-vpn/openconnect.so +%{_libdir}/connman/scripts/openconnect-script +%{_datadir}/dbus-1/system-services/net.connman.vpn.service +%endif + +%if %{with connman_openvpn} +%files plugin-openvpn +%manifest %{name}.manifest +%{_unitdir}/connman-vpn.service +%{_libdir}/%{name}/plugins-vpn/openvpn.so +%{_libdir}/%{name}/scripts/openvpn-script +%{_datadir}/dbus-1/system-services/net.connman.vpn.service +%endif + +%if %{with connman_vpnd} +%files connman-vpnd +%manifest %{name}.manifest +%{_sbindir}/connman-vpnd +%{_unitdir}/connman-vpn.service +#%{_unitdir}/multi-user.target.wants/connman-vpn.service +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/scripts +%dir %{_libdir}/%{name}/plugins-vpn +%config %{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf +%{_datadir}/dbus-1/system-services/net.connman.vpn.service +%endif + |