We use permethrin for that now. Problem is, permethrin is toxic to cats.
Its natural form, pyrethrum, made from chrysanthemum flowers, isn’t toxic to cats but breaks down in sunlight, so it is good only inside the barn. The chrysanthemum has been used at least since the Napoleonic wars to rid the French of fleas and the dreaded louse.