I think at this moment all governments should start funding the open source foundations so that the foundations can train as well as retain good programming talent to keep the important open source software maintained. I think it will serve better in the long term to the government departments as well as the citizens.
If this is how we do it, there is the glaring vulnerability that a rogue administration could yank the rug on all these organizations and leave them scrambling for funding.