Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281431 - net-misc/networkmanager-strongswan - NetworkManager StrongSwan plugin
Summary: net-misc/networkmanager-strongswan - NetworkManager StrongSwan plugin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 4 votes (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
: 487594 (view as bug list)
Depends on: 472436
Blocks:
  Show dependency tree
 
Reported: 2009-08-14 05:08 UTC by Neil Alldrin
Modified: 2018-06-24 22:54 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Initial ebuild for networkmanager-strongswan-1.1.1 (networkmanager-strongswan-1.1.1.ebuild,911 bytes, text/plain)
2009-08-14 05:09 UTC, Neil Alldrin
Details
Slightly modified version of net-misc/strongswan, added networkmanager useflag the sets --enable-nm (strongswan-4.3.3.ebuild,2.75 KB, text/plain)
2009-08-14 05:11 UTC, Neil Alldrin
Details
strongswan networkmanager plugin ebuild (networkmanager-strongswan-1.3.0.ebuild,939 bytes, text/plain)
2013-04-11 09:28 UTC, Enrico Tagliavini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Alldrin 2009-08-14 05:08:27 UTC
Strongswan upstream provides a NetworkManager plugin. Attached (along with a slight modification to net-misc/strongswan) is a first attempt at an ebuild for this plugin. Tested and working on an amd64 machine with net-misc/networkmanager-0.7.1-r6 and attached ebuild for net-misc/strongswan-4.3.3.

Reproducible: Always

Steps to Reproduce:
N/A
Comment 1 Neil Alldrin 2009-08-14 05:09:57 UTC
Created attachment 201197 [details]
Initial ebuild for networkmanager-strongswan-1.1.1
Comment 2 Neil Alldrin 2009-08-14 05:11:58 UTC
Created attachment 201199 [details]
Slightly modified version of net-misc/strongswan, added networkmanager useflag the sets --enable-nm
Comment 3 Neil Alldrin 2009-08-14 05:15:10 UTC
I should also note that the ebuild is largely copied from the ebuild for networkmanager-openvpn.
Comment 4 Enrico Tagliavini 2013-04-11 09:24:45 UTC
I have an ebuild based on Neil's work and I can maintain it if
Comment 5 Enrico Tagliavini 2013-04-11 09:27:25 UTC
I have a working nm plugin for strongswan working and I can maintain it if someone proxy me. I already maintain some package in gentoo by proxy.

Before that I just need the networkmanager USE flag added to >=strongswan-5.0.3

Don't bother adding it to earlier versions, there is a known bug with nm-0.9 solved in the lastest version. See http://wiki.strongswan.org/issues/294

Let me know. Cheers
Comment 6 Enrico Tagliavini 2013-04-11 09:28:54 UTC
Created attachment 345194 [details]
strongswan networkmanager plugin ebuild

This is what I'm using right now. I use it to connect to my work IPsec VPN. The server is strongswan 4.5.2 for the record.
Comment 7 Pacho Ramos gentoo-dev 2014-09-22 18:26:14 UTC
*** Bug 487594 has been marked as a duplicate of this bug. ***
Comment 8 rick vernam 2016-06-08 17:23:10 UTC
According to https://wiki.strongswan.org/projects/strongswan/wiki/NetworkManager
libgnomeui is required to build this plugin.
Add >=gnome-base/libgnomeui-2.24.5-r1 to RDEPEND.

During compilation, it fails with
main.c:43:2: error: ‘gnome_keyring_find_network_password_sync’ is deprecated (declared at /usr/include/gnome-keyring-1/gnome-keyring.h:551): Use 'SECRET_SCHEMA_COMPAT_NETWORK' instead [-Werror=deprecated-declarations]
  if (gnome_keyring_find_network_password_sync(g_get_user_name(), NULL, name,
  ^

As an ugly work around that build error, I temporarily added -Wno-deprecated-declarations to CFLAGS and CXXFLAGS in /etc/portage/make.conf.  I know there is a way to do that in the ebuild, but I am not familiar with the syntax.

With this ebuild, the plugin seems to work with strongswan 5.3.4 on the server and client, and with networkmanager 1.0.12 on the client.
Comment 9 rick vernam 2016-06-08 19:46:18 UTC
For anybody stumbling across this: it seems that under some circumstances network manager can set up strongswan-based VPN connections (ie, using charon-nm) without requiring net-misc/networkmanager-strongswan...
https://forums.gentoo.org/viewtopic-p-7929088.html#7929088
Comment 10 Conrad Kostecki gentoo-dev 2018-03-27 20:38:23 UTC
I've filled a PR.

(In reply to rick vernam from comment #8)
> According to
> https://wiki.strongswan.org/projects/strongswan/wiki/NetworkManager
> libgnomeui is required to build this plugin.
> Add >=gnome-base/libgnomeui-2.24.5-r1 to RDEPEND.
> 

Seems no longer needed? I can build fine without it.
Comment 11 Conrad Kostecki gentoo-dev 2018-06-24 21:14:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad8a3f59bc0ee32420c2335f49208de5cf38d467

commit ad8a3f59bc0ee32420c2335f49208de5cf38d467
Author:     Conrad Kostecki <conrad@kostecki.com>
AuthorDate: 2018-06-24 12:36:35 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-06-24 21:12:40 +0000

    net-misc/networkmanager-strongswan: New package
    
    Closes: https://bugs.gentoo.org/571234
    Closes: https://github.com/gentoo/gentoo/pull/7663
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-misc/networkmanager-strongswan/Manifest        |  1 +
 net-misc/networkmanager-strongswan/metadata.xml    | 15 ++++++++
 .../networkmanager-strongswan-1.4.4.ebuild         | 45 ++++++++++++++++++++++
 3 files changed, 61 insertions(+)