aboutsummaryrefslogtreecommitdiffstats
path: root/mail/drac/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/drac/Makefile')
-rw-r--r--mail/drac/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/mail/drac/Makefile b/mail/drac/Makefile
index f380f2c9e48e..318e472aabc8 100644
--- a/mail/drac/Makefile
+++ b/mail/drac/Makefile
@@ -17,6 +17,10 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= anders@fix.no
+.if defined(WITH_POSTFIX_DB3)
+LIB_DEPENDS+= db3.2:${PORTSDIR}/databases/db3
+.endif
+
NO_WRKSUBDIR= yes
MAN3= dracauth.3
@@ -27,15 +31,21 @@ MAN1= rpc.dracd.1
MAKE_ARGS+= -DWITH_TI_RPC
.endif
-post-patch:
- @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/rpc.dracd.1m
+pre-everything:
@${ECHO} "================================================================================"
- @${ECHO} "Define WITH_POSTFIX or WITH_EXIM for databases compatible with those MTAs."
+ @${ECHO} "For databases compatible with other MTAs than sendmail, use:"
+ @${ECHO}
+ @${ECHO} "WITH_POSTFIX=yes (Postfix)"
+ @${ECHO} "WITH_POSTFIX_DB3=yes (Postfix with DB3 database maps)"
+ @${ECHO} "WITH_EXIM=yes (Exim)"
@${ECHO}
@${ECHO} "Define WITH_FOREGROUND to make the rpc.dracd daemon stay in foreground instead"
@${ECHO} "of detaching itself. This breaks the startup script."
@${ECHO} "================================================================================"
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/rpc.dracd.1m
+
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${PREFIX}/sbin/
@${INSTALL_DATA} ${WRKSRC}/drac.h ${PREFIX}/include/