Freezing coffee should only be done if you know for a fact that there is going to be no way for you to purchase more coffee in months. Freezing will slow down the coffee from going stale but also takes it own toll by freeze drying your coffee's natural oils and wicking them away. If you have to freeze it once you thaw out the bag don't put it back into the freezer again.
The best way to keep your coffee fresh is in an airtight container stored on a shelf in your cabinet away from light, heat, and since it is in an air tight container you don't have to worry about the smells tainting the coffee. Still I would store it in a cabinet away from all the spices anyway.
Then the best way of them all to keep fresh coffee around is to find a local roaster and only buy enough coffee to make it a week, two at the max. This way your always drinking fresh coffee vs some thing you bought at the grocery store and has been in the bag for half a year.