NEW YORK (AP) — Walgreens has ended its takeover pursuit of rival Rite Aid following resistance from U.S. regulators and will instead now buy stores, distribution centers and inventory in a new deal. For scrapping the transaction, Walgreens Boots Alliance will pay Rite Aid Corp. a $325 million termination fee. Under the new agreement, Walgreens will buy 2,186 stores, three distribution centers and related inventory from Rite Aid for approximately $5.18 billion in cash. Prior to the new deal, Deerfield, Illinois-based Walgreens and Camp Hill, Pennsylvania-based Rite Aid faced a complicated task of easing antitrust concerns to complete the buyout.