mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
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.
This commit is contained in:
parent
e5385e79f9
commit
e4d34c7f7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158241
@ -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"
|
||||
|
@ -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
|
||||
@ -60,6 +60,10 @@
|
||||
+.if defined(WITH_POSTFIX_DB3)
|
||||
+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
|
||||
|
Loading…
Reference in New Issue
Block a user