Sure you can. Just get permission from the contributors first. There are companies (like Digium) which do exactly this, but they go about it in a better way. Also some companies, like EnterpriseDB do that with other peoples' code (again, with their permission). It isn't wrong or underhanded as long as it is transparent, understood, and legal. Joshua can correct me if I am wrong, but I believe that "Mammoth PostgreSQL" was licensed under a proprietary license for a while.
Well the key difference here is, PostgreSQL (what Mammoth Replicator and EnterpriseDB are based off of) is BSD licensed. To answer the specific question, yes Mammoth PostgreSQL was closed source, it is more of an auxilary FOSS project now. Mammoth Replicator is still closed source.
The BSD explicitly allows us to do as we wish with the code, including fork, close source, mutate etc...
LedgerSMB is GPL, which is a whole different legal and ideological mindset, although they are both FOSS.
Sincerely, Joshua D. Drake -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/