I like Google's Summer of Code program http://en.wikipedia.org/wiki/Google_Summer_of_Code . If you can get programmers writing open-source code when they're still students, a fair number of them might continue to contribute to open source over their career.
I really like Gabriel's idea too. Donations to open-source (or groups like the EFF) are great for the net.