After the news earlier this week of reliever Sergio Romo returning to the Giants on a two-year contract, they’re close to finalizing a two-year deal for Jake Peavy, which would be consummated once he passes a physical today.

The Giants have five starters – management had said Tim Lincecum will be in the season-opening rotation – but assistant GM Bobby Evans said on KNBR that the Peavy signing doesn’t close the door on pursuits of another starter. The Giants reached out to free agent James Shields during the winter meetings, and he’d certainly be a nice fit alongside ace Madison Bumgarner.

As it stands, the rotation goes Bumgarner, Matt Cain, Tim Hudson, Lincecum and Peavy. We confirmed a report by Fox Sports that it’s a two-year deal for Peavy, 33, who’ll make $24 million: a $4 million signing bonus, $7 million in 2015, $13 million in 2016 and full no-trade powers.

He went 6-4 with a 2.17 ERA in 12 starts after arriving from Boston in July (after going 1-9 with a 4.72 ERA with the Red Sox). But in the World Series, he gave up nine earned runs in 6 1/3 innings. In a Division Series start, he threw 5 2/3 scoreless innings.

The Giants sent Edwin Escobar and Heath Hembree to Boston for Peavy.