mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
check for a working tr(1).
This commit is contained in:
parent
fb91f80fb8
commit
76de274928
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113581
@ -47,6 +47,10 @@ post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
activate:
|
||||
@if [ "`${ECHO_CMD} FreeBSD | ${TR} -s .`" != "FreeBSD" ]; then \
|
||||
${ECHO_MSG} "tr(1) is broken."; \
|
||||
${FALSE}; \
|
||||
fi
|
||||
@${GREP} -qs PORTMK /usr/share/mk/bsd.port.mk || \
|
||||
${PATCH} -s -N -d /usr/share/mk -i ${PORTMK_PATCH} && \
|
||||
${ECHO_MSG} ">> Configured bsd.port.mk."
|
||||
|
@ -23,5 +23,10 @@ INSTALL)
|
||||
echo "${PKG_INFO} is too old, please update port sysutils/pkg_install-devel"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "`echo FreeBSD | tr -s .`" != "FreeBSD" ]; then
|
||||
echo "tr(1) is broken."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
@ -47,6 +47,10 @@ post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
activate:
|
||||
@if [ "`${ECHO_CMD} FreeBSD | ${TR} -s .`" != "FreeBSD" ]; then \
|
||||
${ECHO_MSG} "tr(1) is broken."; \
|
||||
${FALSE}; \
|
||||
fi
|
||||
@${GREP} -qs PORTMK /usr/share/mk/bsd.port.mk || \
|
||||
${PATCH} -s -N -d /usr/share/mk -i ${PORTMK_PATCH} && \
|
||||
${ECHO_MSG} ">> Configured bsd.port.mk."
|
||||
|
@ -23,5 +23,10 @@ INSTALL)
|
||||
echo "${PKG_INFO} is too old, please update port sysutils/pkg_install-devel"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "`echo FreeBSD | tr -s .`" != "FreeBSD" ]; then
|
||||
echo "tr(1) is broken."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user