Libertarianism: "All the parts of government that benefit rich folks are legit/necessary/essential. All the parts that benefit poor folks are illegitimate/aggression/tyranny."
That's right-wing libertarianism. Libertarianism was first formulated by a French anarcho-communist named Joseph Déjacque in the late 1800's, who lambasted Proudhon (of "property is theft" fame) for not being sufficiently focused on liberty.
Right-libertarianism on the other hand was basically an attempt at reformulating the theories of Ayn Rand and von Mises to something that would allow a common from on many issues with liberal groups on the left.