The government of Sudan signed a preliminary peace accord on Friday night with a rebel group from the country 's impoverished south that could end one of Africa 's longest-running civil wars , even as the conflict in the western Darfur region continued .