aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-07-14 03:36:15 +0800
committereik <eik@FreeBSD.org>2004-07-14 03:36:15 +0800
commitb5bfcc6d907e33ee123d60d48069a806b67aee7d (patch)
tree412001f3e829a9aa2a6a6f6138c6ac4858d08300 /ports-mgmt
parentaa93fe8188376f54e180ff80fedccdeefff473f2 (diff)
downloadfreebsd-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-req5
-rw-r--r--ports-mgmt/portmk/Makefile4
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."