Index: head/security/acme-client/Makefile =================================================================== --- head/security/acme-client/Makefile (revision 423512) +++ head/security/acme-client/Makefile (revision 423513) @@ -1,54 +1,63 @@ # Created by: Bernard Spil # $FreeBSD$ PORTNAME= acme-client PORTVERSION= 0.1.11 DISTVERSIONPREFIX= portable- CATEGORIES= security MASTER_SITES= https://kristaps.bsd.lv/${PORTNAME}/snapshots/ \ LOCAL/brnrd MAINTAINER= brnrd@FreeBSD.org 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} WWWDIR= ${PREFIX}/www/letsencrypt SAMPLE_FILES= acme-client.sh.sample deploy.sh.sample SUB_FILES= 000.acme-client.sh pkg-message ${SAMPLE_FILES} SUB_LIST= PORTNAME=${PORTNAME} PERIODIC_DIRS= etc/periodic/weekly PERIODIC_FILES= 000.acme-client.sh post-patch: ${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ -e "s|/var/www/letsencrypt|${WWWDIR}|" \ ${WRKSRC}/main.c ${WRKSRC}/acme-client.1 post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS} ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODIC_FILES} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}/${PERIODIC_FILES} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/acme-client . for d in etc/ssl/letsencrypt etc/ssl/letsencrypt/private \ etc/letsencrypt www/letsencrypt ${MKDIR} ${STAGEDIR}${PREFIX}/${d} . endfor . for d in ${SAMPLE_FILES} ${INSTALL_SCRIPT} ${WRKDIR}/${d} ${STAGEDIR}${PREFIX}/etc/letsencrypt/${d} . endfor .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 Index: head/security/acme-client/files/extra-patch-GNUmakefile =================================================================== --- head/security/acme-client/files/extra-patch-GNUmakefile (nonexistent) +++ head/security/acme-client/files/extra-patch-GNUmakefile (revision 423513) @@ -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: Property changes on: head/security/acme-client/files/extra-patch-GNUmakefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property