Ireland shocked South Africa in the first of their November internationals with a convincing win in Dublin.