repo-add uses readlink -f in linux to find out file's real path. readlink is part of coreutils.
I've found that readlink in BSD don't support -f option so we need to use realpath instead.

Attached you can find a mini-patch.

Cheers,
Antonio Huete