aboutsummaryrefslogtreecommitdiff
path: root/shells/bash2
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2006-11-03 23:25:41 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2006-11-03 23:25:41 +0000
commitacd56d5496c11d0c7c5c66bb48c640016cd532b6 (patch)
tree065a8ee309b46dcae02e4d7c6a91633a6800886a /shells/bash2
parent19c2c930be18e95f6e7cbb22018603a01718df53 (diff)
downloadports-acd56d5496c11d0c7c5c66bb48c640016cd532b6.tar.gz
ports-acd56d5496c11d0c7c5c66bb48c640016cd532b6.zip
The readline fix should not be required on 4.x. Disable post-patch magic
on 4.x systems. Reported by: kris
Notes
Notes: svn path=/head/; revision=176311
Diffstat (limited to 'shells/bash2')
-rw-r--r--shells/bash2/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile
index 5e949a11301b..cbfd473688ad 100644
--- a/shells/bash2/Makefile
+++ b/shells/bash2/Makefile
@@ -49,12 +49,14 @@ MAN1= bash.1 bashbug.1
INFO= bash
post-patch:
+.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e "s,.FN /bin/bash,.FN ${PREFIX}/bin/bash," \
${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/doc/bash.1
@${RM} -rf ${WRKSRC}/lib/readline/*.[ch] \
${WRKSRC}/lib/readline/Makefile
@${TOUCH} ${WRKSRC}/lib/readline/Makefile.in
@${REINPLACE_CMD} -E "s,^((RL|HIST)_LIBSRC = ).*,\1/usr/include/readline," ${WRKSRC}/Makefile.in
+.endif
update-etc-shells:
@${ECHO_MSG} "updating /etc/shells"