Other Using whereis to search for port sources in a different directory

Hi. When /usr/ports is populated, whereis searchs for the specified port in /usr/ports/ but i don't have /usr/ports populated and i have a ports tree in a different directory: /poudriere/ports/default. I couldn't find a proper whereis command to search for ports in that directory. I can use find as an alternative but i would like to use whereis for that.

find /poudriere/ports/default/ -name portname

Things that i have tried:
# whereis
usage: whereis [-abmqsux] [-BMS dir ... -f] program ...
root@desktop /home/yusuf # whereis -s -S /poudriere/ports/default/ -f doas
doas:
root@desktop /home/yusuf # whereis -a -S /poudriere/ports/default/ -f doas
doas: /usr/local/bin/doas /usr/local/share/man/man1/doas.1.gz
root@desktop /home/yusuf # whereis -a -B /poudriere/ports/default/ -f doas
doas: /usr/local/share/man/man1/doas.1.gz
root@desktop /home/yusuf # whereis -a -M /poudriere/ports/default/ -f doas
doas: /usr/local/bin/doas
root@desktop /home/yusuf #
 
Thanks. I did it as you said. I destroyed the zroot/usr/ports dataset and created the symlink.

root@desktop /usr # ll | grep ports
lrwxr-xr-x 1 root wheel 25 Mar 29 03:56 ports@ -> /poudriere/ports/default/
root@desktop /usr # whereis doas
doas: /usr/local/bin/doas /usr/local/share/man/man1/doas.1.gz /usr/ports/security/doas
 
Back
Top