Same as any other situation; shelter, water, food, medical help if required, and then back home as quickly as possible.
I am becoming old and cynical....the tide of refugees only stops when they go home. If they don't go home then a kind of refugee-itis sets in, and what was given as a charitable and humanitarian assistance becomes a necessity that's never enough. Very quickly people create families, they talk to their children and somehow in the telling the story becomes a 'cause', and the young who are locked into the refugee situation become frustrated, and angry, and then comes terrorism, and more disputes, and more and more refugees struggling
Honestly ? Give them succour, and reliable birth control, and get them back home asap.
Probably not the reply expected
Don't set up permanent housing, don't set up permanent anything, short term shelter and aid, and then back on their own feet and home. It's their country, not one single example of interference since the end of WW2 has actually led to a permanent peace. It has to come from the people themselves.
The only other way is for those who have fled to be totally integrated into other countries with all the rights of citizenship and belonging. Don't see anyone offering to take in hundreds of thousands, do you ?
Definitely political, and I can't see any way of answering the question that doesn't need a political element to the decisions made.
M