I have a set of InDesign scripts to do this. It inserts conditional text with the page numbers inserted at the print page breaks. A post-export script will turn that <span> into the correct epub:type inflection and collect the pagelist to plop into the <nag> document.
See:
http://www.bradytypesetting.com/rorohikoscripts