- Modified import and export interfaces to import_from_file and export_to_file, respectively,

due to changes in NMVpnPluginUiInterface struct in NM (bz 631159).
This commit is contained in:
Avesh Agarwal 2010-09-07 15:00:07 -04:00
parent 90fce4b267
commit 2ab1bc02f8
2 changed files with 21 additions and 4 deletions

View File

@ -6,7 +6,7 @@
Summary: NetworkManager VPN plug-in for openswan
Name: NetworkManager-openswan
Version: 0.8.0
Release: 5%{snapshot}%{?dist}
Release: 6%{snapshot}%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://people.redhat.com/avagarwa/files/NetworkManager-openswan/
@ -17,9 +17,9 @@ URL: http://people.redhat.com/avagarwa/files/NetworkManager-openswan/
Source0: http://people.redhat.com/avagarwa/files/%{name}/%{name}-%{realversion}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Patch1: nm-secret-whack.patch
Patch2: nm-616910.patch
Patch3: nm-changes.patch
BuildRequires: gtk2-devel
#BuildRequires: dbus-devel
@ -34,7 +34,6 @@ Requires: NetworkManager
Requires: gnome-keyring
Requires: openswan >= %{openswan_version}
%description
This package contains software for integrating the openswan VPN software
with NetworkManager and the GNOME desktop
@ -44,6 +43,7 @@ with NetworkManager and the GNOME desktop
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%configure --disable-static --enable-more-warnings=yes
@ -61,7 +61,6 @@ rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-, root, root,-)
%config /etc/NetworkManager/VPN/nm-openswan-service.name
@ -78,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/gnome-vpn-properties/openswan
%changelog
* Tue Sep 7 2010 Avesh Agarwal <avagarwa@redhat.com> - 0.8.0-6.20100411git
- Modified import and export interfaces to import_from_file and export_to_file, respectively,
due to changes in NMVpnPluginUiInterface struct in NM (bz 631159).
* Mon Jul 26 2010 Avesh Agarwal <avagarwa@redhat.com> - 0.8.0-5.20100411git
Resolves: #616910
- Support for reading phase1 and phase2 algorithms through GUI

14
nm-changes.patch Normal file
View File

@ -0,0 +1,14 @@
diff -urNp NetworkManager-openswan-0.8-cvs-patched/properties/nm-openswan.c NetworkManager-openswan-0.8-current/properties/nm-openswan.c
--- NetworkManager-openswan-0.8-cvs-patched/properties/nm-openswan.c 2010-09-07 14:21:00.719407075 -0400
+++ NetworkManager-openswan-0.8-current/properties/nm-openswan.c 2010-09-07 14:51:04.925157229 -0400
@@ -850,8 +850,8 @@ openswan_plugin_ui_interface_init (NMVpn
/* interface implementation */
iface_class->ui_factory = ui_factory;
iface_class->get_capabilities = get_capabilities;
- iface_class->import = NULL;
- iface_class->export = NULL;
+ iface_class->import_from_file = NULL;
+ iface_class->export_to_file = NULL;
iface_class->get_suggested_name = NULL;
iface_class->delete_connection = delete_connection;
}