How about:
Boston trades: Tony Allen, cash, #2 from Sacramento
Boston receives: Marquis Daniels ($2.5 million sign-and-trade)
OKC trades: Damien Wilkins
OKC receives: Tony Allen, #2 from Sacramento
Indiana trades: Marquis Daniels
Indiana receives: Damien Wilkins, cash
The cash sent would be enough to almost off-set Wilkins salary, meaning Indiana would get a end-of-rotation guy for free. Tony would go back home, and Boston could clear Tony's salary from the books.
Of course, there's the question of what OKC gets out of it, but they've at least explored signing Tony in the past, and they're saving money in the deal.