Make sa-compile support conditional.

Submitted by:	maintainer
This commit is contained in:
Alex Dupre 2010-01-16 19:20:17 +00:00
parent 041afb964f
commit 37d7c41a2a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247988
2 changed files with 14 additions and 4 deletions

View file

@ -15,8 +15,9 @@ DISTFILES= # none
MAINTAINER= m.seaman@infracaninophile.co.uk
COMMENT= SpamAssassin nightly periodic maintenance
RUN_DEPENDS= sa-update:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
re2c:${PORTSDIR}/devel/re2c
RUN_DEPENDS= sa-update:${PORTSDIR}/mail/p5-Mail-SpamAssassin
OPTIONS= SACOMPILE "Enable sa-compile support" off
NO_BUILD= yes
SUB_FILES= sa-utils
@ -26,6 +27,15 @@ PERIODIC_DAILY= etc/periodic/daily
PLIST_FILES= ${PERIODIC_DAILY}/sa-utils
PLIST_DIRS= ${PERIODIC_DAILY} ${PERIODIC_DAILY:H}
.include <bsd.port.options.mk>
.if defined(WITH_SACOMPILE)
RUN_DEPENDS+= re2c>=.12.0:${PORTSDIR}/devel/re2c
SUB_LIST+= SACOMPILE=YES
.else
SUB_LIST+= SACOMPILE=NO
.endif
do-install:
${MKDIR} ${PREFIX}/${PERIODIC_DAILY}/
${INSTALL_SCRIPT} ${WRKDIR}/sa-utils \

View file

@ -32,7 +32,7 @@
# --channel saupdates.example.com \
# --channel updates.spamassassin.org"
#
# daily_sa_compile="YES"
# daily_sa_compile="%%SACOMPILE%%"
# run sa-compile to create a compiled form of the filter
# rules when new rules are found. Note: this can be time
# consuming and CPU intensive.
@ -66,7 +66,7 @@ fi
: ${daily_sa_enable="YES"}
: ${daily_sa_quiet="NO"}
: ${daily_sa_update_flags=""}
: ${daily_sa_compile="YES"}
: ${daily_sa_compile="%%SACOMPILE%%"}
: ${daily_sa_compile_flags=""}
: ${daily_sa_compile_nice="YES"}
: ${daily_sa_compile_nice_flags=""}