A Member or his survivor is eligible for an annuity under this subchapter only if the amounts named by
section 8334 of this title have been deducted or deposited with respect to his last 5 years of civilian service, or, in the case of a survivor annuity under section 8341(d) or (e)(1) of this title, with respect to his total service.