I'll be watching this thread, since I want to move my compost closer to the coop.
I sprinkle a liberal cayenne pepper border around my current compost, and it really helps deter the opossums and raccoons. My dogs quickly discovered this method is effective!