diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-03-27 05:16:49 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-03-27 05:16:49 +0000 |
commit | e4d34c7f7cb41f73860ee553c5179f6f18cc6ba9 (patch) | |
tree | 42375de44005ae1c57fab474f7cf56beb679049e /mail/drac | |
parent | With marcus's recently committed of bring libgda2 back to 1.2.3 and now it is (diff) |
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.
Notes
Notes:
svn path=/head/; revision=158241
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 |