Commit ace8bc53 authored by Jussi Laakkonen's avatar Jussi Laakkonen

[packaging] VPN plugins into separate packages. Contributes to JB#42973

Create separate packages for the VPN plugins. Each plugin has the .so
library and necessary script along LICENCE file.

Also add vpn-script, openvpn-script and into separate
vpn-scripts package. Every VPN plugin needs these files. vpn-script is
needed by OpenConnect and VPNC. is needed by L2TP and
PPTP. Because the directory is owned by the connman-vpn-scripts package
it makes sense to have all scripts in one package to get the directory
properly removed when packages are removed.
parent 264c8188
......@@ -73,7 +73,7 @@ Requires: dbus-python
Requires: pygobject2
%description test
Scripts for testing Connman and its functionality
Scripts for testing Connman and its functionality.
%package tools
Summary: Development tools for Connection Manager
......@@ -102,6 +102,61 @@ Obsoletes: %{name}-docs
%description doc
Man pages for %{name}.
%package vpn-scripts
Summary: Connection Manager VPN scripts
Requires: %{name} = %{version}-%{release}
%description vpn-scripts
This package provides PPP library and generic vpn-script script to be
used by L2TP, OpenConnect, PPTP and VPNC plugins.
%package plugin-vpn-l2tp
Summary: Connection Manager L2TP VPN plugin
Requires: %{name} = %{version}-%{release}
Requires: %{name}-vpn-scripts
Requires: xl2tpd
Requires: ppp
%description plugin-vpn-l2tp
This package provides L2TP VPN plugin for connman.
%package plugin-vpn-openvpn
Summary: Connection Manager OpenVPN VPN plugin
Requires: %{name} = %{version}-%{release}
Requires: %{name}-vpn-scripts
Requires: openvpn
%description plugin-vpn-openvpn
This package provides OpenVPN VPN plugin for connman.
%package plugin-vpn-openconnect
Summary: Connection Manager OpenConnect VPN plugin
Requires: %{name} = %{version}-%{release}
Requires: %{name}-vpn-scripts
Requires: openconnect
%description plugin-vpn-openconnect
This package provides OpenConnect VPN plugin for connman.
%package plugin-vpn-pptp
Summary: Connection Manager PPTP VPN plugin
Requires: %{name} = %{version}-%{release}
Requires: %{name}-vpn-scripts
Requires: pptp
Requires: ppp
%description plugin-vpn-pptp
This package provides PPTP VPN plugin for connman.
%package plugin-vpn-vpnc
Summary: Connection Manager Cisco3000 (VPNC) VPN plugin
Requires: %{name} = %{version}-%{release}
Requires: %{name}-vpn-scripts
Requires: vpnc
%description plugin-vpn-vpnc
This package provides Cisco3000 (VPNC) VPN plugin for connman.
%setup -q -n %{name}-%{version}/connman
......@@ -111,11 +166,11 @@ Man pages for %{name}.
--enable-ethernet=builtin \
--disable-wifi \
--enable-bluetooth=builtin \
--enable-openconnect=builtin \
--enable-openvpn=builtin \
--enable-vpnc=builtin \
--enable-l2tp=builtin \
--enable-pptp=builtin \
--enable-openconnect \
--enable-openvpn \
--enable-vpnc \
--enable-l2tp \
--enable-pptp \
--enable-loopback=builtin \
--enable-pacrunner=builtin \
--enable-client \
......@@ -201,7 +256,7 @@ systemctl daemon-reload || :
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins-vpn
%config %{_sysconfdir}/dbus-1/system.d/*.conf
......@@ -236,3 +291,37 @@ systemctl daemon-reload || :
%files vpn-scripts
%license COPYING
%dir %{_libdir}/%{name}/scripts
%files plugin-vpn-l2tp
%license COPYING
%files plugin-vpn-openvpn
%license COPYING
%files plugin-vpn-openconnect
%license COPYING
%files plugin-vpn-pptp
%license COPYING
%files plugin-vpn-vpnc
%license COPYING
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment