Bug 243254 - security/strongswan: Add PYTHON plugin option
Summary: security/strongswan: Add PYTHON plugin option
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords: feature, needs-patch
Depends on: 243270
Blocks:
  Show dependency treegraph
 
Reported: 2020-01-10 18:39 UTC by Dries Michiels
Modified: 2020-01-17 19:20 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (strongswan)


Attachments
strongswan.diff (5.46 KB, patch)
2020-01-16 20:32 UTC, Dries Michiels
no flags Details | Diff
strongswanv2.diff (5.43 KB, patch)
2020-01-17 19:20 UTC, Dries Michiels
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dries Michiels 2020-01-10 18:39:14 UTC
Hi maintainer and possibly other devs :-).

I'm in the need of the python API for libvici for strongSwan as I need to script a few things. The python module is in the link below.

https://github.com/strongswan/strongswan/tree/master/src/libcharon/plugins/vici/python

The plugin is in the same repository as the main strongSwan port.
So my question is, do we want to create an option to the current port to include the python interface or do we create a seperate port that gives this functionality? eg py-strongswan-libvici

Regards,
Dries
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-01-11 13:58:57 UTC
Per the repositories setup.py[.in], vici is already packaged in PyPI as "vici" [1]

It should be ported/packaged individually under the name sysutils/py-vici, or security/py-vici to match strongswan's category.

Strongswan may then add a PYTHON option which *_DEPENDS on that port.

Please create a new Bugzilla issue that "Blocks" this issue ID, with summary:

"[NEW PORT] security/py-vici: Native Python interface for strongSwan's VICI protocol"

[1] https://pypi.org/project/vici/
Comment 2 Dries Michiels 2020-01-16 20:32:59 UTC
Created attachment 210802 [details]
strongswan.diff

Initial patch that adds the PYVICI option. Feedback always welcome.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2020-01-17 08:45:46 UTC
(In reply to Dries Michiels from comment #2)

I'd name this PYTHON, "Python vici protocol plugin" as its PYTHON_DESC, leaving room to create a VICI options group in the future for the other plugin implementations that exist [1]

[1] https://wiki.strongswan.org/projects/strongswan/wiki/Vici#Writing-clients
Comment 4 Dries Michiels 2020-01-17 19:20:55 UTC
Created attachment 210824 [details]
strongswanv2.diff

Rename option to PYTHON with description suggested by koobs.