Local Approximation of Covering and Packing Problems