Skip to content

Instantly share code, notes, and snippets.

@lattera
Created March 18, 2019 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lattera/7551315f1b127d63c350b33e03922a85 to your computer and use it in GitHub Desktop.
Save lattera/7551315f1b127d63c350b33e03922a85 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/zsh
find /usr/ports -type f -name Makefile -print | \
xargs egrep '^USE_HARDENING' | \
grep safestack 2>&1 | awk -F ':USE' '{print $1;}' | \
while read port; do
portdir=$(dirname ${port})
echo "* ${portdir}" >&2
(
cd ${portdir}
if ! make check-plist clean BATCH=1 2> /dev/null 1>&2; then
echo "- ${portdir}"
else
echo "+ ${portdir}"
fi
)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment