diff --git a/shells/bash/Makefile b/shells/bash/Makefile index e4a986b630ef..0f3fe1dcbf51 100644 --- a/shells/bash/Makefile +++ b/shells/bash/Makefile @@ -31,6 +31,7 @@ COMMENT= The GNU Bourne Again Shell .include +USE_REINPLACE= yes WRKSRC= ${WRKDIR}/bash-${PORTVERSION:C/\....$//} GNU_CONFIGURE= Yes CONFIGURE_ARGS= --with-installed-readline @@ -41,6 +42,10 @@ CONFIGURE_ARGS+= --enable-static-link=no .endif MAN1= bash.1 bashbug.1 +post-patch: + @${REINPLACE_CMD} -e "s,.FN /bin/bash,.FN ${PREFIX}/bin/bash," \ + ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/doc/bash.1 + post-install: ${CP} /etc/shells /etc/shells.bak (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; ${ECHO_CMD} ${PREFIX}/bin/bash) >/etc/shells diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile index e4a986b630ef..0f3fe1dcbf51 100644 --- a/shells/bash2/Makefile +++ b/shells/bash2/Makefile @@ -31,6 +31,7 @@ COMMENT= The GNU Bourne Again Shell .include +USE_REINPLACE= yes WRKSRC= ${WRKDIR}/bash-${PORTVERSION:C/\....$//} GNU_CONFIGURE= Yes CONFIGURE_ARGS= --with-installed-readline @@ -41,6 +42,10 @@ CONFIGURE_ARGS+= --enable-static-link=no .endif MAN1= bash.1 bashbug.1 +post-patch: + @${REINPLACE_CMD} -e "s,.FN /bin/bash,.FN ${PREFIX}/bin/bash," \ + ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/doc/bash.1 + post-install: ${CP} /etc/shells /etc/shells.bak (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; ${ECHO_CMD} ${PREFIX}/bin/bash) >/etc/shells diff --git a/shells/bash3/Makefile b/shells/bash3/Makefile index e4a986b630ef..0f3fe1dcbf51 100644 --- a/shells/bash3/Makefile +++ b/shells/bash3/Makefile @@ -31,6 +31,7 @@ COMMENT= The GNU Bourne Again Shell .include +USE_REINPLACE= yes WRKSRC= ${WRKDIR}/bash-${PORTVERSION:C/\....$//} GNU_CONFIGURE= Yes CONFIGURE_ARGS= --with-installed-readline @@ -41,6 +42,10 @@ CONFIGURE_ARGS+= --enable-static-link=no .endif MAN1= bash.1 bashbug.1 +post-patch: + @${REINPLACE_CMD} -e "s,.FN /bin/bash,.FN ${PREFIX}/bin/bash," \ + ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/doc/bash.1 + post-install: ${CP} /etc/shells /etc/shells.bak (${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; ${ECHO_CMD} ${PREFIX}/bin/bash) >/etc/shells