opnsense-src/secure
Enji Cooper 267f8c1f4b crypto/openssl: make vendor imports easier/less error prone
This change adds a custom BSD makefile containing multiple high-level PHONY
targets, similar to targets provided by the ports framework.

The Makefile does the following:
- Reruns Configure with a deterministic set of arguments to ensure that
  all appropriate features have been enabled/disabled in OpenSSL.
- Preens the pkgconfig files to remove duplicate paths in their
  `CFLAGS` and `includedir` variables.
- Rebuilds all ASM files to ensure that the content contained is fresh.
- Rebuilds all manpages to ensure that the content contained in the
  manpages is fresh.

Some additional work needs to be done to make the manpage regeneration
"operation" reproducible (the date the manpages were generated is
embedded in the files).

All dynamic configuration previously captured in
`include/openssl/configuration.h` and `include/crypto/bn_conf.h` has been
moved to `freebsd/include/dynamic_freebsd_configuration.h` and
`freebsd/include/crypto/bn_conf.h`, respectively. This helps
ensure that future updates don't wipe out FreeBSD customizations to
these files, which tune behavior on a per-target architecture basis, e.g.,
ARM vs x86, 32-bit vs 64-bit, etc.

MFC after: 1 month
Differential Revision:	https://reviews.freebsd.org/D51663
2025-08-21 10:02:46 -07:00
..
caroot caroot: Update certdata URL for GitHub switch 2025-05-28 20:55:11 +02:00
lib crypto/openssl: make vendor imports easier/less error prone 2025-08-21 10:02:46 -07:00
libexec Remove MK_GSSAPI 2025-08-20 19:42:20 +01:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
usr.bin Remove MK_GSSAPI 2025-08-20 19:42:20 +01:00
usr.sbin Remove MK_GSSAPI 2025-08-20 19:42:20 +01:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ssh.mk Remove MK_GSSAPI 2025-08-20 19:42:20 +01:00