Man gets 8-year prison term in drug case