What is up with these pigs?

See the bushes in the first picture? Those pigs are not crazy, they're defending their harvest. By getting close to the berries you become a threat, so they attack you. So, if you want to befriend a pig, you better choose another one, and if you need berries get a free bush somewhere else or be prepared to fight. Otherwise, just walk around and they'll mind their own business.