summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-05-25 18:53:12 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-05-25 18:53:12 +0000
commit7957a181646aea332af9cc10d76d2da4df82f237 (patch)
tree5e380ac781489e190a25ec8d17ca38438903ae14 /mail
parent- Fix MASTER_SITES (diff)
Pull some tricks to build on pre-4.4 systems.
Approved by: maintainer
Notes
Notes: svn path=/head/; revision=109997
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-sender/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/milter-sender/Makefile b/mail/milter-sender/Makefile
index 21dafa814ced..ed144cf004ff 100644
--- a/mail/milter-sender/Makefile
+++ b/mail/milter-sender/Makefile
@@ -17,6 +17,7 @@ COMMENT= Real-time sender address verification, based on Milter API
RESTRICTED= see LICENSE.TXT
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/com/snert/src/milter-sender
@@ -24,6 +25,10 @@ MAKEFILE= makefile
.include <bsd.port.pre.mk>
+.if ( ${OSVERSION} < 440000 )
+BUILD_DEPENDS= gxargs:${PORTSBASE}/misc/findutils
+.endif
+
.if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a)
IGNORE= requires Sendmail 8.12
.endif
@@ -42,6 +47,12 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+= --with-db --localstatedir=/var/spool \
--enable-milter-cf="${PREFIX}/etc/milter-sender.cf"
+.if ( ${OSVERSION} < 440000 )
+post-patch:
+ ${REINPLACE_CMD} 's/xargs -J{}/gxargs -i{}/' ${WRKSRC}/../lib/configure
+ ${REINPLACE_CMD} 's+/usr/sbin/daemon -f ++' ${WRKSRC}/milter-sender.sh.in
+.endif
+
pre-configure:
@cd ${WRKSRC}/../lib && \
${SETENV} CC="${CC}" CXX="${CXX}" \