This is on-topic from time to time. To avoid that issue I run a script as user as below:
I run it on a SSD where update of access time is switched off. Otherwise the 9th line might be skipped. The method is copied from x11/biff. BTW: Sometimes only the text messages are updated. But it triggers the message as well. May be others have a similar solution already.
Kind regards and happy updating
!
Code:
#!/bin/sh
sudo /usr/sbin/portsnap fetch update
/usr/sbin/pkg version -v | /usr/bin/grep need
if test $((`/usr/bin/stat -f "%a-%m" /usr/ports/UPDATING`)) -ne 0
then
echo "*******************************************************"
echo "************ /usr/ports/UPDATING modified *************"
echo "*******************************************************"
sudo touch /usr/ports/UPDATING
fi
sudo pkg audit -F
Kind regards and happy updating
