Translations of this page?:
Table of Contents

Porting

Guides

Locations

  • /usr/ports/distfiles copies of downloaded files
  • /usr/obj/ports scratch area for building ports
  • /usr/ports/plist PLISTs of installed ports
  • /var/db/pkg PLISTs of installed packages

Setup

  • Setup .profile and checkout/update ports tree
  • Setup /etc/mk.conf
    • SUDO=/usr/bin/sudo
      PLIST_DB=${PORTSDIR}/plist
      WRKOBJDIR=/usr/obj/ports
      USE_SYSTRACE=Yes
      
  • Fix filesystem permissions
    • add your user to wsrc group
    • fix permissions:
      • sudo chgrp -R wsrc /usr/ports
      • sudo chgrp -R wsrc /usr/obj/ports
    • make directories writable:
      • sudo find /usr/ports -type d -exec chmod g+w {} \;
      • sudo find /usr/obj/ports -type d -exec chmod g+w {} \;

« start

 
porting.txt · Last modified: 2009/10/19 16:36 by Alex Popov
 
Except where otherwise noted, content on this wiki is licensed under the following license:Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki