https://github.com/wdas/reposado
"Reposado is a set of tools written in Python that replicate the key functionality of Mac OS X Server's Software Update Service. Reposado, together with the "curl" binary tool and a web server such as Apache 2, enables you to host a local Apple Software Update Server on any hardware and OS of your choice. Reposado is licensed under the new BSD license. "