openbsd-ports/security/prelude/libpreludedb/files
aanriot 80e8aef6df - update to 0.9.11 .
- SHARED_LIBS format.
- move LIB_DEPENDS variables out of the loops.
- advise another database location for SQLite, it doesn't affect
  existing setups.

espie glanced at the infrastructure changes;
"looks ok" msf@
2006-12-30 16:30:11 +00:00
..
README.OpenBSD - update to 0.9.11 . 2006-12-30 16:30:11 +00:00

To start with libpreludedb, you have to install at least one DBMS module
for libpreludedb (e.g. prelude-libpreludedb-pgsql). Then, install the
database with the database-dependent instructions.

Instructions for PotsgreSQL:

  # su - _postgresql
  $ createuser --pwprompt prelude (default password "prelude" / n,n,n)
  $ createdb -O prelude prelude
  $ cd $PREFIX/share/libpreludedb/classic/
  $ psql -U prelude -W prelude < pgsql.sql

Instructions for MySQL:

  Login as a privileged user, e.g. 'root':

  # mysql -u root -p
  mysql> CREATE DATABASE prelude;
  mysql> GRANT ALL PRIVILEGES on prelude.* to prelude IDENTIFIED by '...';

  # cd $PREFIX/share/libpreludedb/classic/
  # mysql -u prelude -p prelude < mysql.sql

Instructions for SQLite:

  # cd /var/prelude/
  # sqlite3 prelude.db < $PREFIX/share/libpreludedb/classic/sqlite.sql
  # chown _prelude:_prelude prelude.db