aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sendmail
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2005-01-08 22:35:41 +0800
committerdinoex <dinoex@FreeBSD.org>2005-01-08 22:35:41 +0800
commitf9fb0c5305e929a792e0f101a4efa3713885c8eb (patch)
tree23075fa1400d464955d0339ed9b6df8ea3565939 /mail/sendmail
parent2c09c9d6f4fc9a0d1d5ecc5ac173698792d33533 (diff)
downloadfreebsd-ports-gnome-f9fb0c5305e929a792e0f101a4efa3713885c8eb.tar.gz
freebsd-ports-gnome-f9fb0c5305e929a792e0f101a4efa3713885c8eb.tar.zst
freebsd-ports-gnome-f9fb0c5305e929a792e0f101a4efa3713885c8eb.zip
- new option SENDMAIL_WITHOUT_NIS
PR: 75788 Submitted by: Oleg Sharoiko
Diffstat (limited to 'mail/sendmail')
-rw-r--r--mail/sendmail/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 203ed6d680a5..3d70ce1f26a1 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -39,6 +39,7 @@ MILTER_SOVER?= 3
# Options to define Features:
# SENDMAIL_WITHOUT_IPV6=yes
# SENDMAIL_WITHOUT_MILTER=yes
+# SENDMAIL_WITHOUT_NIS=yes
# SENDMAIL_WITHOUT_SHMEM=yes
# SENDMAIL_WITH_TLS=yes
# SENDMAIL_WITH_SMTPS=yes
@@ -245,6 +246,13 @@ PLIST_SUB+= MILTER_SHARED="@comment "
.endif
.endif
+SED_SCRIPT= -e "s;\`-pthread\';\`${PTHREAD_LIBS}\';" \
+ -e "s;\`-O\';\`${CFLAGS}\';"
+
+.if defined(SENDMAIL_WITHOUT_NIS)
+SED_SCRIPT+= -e "s;-DNIS ;;"
+.endif
+
post-extract:
@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sm-client.sh \
> ${WRKSRC}/sm-client.sh
@@ -275,9 +283,7 @@ pre-configure:
do-configure:
@${MV} ${WRKSRC}/devtools/OS/FreeBSD ${WRKSRC}/devtools/OS/FreeBSD.sed
- ${SED} -e "s;\`-pthread\';\`${PTHREAD_LIBS}\';" \
- -e "s;\`-O\';\`${CFLAGS}\';" \
- ${WRKSRC}/devtools/OS/FreeBSD.sed \
+ ${SED} ${SED_SCRIPT} ${WRKSRC}/devtools/OS/FreeBSD.sed \
> ${WRKSRC}/devtools/OS/FreeBSD
${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \
-e "s=%%LOCALBASE%%=${LOCALBASE}=g" \