Skip to end of metadata
Go to start of metadata

OpenIndiana maintains source repositories for the included software. Some repositories are direct clones of upstream repositories opensolaris.org or genunix.org, others are specific to OpenIndiana.

They are in the form of Mercurial repositories can be cloned via HTTP and modified over SSH.

You can browse all of the repositories here: http://hg.openindiana.org/.
Specify the HTTP URL of a repository to hg clone to create a clone.

See Building the Operating System for more details about the repository layout.

Information for repository maintainers

Configuring the web server

Create /etc/apache2/2.2/conf.d/pkgdev.conf:

Cloning a Mercurial repo

Log in to pkgdev.openindiana.org. Create a filesystem for the new repo under data/export, named as the repo:

Change it to owned by the hg user, hg group:

Tell the Mercurial web app about it, by adding a line to /usr/demo/mercurial/hgweb.config:

Switch to the hg user, and clone into the filesystem:

(If you forget the -U flag, do an hg update null in the repo after the clone.) Edit the repository's web information, /data/export/wombat/.hg/hgrc:

The hg user has a cron job which runs a script (update-repos.sh) which pull updates from remote repos. Add this repo to the script.

Cloning a Subversion repo

This is a bit fiddlier, as it needs to use a custom-built copy of hg. But the only step that's really different is the cloning. Do this instead:

Converting big subversion repositories is seriously slow, consider running hg inside screen or using nohup.

The cron job can't update a converted repo. You basically have to re-run the conversion step again - but it is smart enough to do an incremental conversion.

Pushing changes to a repo

We allow a number of users to push changes to the repos. We use the model of a single "hg" account which can only be accessed via ssh with public keys, and the authorized committers have their public keys in the hg account's .ssh/authorized_keys file.

Labels:
  1. Apr 26, 2011

    Anonymous

    I can not clone from the repo

    when I tried
    $ hg clone -U ssh://anon@hg.openindiana.org/hg/wombat/source wombat
    The authenticity of host 'hg.openindiana.org (91.194.75.39)' can't be establishe
    d.
    only got :

    RSA key fingerprint is 27:a1:62:0e:a1:e9:b2:ec:c2:0c:24:4d:44:e3:c1:44.
    Are you sure you want to continue connecting (yes/no)? yes
    Password:

  2. Apr 26, 2011

    Anonymous

    I have poor internet ,while everytime I refresh my OS, I need to download the whole iso file,maybe we could build a developer-distr openindiana that contain gcc ,gdb and other developer
    needed software ,it will make us easy to start build openindiana