Code: Select all
PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_ELOG_CLASSES="warn error log qa"
PORTAGE_ELOG_MAILURI="<receiver> <account>:<password>@<mailserver>:<port>"
PORTAGE_ELOG_MAILFROM="<sender>"
That's exactly what I do. The output of sync and update -p are both mailed to me from both server and clients.freke wrote:Emerge sync should be quite safe (and you could setup a local mirror for that, so you only sync upstream once).
You could do an emerge in cron with --pretend/-p option and get that output mailed to you - to verify before doing an actual manual emerge.
Code: Select all
#!/bin/sh
emerge --sync
echo "emerge -uDU world -p" > /home/USERNAME/bin/emergeauto.txt
emerge -uDU world -p >> /home/USERNAME/bin/emergeauto.txt 2>&1Code: Select all
#!/bin/sh
mail -s "jeremiah emerge output" USERNAME < /home/USERNAME/bin/emergeauto.txt

Then you only have to install the binary packages and update configs whenever you have time for the actual updates.Creates binary packages for all ebuilds processed without actually merging the packages. This comes with the caveat that all build-time dependencies must already be
emerged on the system.
Code: Select all
emerge -uDUBv world
emerge @preserved-rebuild --usepkg=n -B
eclean-pkg
eclean-dist -d