Something like this perhaps? https://github.com/rundeck/packaging/pull/53
Something like this perhaps? #53