openbsd-ports/security/samhain/pkg/README-server
2012-05-18 11:30:09 +00:00

42 lines
1.2 KiB
Plaintext

$OpenBSD: README-server,v 1.2 2012/05/18 11:30:09 ajacoutot Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
A manual is available at:
http://la-samhna.de/samhain/manual/
MySQL (InnoDB)
==============
Connect to MySQL, and create a user and database for Samhain;
$ mysql -u root -p
mysql> create user samhain@localhost identified by 'password';
mysql> create database samhain;
mysql> grant all privileges on samhain.* to samhain@localhost;
mysql> flush privileges;
mysql> quit
Then initialize the database from the files installed in
${TRUEPREFIX}/share/examples/yule:
$ cd ${TRUEPREFIX}/share/examples/yule
$ mysql -usamhain -p samhain < mysql.sql
PostgreSQL
==========
Assuming you have an administrative account named `postgres',
you can create the 'samhain' user and database like this:
$ createuser -U postgres --pwprompt --no-superuser \
--createdb --no-createrole samhain
$ createdb -U samhain samhain
And initialize the database:
$ cd ${TRUEPREFIX}/share/examples/yule
$ psql -U samhain samhain < samhain.postgresql.init