Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created December 16, 2015 09:51
Show Gist options
  • Save kaworu/53ea260ce2a716b05d29 to your computer and use it in GitHub Desktop.
Save kaworu/53ea260ce2a716b05d29 to your computer and use it in GitHub Desktop.
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