GAZA/JERUSALEM (Reuters) - Prime Minister Benjamin Netanyahu said on Sunday any deal on Gaza's future at truce talks in Cairo must be contingent on Israel's security needs, cautioning Hamas against carrying out its threat of a long war if Palestinian demands are not met.