diff options
author | eik <eik@FreeBSD.org> | 2004-07-14 03:36:15 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-07-14 03:36:15 +0800 |
commit | b5bfcc6d907e33ee123d60d48069a806b67aee7d (patch) | |
tree | 412001f3e829a9aa2a6a6f6138c6ac4858d08300 /ports-mgmt | |
parent | aa93fe8188376f54e180ff80fedccdeefff473f2 (diff) | |
download | freebsd-ports-gnome-b5bfcc6d907e33ee123d60d48069a806b67aee7d.tar.gz freebsd-ports-gnome-b5bfcc6d907e33ee123d60d48069a806b67aee7d.tar.zst freebsd-ports-gnome-b5bfcc6d907e33ee123d60d48069a806b67aee7d.zip |
check for a working tr(1).
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portaudit/pkg-req | 5 | ||||
-rw-r--r-- | ports-mgmt/portmk/Makefile | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ports-mgmt/portaudit/pkg-req b/ports-mgmt/portaudit/pkg-req index c566a36bb3b6..5a8ba2d087db 100644 --- a/ports-mgmt/portaudit/pkg-req +++ b/ports-mgmt/portaudit/pkg-req @@ -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 diff --git a/ports-mgmt/portmk/Makefile b/ports-mgmt/portmk/Makefile index 13cf2429e33c..27d9ee000628 100644 --- a/ports-mgmt/portmk/Makefile +++ b/ports-mgmt/portmk/Makefile @@ -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." |