I have slept 4 nights recently (July) in the Czech Republic and Poland with boars nearby. I make it a habit to urinate on the trees around my campsite to let animals, particularly wild dogs, know it is my territory. The first night, a boar came sniffing quite close, about 2 meters away. I shouted. On the third shout, it went away. The next night, I placed a 0.5 meter tall fence of sticks around my site. No boars came close, but I heard at least two galloping at high speed on a trail near my campsite. I didn't realize it was a boar path. Definitely don't camp in the middle of anything that looks like a path. The third night, I built a 1.5 meter tall, heavy fence from branches around my camp. No boars at all that night, but it could have been because a hunter had shot one earlier in the evening about 0.5 kilometers away. The fourth night I was in the outskirts of a city and thought there would be no boars. I was wrong. Paths through high grass are a giveaway. I heard what I thought was a domestic dog barking loudly over and over and another one replying, on two occasions. It was boars. Anyway, they didn't come closer than 75 meters, for which I was grateful. My takeaway from experience and reading is, they're unlikely to charge a tent, they will go away if you yell, but they might accidentally run into you if you set up camp on their trail, and they will make a ton of noise.