mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04: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
2 changed files with 11 additions and 3 deletions
|
@ -21,6 +21,9 @@ COMMENT= Dynamic Relay Authorization Control, a pop-before-smtp implementation
|
||||||
.if defined(WITH_POSTFIX_DB3)
|
.if defined(WITH_POSTFIX_DB3)
|
||||||
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
|
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(WITH_POSTFIX_DB41)
|
||||||
|
LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41
|
||||||
|
.endif
|
||||||
|
|
||||||
NO_WRKSUBDIR= yes
|
NO_WRKSUBDIR= yes
|
||||||
USE_REINPLACE= yes
|
USE_REINPLACE= yes
|
||||||
|
@ -40,6 +43,7 @@ pre-everything::
|
||||||
@${ECHO_MSG}
|
@${ECHO_MSG}
|
||||||
@${ECHO_MSG} "WITH_POSTFIX=yes (Postfix)"
|
@${ECHO_MSG} "WITH_POSTFIX=yes (Postfix)"
|
||||||
@${ECHO_MSG} "WITH_POSTFIX_DB3=yes (Postfix with DB3 database maps)"
|
@${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} "WITH_EXIM=yes (Exim)"
|
||||||
@${ECHO_MSG}
|
@${ECHO_MSG}
|
||||||
@${ECHO_MSG} "Define WITH_FOREGROUND to make the rpc.dracd daemon stay in"
|
@${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.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 @@
|
@@ -5,9 +5,10 @@
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
# OS-Dependant settings
|
# OS-Dependant settings
|
||||||
|
|
||||||
@@ -33,22 +34,42 @@
|
@@ -33,22 +34,46 @@
|
||||||
# -DCIDR_KEY # keys in CIDR format
|
# -DCIDR_KEY # keys in CIDR format
|
||||||
# -DTERM_KD # keys and data nul-terminated
|
# -DTERM_KD # keys and data nul-terminated
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
+DEFS+= -DSOCK_RPC
|
+DEFS+= -DSOCK_RPC
|
||||||
+.endif
|
+.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
|
+DEFS+= -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD
|
||||||
+.elif defined(WITH_EXIM)
|
+.elif defined(WITH_EXIM)
|
||||||
+DEFS+= -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD -DREQ_HASH -DCIDR_KEY
|
+DEFS+= -DFLOCK_LOCK -DGETHOST -DDASH_C -DTERM_KD -DREQ_HASH -DCIDR_KEY
|
||||||
|
@ -60,6 +60,10 @@
|
||||||
+.if defined(WITH_POSTFIX_DB3)
|
+.if defined(WITH_POSTFIX_DB3)
|
||||||
+CFLAGS+= -I${LOCALBASE}/include/db3
|
+CFLAGS+= -I${LOCALBASE}/include/db3
|
||||||
+LDLIBS+= -L${LOCALBASE}/lib -ldb3
|
+LDLIBS+= -L${LOCALBASE}/lib -ldb3
|
||||||
|
+.endif
|
||||||
|
+.if defined(WITH_POSTFIX_DB41)
|
||||||
|
+CFLAGS+= -I${LOCALBASE}/include/db41
|
||||||
|
+LDLIBS+= -L${LOCALBASE}/lib -ldb41
|
||||||
+.endif
|
+.endif
|
||||||
|
|
||||||
# Man sections
|
# Man sections
|
||||||
|
|
Loading…
Add table
Reference in a new issue