use a big strong cable/zip tie. It works , just keep the brake line OFF the driveshaft or moving parts. But its technically illegal.

To pass rego / blueslip / defect you would need to make up a custom bracket for it to connect to. Logically you could make something small for the 14mm fork bolt ( on the side)