On: FreeBSD vmf1 10.2-RELEASE-p8 FreeBSD 10.2-RELEASE-p8 #0 r292468: Sat Dec 19 20:12:28 UTC 2015 user@vmf1:/usr/obj/usr/src/sys/GENERIC-IPSEC amd64 running a GENERIC kernel modified for IPSEC (only added crypto and IPSEC) Encounter the following when trying to run strongswan's pki command: # ipsec pki exec: /usr/local/bin/pki: not found Therefore breaking certificate creation with strongswan. Port was added via "pkg install strongswan"
The PKI option is off by default. You would have to compile from ports and set PKI to be on. However looking at the Makefile it introduces no external port dependencies. Is there a good reason to not include it by default to make the package the most useful?
(In reply to Jason Unovitch from comment #1) It should probably be on by default or else the package is somewhat useless if you want to build a server.
Created attachment 167023 [details] Set PKI and SWANCTL options to default on Added the PKI and swanctl options as defaults.
Can we enable the VICI option as well? The SWANCTL option depends on it. (strongswan-5.3.5_3) /wrkdirs/usr/ports/security/strongswan/work/stage//usr/local/sbin/swanctl - required shared library libvici.so.0 not found We should add the _IMPLIES to reflect that dependency on VICI.
Created attachment 167079 [details] Set PKI, SWANCTL and VICI options to default on Set PKI, SWANCTL and VICI options to default on Added SWANCTL_IMPLIES= VICI as well
(In reply to Jason Unovitch from comment #4) See no problem why not. I updated the patch to include VICI as well.
A commit references this bug: Author: junovitch Date: Wed Feb 17 02:34:06 UTC 2016 New revision: 409026 URL: https://svnweb.freebsd.org/changeset/ports/409026 Log: security/strongswan: enable options to increase usefulness of default pkg - Enable PKI, SWANCTL, and VICI options (no external dependencies) - Document IMPLIES dependency on VICI for SWANCTL; mention in SWANCTL_DESC - Bump PORTREVISION PR: 205438 Reported by: Nick B <nicblais@clkroot.net> Submitted by: strongswan@Nanoteq.com (maintainer) Changes: head/security/strongswan/Makefile
(In reply to strongswan from comment #6) Excellent. Thank you for the patch. (In reply to Nick B from comment #0) Nick, thank you for the report!