imported post
I'm going to go out on a limb here and say that the Star Trek franchise is moderately pro-gun.
I'm going on a limb because Gene Rodenberry and most of the people who have worked on or acted in the show and movies over the years have been utopian-minded idiots, mostly Hollywood liberals.
But there have been several storylines that involve self-defense-related themes. In one episode, Captain Kirk was forced to fight unarmed against a bigger, stronger alien, and after getting nowhere with fists or throwing rocks, he actually contsructs his own makeshift hand cannon and makes black powder out of minerals on the planet's surface. (That should really be a Mythbusters episode).
Also, on the most recent series Enterprise, the first episode starts with a Klingon, the first ever seen by humans, fighting some other aliens on a farm in Iowa. The farmer hears the commotion and comes outside armed with some sort of plasma rifle, and when the Klingon advances in a threatening manner, he shoots him and almost kills him.
So in the very first human-Klingon encounter, it's Armed American Civilian: 1, Klingon warrior: 0.
Overall, though, Star Trek is very pro-authority and anti-individual liberty.