User Tools

Site Tools


devvertofreebsd

A cookbook on how to download and install the bleeding edge of the NAV development version on a freeBSD machine

FIXME: Can someone who knows their way around the FreeBSD ports system add info on how to get a Mercurial client for FreeBSD?

- Make a directory, example : /usr/local/src/nav
- cd /usr/local/src/nav
- hg clone http://nav.uninett.no/hg/default/
  (You need a Mercural client package)
   A directory /usr/local/src/nav/default is created
- Some Mercurial commands :
  hg pull
  hg update
  hg log

01) nav stop
    /usr/local/etc/rc.d/apache2.sh stop
    /usr/local/etc/rc.d/020.jakarta-tomcat50.sh stop
    /usr/local/etc/rc.d/010.pgsql.sh stop
02) mv /usr/local/nav /usr/local/nav-DATE
03) cd /usr/local/src/nav/default
      hg pull
      hg update
04) cd /usr/ports/net-mgmt/nav
      make clean
      unset JAVA_HOME
      make extract
      cp -R /usr/local/src/nav/default/* /usr/ports/net-mgmt/nav/work/nav-3.0_beta10/
      FORCE_PKG_REGISTER=yes
      make install
05) (new shell) su -
      . /usr/local/nav/bin/navenv.sh
      ln -s /usr/local/cricket /usr/local/nav/cricket
      ln -s /usr/local/cricket/public_html /usr/local/nav/apache/webroot/cricket
      /usr/local/etc/rc.d/010.pgsql.sh start
      /usr/local/etc/rc.d/020.jakarta-tomcat50.sh start
      /usr/local/etc/rc.d/apache2.sh start
06) edit:
      /usr/local/nav/etc/db.conf
      /usr/local/nav/etc/pg_backup.conf
      /usr/local/nav/lib/python/nav/web/pyproxy/proxy.py
07) Start nav + maybe stop some services
      nav start
      nav stop logengine

Contributed to NAV wiki by roar.pettersen at it.uib.no and borge brunes at cc.uit.no

devvertofreebsd.txt · Last modified: 2012/05/07 11:21 by morten