diff options
author | Anders Nordby <anders@FreeBSD.org> | 2002-01-02 22:19:38 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2002-01-02 22:19:38 +0000 |
commit | f8e6cb97771ecbbfa9df14e6a0f04b9ee68fc174 (patch) | |
tree | 8a464b9e0593daafaa7216b228727160f5c88b0f /mail/drac | |
parent | strip trailing \ (diff) |
Add support for Postfix DB3 maps.
Requested by: jeremy@external.org
Notes
Notes:
svn path=/head/; revision=52511
Diffstat (limited to 'mail/drac')
-rw-r--r-- | mail/drac/Makefile | 16 | ||||
-rw-r--r-- | mail/drac/files/patch-aa | 11 |
2 files changed, 21 insertions, 6 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/ diff --git a/mail/drac/files/patch-aa b/mail/drac/files/patch-aa index ad90fdf1290b..efa953d3aa0d 100644 --- a/mail/drac/files/patch-aa +++ b/mail/drac/files/patch-aa @@ -1,5 +1,5 @@ --- Makefile.orig Mon Nov 20 16:35:16 2000 -+++ Makefile Mon Aug 6 00:28:52 2001 ++++ Makefile Wed Jan 2 22:39:40 2002 @@ -5,9 +5,10 @@ # Paths @@ -14,7 +14,7 @@ # OS-Dependant settings -@@ -33,20 +34,35 @@ +@@ -33,20 +34,40 @@ # -DCIDR_KEY # keys in CIDR format # -DTERM_KD # keys and data nul-terminated @@ -25,7 +25,7 @@ +RPCFLAGS= -DSOCK_RPC +.endif + -+.if defined(WITH_POSTFIX) ++.if defined(WITH_POSTFIX) || defined(WITH_POSTFIX_DB3) +DEFS= $(RPCFLAGS) -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD +.elif defined(WITH_EXIM) +DEFS= $(RPCFLAGS) -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD -DREQ_HASH -DCIDR_KEY @@ -53,6 +53,11 @@ +TSTLIBS = -L. -ldrac +#RPCGENFLAGS = +RPCGENFLAGS = -C -I ++ ++.if defined(WITH_POSTFIX_DB3) ++CFLAGS+= -I${PREFIX}/include/db3 ++LDLIBS+= -L${PREFIX}/lib -ldb3 ++.endif # Man sections MANLIB = 3 |