worker-hs_helper.(conf|inc) are only installed on systems with hyperscan;

fix PLISTs for other builds
This commit is contained in:
sthen
2026-04-10 13:27:09 +00:00
parent c2d4f64bf4
commit baef9fafd5
2 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -67,7 +67,7 @@ CONFIGURE_ARGS+= \
# to line up @samples in plist
ETC= ${SYSCONFDIR}
FLAVOR_STRING= ${FLAVOR_EXT:S/-/,/g}
SUBST_VARS+= ETC FLAVOR_STRING
SUBST_VARS+= ETC FLAVOR_STRING HYPERSCAN_ONLY
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
@@ -90,6 +90,9 @@ WANTLIB+= ${MODLUA_WANTLIB}
CONFIGURE_ARGS+= -DENABLE_HYPERSCAN=ON
LIB_DEPENDS+= textproc/hyperscan
WANTLIB+= hs
HYPERSCAN_ONLY=
.else
HYPERSCAN_ONLY= "@comment "
.endif
NO_TEST= Yes
+4 -4
View File
@@ -226,10 +226,10 @@ share/examples/rspamd/worker-controller.inc
@sample ${ETC}/rspamd/worker-controller.inc
share/examples/rspamd/worker-fuzzy.inc
@sample ${ETC}/rspamd/worker-fuzzy.inc
share/examples/rspamd/worker-hs_helper.conf
@sample ${ETC}/rspamd/worker-hs_helper.conf
share/examples/rspamd/worker-hs_helper.inc
@sample ${ETC}/rspamd/worker-hs_helper.inc
${HYPERSCAN_ONLY}share/examples/rspamd/worker-hs_helper.conf
${HYPERSCAN_ONLY}@sample ${ETC}/rspamd/worker-hs_helper.conf
${HYPERSCAN_ONLY}share/examples/rspamd/worker-hs_helper.inc
${HYPERSCAN_ONLY}@sample ${ETC}/rspamd/worker-hs_helper.inc
share/examples/rspamd/worker-normal.inc
@sample ${ETC}/rspamd/worker-normal.inc
share/examples/rspamd/worker-proxy.inc