Hec Ramsey was a retired gunfighter (See "Have Gun - Will Travel") in the early 20th century. As gunfighting was going out of fashion, he took a job as Deputy Sheriff in Oklahoma. Being somewhat politically incorrect, he was frequently at loggerheads with the Sheriff, a dude who was grooming himself to run for Mayor.
Unlike most western TV lawmen of the 70's, Hec would often demonstrate considerable sexual appetite and prowess. This was sometimes extended to female villains, but he always busted them after collecting the evidence.
Hec was only able to retain his job as a result of his successful record due to his intelligence and use of new-fangled methods of criminology such as fingerprinting and ballistics.
Unfortunately, the series only lasted for 10 episodes and will probably never be released on DVD.