Mud wallows. Pigs aren't usually that troubled by flies but if you have a particular problem I don't think there are licenced products for pigs like there are for sheep and cattle. There are probably some horse products which would be ok. Have a look in the equestrian section at the feed store. If you have cuts then udder cream is handy.