If all you have is a shotgun, you don't ever want to let a boar get into the range where buck shot would do more than tickle them. Solid slugs if anything. Anything other than rifle fire will barely slow them down unless you get a perfect head shot.
Most of the time, boars are taken down by...