Created attachment 206078 [details] Patch whole port Atm there is no such option to build strongswan padlock plugin, this patch aims to make it possible. Checked padlock plugin with VIA C7. I'm using this plugin about 4 months with VIA C7 embedded processor at the production crypto-gateway based on NanoBSD and it works flawlessly.
(In reply to mojolicious from comment #0) I had a quick look. The patch fails to apply, but I am building it on a 64-bit machine. I receive this error "error: instruction requires: Not 64-bit mode" If this works only on 32-bit, then I just want to add a comment that it is only for 32-bit mode. Or if it should work, I might just have to do an updated on the server which I was building on.
(In reply to strongswan from comment #1) It's for i386 arch only.
Created attachment 206081 [details] Updated patch for VIA Padlock plugin I updated the patch to change the port option for the define to OPTIONS_DEFINE_i386. This adds the port option only when the architecture is 32-bit, and on 64-bit it is not shown.
Comment on attachment 206078 [details] Patch whole port Replaced by the new patch
The patch can be applied to the port.
Due to not being defined when building other archs, the via option is not commented in pkg-plist. Full build log here: https://poudriere.ultimasbox.com/data/112amd64-test/2019-07-26_21h33m05s/logs/errors/strongswan-5.8.0.log ==> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: %%VIA%%@sample %%ETCDIR%%.d/charon/padlock.conf.sample Error: Missing: %%VIA%%lib/ipsec/plugins/libstrongswan-padlock.la Error: Missing: %%VIA%%lib/ipsec/plugins/libstrongswan-padlock.so Error: Missing: %%VIA%%%%DATADIR%%/templates/config/plugins/padlock.conf ===> Error: Plist issues found. *** Error code 1
Created attachment 206138 [details] Updated patch for VIA Padlock plugin to fix pkg-plist Updated the patch to fix the pkg-plist on other architectures.
LGTM
A commit references this bug: Author: meta Date: Wed Aug 21 01:59:58 UTC 2019 New revision: 509483 URL: https://svnweb.freebsd.org/changeset/ports/509483 Log: security/strongswan: Add support for the VIA Padlock plugin PR: 239458 Submitted by: Evgeny <mojolicious@yandex.com> (initial revision) strongswan@Nanoteq.com (maintainer, brushed-up revision) Approved by: strongswan@Nanoteq.com (maintainer) Changes: head/security/strongswan/Makefile head/security/strongswan/pkg-plist
Committed, thanks!