diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2006-03-27 13:16:49 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2006-03-27 13:16:49 +0800 |
commit | ec70d060049a09e90d531765c60944079c0bd3c2 (patch) | |
tree | 76a32d44200afbec6fe45f80204b1e15164f6df7 /mail/drac | |
parent | 801b45777c7420bfe9e5ad655bfcf59e45de4f04 (diff) | |
download | freebsd-ports-gnome-ec70d060049a09e90d531765c60944079c0bd3c2.tar.gz freebsd-ports-gnome-ec70d060049a09e90d531765c60944079c0bd3c2.tar.zst freebsd-ports-gnome-ec70d060049a09e90d531765c60944079c0bd3c2.zip |
Add knob WITH_POSTFIX_DB41 to use with postfix/db41.
This port shoud support more flavors of databases/db*, but I just only use
db41 with postfix in my environment.
Diffstat (limited to 'mail/drac')
-rw-r--r-- | mail/drac/Makefile | 4 | ||||
-rw-r--r-- | mail/drac/files/patch-aa | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/mail/drac/Makefile b/mail/drac/Makefile index 109f925d1a14..11f54f39feb3 100644 --- a/mail/drac/Makefile +++ b/mail/drac/Makefile @@ -21,6 +21,9 @@ COMMENT= Dynamic Relay Authorization Control, a pop-before-smtp implementation .if defined(WITH_POSTFIX_DB3) LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3 .endif +.if defined(WITH_POSTFIX_DB41) +LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41 +.endif NO_WRKSUBDIR= yes USE_REINPLACE= yes @@ -40,6 +43,7 @@ pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "WITH_POSTFIX=yes (Postfix)" @${ECHO_MSG} "WITH_POSTFIX_DB3=yes (Postfix with DB3 database maps)" + @${ECHO_MSG} "WITH_POSTFIX_DB41=yes (Postfix with DB41 database maps)" @${ECHO_MSG} "WITH_EXIM=yes (Exim)" @${ECHO_MSG} @${ECHO_MSG} "Define WITH_FOREGROUND to make the rpc.dracd daemon stay in" diff --git a/mail/drac/files/patch-aa b/mail/drac/files/patch-aa index 59785f6101bc..048e2f9c96fc 100644 --- a/mail/drac/files/patch-aa +++ b/mail/drac/files/patch-aa @@ -1,5 +1,5 @@ --- Makefile.orig Mon Jan 13 05:45:12 2003 -+++ Makefile Wed Mar 26 08:58:22 2003 ++++ Makefile Wed Mar 1 10:27:04 2006 @@ -5,9 +5,10 @@ # Paths @@ -14,7 +14,7 @@ # OS-Dependant settings -@@ -33,22 +34,42 @@ +@@ -33,22 +34,46 @@ # -DCIDR_KEY # keys in CIDR format # -DTERM_KD # keys and data nul-terminated @@ -25,7 +25,7 @@ +DEFS+= -DSOCK_RPC +.endif + -+.if defined(WITH_POSTFIX) || defined(WITH_POSTFIX_DB3) ++.if defined(WITH_POSTFIX) || defined(WITH_POSTFIX_DB3) || defined(WITH_POSTFIX_DB41) +DEFS+= -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD +.elif defined(WITH_EXIM) +DEFS+= -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD -DREQ_HASH -DCIDR_KEY @@ -61,6 +61,10 @@ +CFLAGS+= -I${LOCALBASE}/include/db3 +LDLIBS+= -L${LOCALBASE}/lib -ldb3 +.endif ++.if defined(WITH_POSTFIX_DB41) ++CFLAGS+= -I${LOCALBASE}/include/db41 ++LDLIBS+= -L${LOCALBASE}/lib -ldb41 ++.endif # Man sections MANLIB = 3 |