I don't know if it was ever said, but Kakashi HAS to have gotten Jiriayas books from someone. Maybe Minato told him about it and they bonded over the series.
And maybe this is where Naruto gets his pervy trait.
And maybe this is where Naruto gets his pervy trait.