I'm pretty sure they were not jury rigged, but meant to be used like that from the start. The "stock" is actually a carrying holster that doubles as a stock. There was also an "artillery Luger" with looong barrel, but IIRC meant for artillery rather then as artillery.
I think the Stiechkin...