I have a recipe for an herbal repellent of about six different herbs. I mixed a batch up, and seventeen years later it's still working for my fly-tying stuff. I remember rosemary as being one of the ingredients. I could dig it out if people are interested.
Mostly, I use plastic containers. I did lose one good cowboy hat, though. Moths like dirt, and there was no shortage of dirt and sweat on it.
Another fly-tying tip: if you have a small article that you think has eggs or larvae on it, put it in the microwave for a few seconds. End of problem.