Open Source Content Management Framework

FreeBSD/OpenBSD Notes

  1. FreeBSD Notes - install from provided FreeBSD ports
    1. Prerequisite:
    2. Download ports archive:
    3. Install from provided FreeBSD ports:
  2. OpenBSD Notes
    1. Use GNU Make Instead of FreeBSD Make

FreeBSD Notes - install from provided FreeBSD ports

Provided FreeBSD ports for Midgard system are tested for FreeBSD 6.0 and FreeBSD 6.1 version. Also this ports are known to work only with Apache2

Prerequisite:

In order to install and use Midgard Framework on a FreeBSD system, you must comply with Midgard source installation dependencies. After that you can proceed to the following step.

Download ports archive:

We hope we will have the Midgard ports aproved and included into FreeBSD ports system soon. Till then, you can download the last Midgard FreeBSD ports archive from the following location:

Install from provided FreeBSD ports:

Untar the provided ports archive in the www category into your ${PORTSDIR} directory. Usual FreeBSD system have this environment variable set to "/usr/ports", so your command for this step is:

$ tar -xyvf mgd_port_060508_archive.tar.bz2 -C /usr/ports/www/

After that, you will find 4 new directories - midgard-core midgard-apache midgard-php and midgard-data - into '/usr/ports/www' eachone related to the 4 FreeBSD ports, which together make the Midgard CMS system.

At this stage you will cannot use portupgrade as usual for working with this port. This is because the main ports INDEX file and database are not updated.

For all this to be installed and working on your system you need just two more steps.

Change directory to midgard-apache and install from there with next 2 command:

$ cd /usr/ports/www/midgard-apache
$ make install clean

This will install Midgard Apache2 module. Midgard Core library will also be installed at this stage as dependency.

FreeBSD use different PAM implementation than Linux. Current PAM support in Midgard is not tested with FreeBSD PAM implementation

Change directory to midgard-data and install from there with next 2 command:

$ cd /usr/ports/www/midgard-data
$ make install clean

This will install Midgard data utilities applications: Datagard and Repligard. Midgard PHP module will also be installed at this stage as dependency.

Some shells keep a cache of the commands that are available in the directories listed in the PATH environment variable, to speed up lookup operations for the executable file of these commands. If you are using one of these shells, you might have to use the rehash command after installing a port, before the newly installed commands can be used. This command will work for shells like tcsh. Use the hash -r command for shells like sh. Look at the documentation for your shell for more information.

Now you can run 'datagard'

$ datagard

and set your database and virtual hosts by following this: Setting Up a Midgard Database and Creating a New Virtual Host.

OpenBSD Notes

Use GNU Make Instead of FreeBSD Make

"Makefile", line 290: Need an operator.
This error means that you use FreeBSD Make instead of GNU Make (gmake).

To compile gmake :

cd /usr/ports/devel/gmake  
make  
make install
Designed by Nemein, hosted by Anykey