aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-05-26 02:53:12 +0800
committervs <vs@FreeBSD.org>2004-05-26 02:53:12 +0800
commit08b85445f2b62b69d46689c9343abdbaf5ff04f2 (patch)
tree9e33e2709dde8274bd84f84a25e3935364bcbbbf /mail
parent8ec23ce45c0f3a2e6a6ecac3eb99a20308214869 (diff)
downloadfreebsd-ports-graphics-08b85445f2b62b69d46689c9343abdbaf5ff04f2.tar.gz
freebsd-ports-graphics-08b85445f2b62b69d46689c9343abdbaf5ff04f2.tar.zst
freebsd-ports-graphics-08b85445f2b62b69d46689c9343abdbaf5ff04f2.zip
Pull some tricks to build on pre-4.4 systems.
Approved by: maintainer
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 21dafa814ce..ed144cf004f 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}" \