  We introduce a longevity feature to the classical optimal dividend problem by
adding a constraint on the time of ruin of the firm. We extend the results in
\cite{HJ15}, now in context of one-sided L\'evy risk models. We consider de
Finetti's problem in both scenarios with and without fix transaction costs,
e.g. taxes. We also study the constrained analog to the so called Dual model.
To characterize the solution to the aforementioned models we introduce the dual
problem and show that the complementary slackness conditions are satisfied and
therefore there is no duality gap. As a consequence the optimal value function
can be obtained as the pointwise infimum of auxiliary value functions indexed
by Lagrange multipliers. Finally, we illustrate our findings with a series of
numerical examples.
