Is the stovepipe the insulated type? If so, the manufacturer probably
makes a special adapter to go through the roof.
If not insulated, be very careful to leave a generous amount of space
around the pipe. If you ever have a chimney fire, the pipe will get
red hot and ignite any wood in close proximity.