OpenBSD Index

2.1. Sources

Allows to fetch sources;

        # usermod -G wsrc exampleuser
        

Allows to build from ports;

        # usermod -G wobj exampleuser
        

Create directory xenocara and ports

        cd /usr
        mkdir -p   xenocara ports
        chgrp wsrc xenocara ports
        chmod 775  xenocara ports
        

Group wobj should have rwx

        /usr/obj
        

Get sources

        ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/{ports.tar.gz,SHA256.sig}

signify -Cp /etc/signify/openbsd-$(uname -r | cut -c 1,3)-base.pub -x SHA256.sig ports.tar.gz
        
        $ cd /usr/src
        $ tar xzf ~/src.tar.gz
        $ tar xzf ~/sys.tar.gz
        $ cd /usr
        $ tar xzf ~/ports.tar.gz
        $ cd /usr/xenocara
        $ tar xzf ~/xenocara.tar.gz
        
        echo 'export CVSROOT="anoncvs@anoncvs.fr.openbsd.org:/cvs"' >> .kshrc
        $ cd /usr/ports
        $ cvs -d anoncvs@anoncvs.fr.openbsd.org:/cvs -q up -Pd -rOPENBSD_6_8
        

Repeat above to the other sources, to update the ports tree later:

        $ cd /usr/ports
        $ cvs -q up -Pd -rOPENBSD_6_8
        
OpenBSD Index

This is part of the LeetIO System Documentation. Copyright (C) 2021 LeetIO Team. See the file Gnu Free Documentation License for copying conditions.