A repository to hold various daemons to keep your OS X system up to date. If updates are available, you'l receive an email informing you of what to do.
update_macports.sh
borrows (heavily) from dtrsan'sport-update.sh
(https://github.com/dtrsan/scrapbook/blob/master/bin/port-update.sh)
- Move
update_macports.sh
andsend_email.py
to the desired location (e.g.~/bin
)- Configure
send_email.py
for your own email address and password. If you're using gmail (or any other email provider that supports two-factor authentication), I recommend using an application-specifc password because it has to be stored in plain text. - Configure
update_macports.sh
to point tosend_mail.py
and to your installation of MacPorts
- Configure
- Move
weitzner.UpdateMacPorts.plist
to/Library/LaunchDaemons
and feel free to rename the identifiercp weitzner.UpdateMacPorts.plist /Library/LaunchDaemons/$USER.UpdateMacPorts.plist
- Update
/Library/LaunchDaemons/$USER.UpdateMacPorts.plist
to point to the path whereupdate_macports.sh
is located and (optionally) change the label your liking.
- Update
- Add the daemon to launchd:
sudo launchctl load -w /Library/LaunchDaemons/$USER.UpdateMacPorts.plist