Public Goods in Networks with Constraints on Sharing