pkgsrc/net/s6-networking/options.mk

43 lines
1.1 KiB
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.7 2021/04/26 15:05:30 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.s6-networking
PKG_SUPPORTED_OPTIONS+= execline tls
PKG_SUGGESTED_OPTIONS+= tls
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mexecline)
. include "../../lang/execline/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-execline
.endif
PLIST_VARS= tls
.if !empty(PKG_OPTIONS:Mtls)
PLIST.tls= yes
. include "../../security/bearssl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-ssl=bearssl
PKG_USERS_VARS+= UCSPI_SSL_USER
PKG_GROUPS_VARS+= UCSPI_SSL_GROUP
PKG_GROUPS+= ${UCSPI_SSL_GROUP}
PKG_USERS+= ${UCSPI_SSL_USER}:${UCSPI_SSL_GROUP}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= s6-pkgsrc-cadir
SUBST_VARS.paths= SH SETENV SSLCERTS
2021-02-04 10:16:45 +01:00
.PHONY: do-extract-cadir do-install-cadir
post-extract: do-extract-cadir
do-extract-cadir:
for f in s6-pkgsrc-cadir; do \
${CP} ${FILESDIR}/$$f.sh ${WRKSRC}/$$f; \
done
2021-02-04 10:16:45 +01:00
post-install: do-install-cadir
do-install-cadir:
for f in s6-pkgsrc-cadir; do \
${INSTALL_SCRIPT} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/bin/$$f; \
done
.endif