Man sentenced to 6 years in drug case