-
-
Save kaworu/53ea260ce2a716b05d29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: mail/rspamd/Makefile | |
=================================================================== | |
--- mail/rspamd/Makefile (revision 403846) | |
+++ mail/rspamd/Makefile (working copy) | |
@@ -13,12 +13,12 @@ | |
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \ | |
libgmime-2.4.so:${PORTSDIR}/mail/gmime24 \ | |
libevent.so:${PORTSDIR}/devel/libevent2 \ | |
- libluajit-5.1.so:${PORTSDIR}/lang/luajit \ | |
- libhiredis.so:${PORTSDIR}/databases/hiredis | |
+ libluajit-5.1.so:${PORTSDIR}/lang/luajit | |
-OPTIONS_DEFINE= GPERF REDIRECTOR | |
+OPTIONS_DEFINE= GPERF REDIRECTOR HIREDIS | |
GPERF_DESC= google perf-tools profiling | |
REDIRECTOR_DESC= Install HTTP redirector | |
+HIREDIS_DESC= Redis support through hiredis | |
USE_RC_SUBR= rspamd | |
@@ -72,6 +72,12 @@ | |
PLIST_SUB+= REDIRECTOR="@comment " | |
.endif | |
+.if ${PORT_OPTIONS:MHIREDIS} | |
+LIB_DEPENDS+= libhiredis.so:${PORTSDIR}/databases/hiredis | |
+.else | |
+ CMAKE_ARGS+= -DENABLE_HIREDIS=OFF | |
+.endif | |
+ | |
post-stage: | |
${INSTALL} -d \ | |
${STAGEDIR}/var/log/rspamd \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment