just for the laughs btw …
https://github.com/ogra1/packageproxy/blob/master/run-approx
using socat in a wrapper script also gets you nicely working socket activation
(this is particulary using port activation though, but socket is possible as well)