FreeBSD/OpenBSD Notes
FreeBSD Notes - install from provided FreeBSD ports
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.
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.
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.
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
