Polvo helps you to develop non-standard modules over a file-based open source project and keep your ability to upgrade the base software and mantain your modifications. It was developed specifically for PHP+MySQL, but will work in other environments.
It basically manages sets of new files, patches and sql queries.