aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2002-01-03 06:19:38 +0800
committeranders <anders@FreeBSD.org>2002-01-03 06:19:38 +0800
commit5ce21a15feed381593efe13d30349ef568283a85 (patch)
tree0a519d5bc6227eec550751762070809e8aa4fa6e /mail
parent8fd198e13f60ea8637be7166e60df45f64be6183 (diff)
downloadfreebsd-ports-gnome-5ce21a15feed381593efe13d30349ef568283a85.tar.gz
freebsd-ports-gnome-5ce21a15feed381593efe13d30349ef568283a85.tar.zst
freebsd-ports-gnome-5ce21a15feed381593efe13d30349ef568283a85.zip
Add support for Postfix DB3 maps.
Requested by: jeremy@external.org
Diffstat (limited to 'mail')
-rw-r--r--mail/drac/Makefile16
-rw-r--r--mail/drac/files/patch-aa11
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