From c36436fa2bc04525edd3f5523ead498997ce1d22 Mon Sep 17 00:00:00 2001 From: brnrd Date: Sat, 8 Oct 2016 15:15:31 +0000 Subject: security/acme-client: Add STATIC option - Allow static linking - Forego SSL runtime dependency - Add warning about deinstall libressl after build - Add extra patch for static option PR: 212980 Submitted by: Christian Schwarz --- security/acme-client/Makefile | 13 +++++++++++-- security/acme-client/files/extra-patch-GNUmakefile | 11 +++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 security/acme-client/files/extra-patch-GNUmakefile diff --git a/security/acme-client/Makefile b/security/acme-client/Makefile index db308e1880aa..d95104f40a75 100644 --- a/security/acme-client/Makefile +++ b/security/acme-client/Makefile @@ -13,7 +13,14 @@ COMMENT= Native C client for Let's Encrypt, designed for security LICENSE= ISCL -USES= gmake ssl tar:tgz +USES= gmake tar:tgz + +OPTIONS_DEFINE= STATIC_ACMECLIENT +STATIC_ACMECLIENT_DESC= Link statically with security/libressl + +STATIC_ACMECLIENT_USES_OFF= ssl +STATIC_ACMECLIENT_BUILD_DEPENDS= ${LOCALBASE}/lib/libtls.a:security/libressl +STATIC_ACMECLIENT_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-GNUmakefile MAKEFILE= GNUmakefile MAKE_ENV= PREFIX=${STAGEDIR}/${PREFIX} @@ -46,9 +53,11 @@ post-install: .include -.if empty(SSL_DEFAULT:M*libressl*) +.if ${PORT_OPTIONS:MSTATIC_ACMECLIENT} == "" && empty(SSL_DEFAULT:M*libressl*) IGNORE= needs LibreSSL to build. set DEFAULT_VERSIONS+=ssl=libressl \ and rebuild all ports that depend on openssl +.else +WARNING= "Remember to deinstall libressl after building acme-client" .endif .include diff --git a/security/acme-client/files/extra-patch-GNUmakefile b/security/acme-client/files/extra-patch-GNUmakefile new file mode 100644 index 000000000000..f1e3113c0ea0 --- /dev/null +++ b/security/acme-client/files/extra-patch-GNUmakefile @@ -0,0 +1,11 @@ +--- GNUmakefile.orig 2016-09-01 05:48:04 UTC ++++ GNUmakefile +@@ -71,7 +71,7 @@ endif + all: acme-client + + acme-client: $(OBJS) +- $(CC) -o $@ $(OBJS) $(LDFLAGS) -ltls -lssl -lcrypto $(LIBBSD) ++ $(CC) -o $@ $(OBJS) $(LDFLAGS) ${PREFIX}/lib/libtls.a ${PREFIX}/lib/libssl.a ${PREFIX}/lib/libcrypto.a $(LIBBSD) + + # This is for synchronising from -portable to the master. + rmerge: -- cgit sh.merge-4.6.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines