aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd24/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/cyrus-imapd24/Makefile')
-rw-r--r--mail/cyrus-imapd24/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index e20fb7bc3c0b..1d2ad32df4fb 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -88,12 +88,13 @@ CONFIGURE_ARGS+=--enable-netscapehack
.endif
.if defined(WITH_DRAC)
-BROKEN= currently not supported due to lack of acconfig.h
EXTRA_PATCHES+= ${WRKSRC}/contrib/drac_auth.patch
-#EXTRA_PATCHES+= ${FILESDIR}/drac_auth.patch
-EXTRA_PATCHES+= ${FILESDIR}/extra-patch-acconfig.h \
- ${FILESDIR}/extra-patch-aclocal.m4
-USE_AUTOHEADER= YES
+#EXTRA_PATCHES+= ${FILESDIR}/extra-patch-acconfig.h
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-aclocal.m4
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-config.h.in
+#USE_AUTOHEADER= YES
+USE_AUTOCONF= YES
+WANT_AUTOCONF_VER=257
CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
@@ -157,6 +158,12 @@ pre-everything::
fi
.endif
+.if defined(WITH_DRAC)
+pre-patch:
+ @${REINPLACE_CMD} -e '/^Index: acconfig\.h/,/^Index: /d' \
+ ${WRKSRC}/contrib/drac_auth.patch
+.endif
+
post-patch:
@${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
${.CURDIR}/pkg-install > ${PKGINSTALL}