+ ipsec, xl2tpd & kl2tpd command-line debugging output added.
+ Fixes for gcc -Werror=format-securityerrors.
+ Silence gcc -Wmaybe-uninitialized warning.
+ No longer ignore libreswan failed to add connection errors,
such as: global ikev1-policy does not allow IKEv1 connections
+ Fix for libreswan 5.x deprecation warnings when using libreswan
5.x:
- ikev2=no has been replaced by keyexchange=ikev1
- keyingtries=0 ignored, UP connection will attempt to
establish until marked DOWN
+ Merge translations from NetworkManager-openvpn and
NetworkManager-pptp.
- For changes between 1.20.10 and 1.20.20, please see the included
NEWS file.
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/NetworkManager-l2tp?expand=0&rev=43
119 lines
3.6 KiB
RPMSpec
119 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package NetworkManager-l2tp
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define pppd_plugin_dir %(rpm -ql ppp | grep -m1 pppd/[0-9]*)
|
|
%define rbrelease %(r=%{release}; echo ${r%%.*})
|
|
Name: NetworkManager-l2tp
|
|
Version: 1.20.20
|
|
Release: 0
|
|
Summary: NetworkManager VPN support for L2TP and L2TP/IPsec
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/System
|
|
URL: https://github.com/nm-l2tp/NetworkManager-l2tp
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: libxml2-tools
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: ppp-devel
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(gtk4) >= 4.0
|
|
BuildRequires: pkgconfig(libnm) >= 1.20.0
|
|
BuildRequires: pkgconfig(libnma) >= 1.8.0
|
|
BuildRequires: pkgconfig(libnma-gtk4) >= 1.8.33
|
|
BuildRequires: pkgconfig(libsecret-1)
|
|
BuildRequires: pkgconfig(nss)
|
|
Requires: NetworkManager >= 1.20.0
|
|
Requires: xl2tpd
|
|
Supplements: (NetworkManager and xl2tpd)
|
|
%requires_eq ppp
|
|
Recommends: (strongswan or libreswan)
|
|
|
|
%description
|
|
This package contains software for integrating L2TP and L2TP/IPsec
|
|
(L2TP over IPsec) VPN support with NetworkManager.
|
|
|
|
%package -n NetworkManager-applet-l2tp
|
|
Summary: NetworkManager VPN support for L2TP and L2TP/IPsec
|
|
Group: Productivity/Networking/System
|
|
Requires: %{name} = %{version}-%{release}
|
|
Provides: %{name}-gnome = %{version}
|
|
Obsoletes: %{name}-gnome
|
|
Supplements: (%{name} and NetworkManager-applet)
|
|
Supplements: (%{name} and gnome-control-center)
|
|
|
|
%description -n NetworkManager-applet-l2tp
|
|
This package contains software for integrating L2TP and L2TP/IPsec
|
|
(L2TP over IPsec) VPN support with NetworkManager.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%configure\
|
|
--disable-static \
|
|
--with-gtk4=yes \
|
|
--enable-lto=yes \
|
|
--enable-libreswan-dh2 \
|
|
--with-pppd-plugin-dir=%{pppd_plugin_dir} \
|
|
--with-dist-version=%{version}-%{rbrelease} \
|
|
runstatedir=%{_rundir} \
|
|
%{nil}
|
|
%make_build
|
|
|
|
%check
|
|
make %{?_smp_mflags} check
|
|
|
|
%install
|
|
%make_install
|
|
%find_lang %{name} %{?no_lang_C}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%pre
|
|
# remove any NetworkManager-l2tp <= 1.2.10 transient ipsec-*.secrets files.
|
|
rm -f %{_sysconfdir}/ipsec.d/nm-l2tp-ipsec-*.secrets
|
|
exit 0
|
|
|
|
%postun
|
|
if [ $1 -eq 0 ] ; then
|
|
rm -f %{_sysconfdir}/ipsec.d/ipsec.nm-l2tp.secrets
|
|
exit 0
|
|
fi
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md NEWS
|
|
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp.so
|
|
%{_libexecdir}/nm-l2tp-service
|
|
%{_vpnservicedir}/nm-l2tp-service.name
|
|
%{_datadir}/dbus-1/system.d/nm-l2tp-service.conf
|
|
%{pppd_plugin_dir}/nm-l2tp-pppd-plugin.so
|
|
|
|
%files -n NetworkManager-applet-l2tp
|
|
%{_datadir}/metainfo/network-manager-l2tp.metainfo.xml
|
|
%{_libdir}/NetworkManager/libnm-vpn-plugin-l2tp-editor.so
|
|
%{_libdir}/NetworkManager/libnm-gtk4-vpn-plugin-l2tp-editor.so
|
|
%{_libexecdir}/nm-l2tp-auth-dialog
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|