# This file contains compile-time configuration variables. Most of
# these are compiled into the binaries. A few may be overridden at
# runtime using archiveopteryx.conf.
#
# Remember the spaces around '=' and before ';'.


## Files and directories. The directory names MUST NOT end with /.

# Prepended to directory names during installation, but not during use.
#
INSTALLROOT ?= "" ; 

# A convenient prefix used by most directory and file names,.
#
PREFIX ?= /usr/local/archiveopteryx ;

# The directory for user and sysadmin tools
#
BINDIR = $(PREFIX)/bin ;

# The directory where the servers are installed
#
SBINDIR = $(PREFIX)/sbin ;

# The directory where the man pages are installed
#
MANDIR = $(PREFIX)/man ;

# Supporting files
# 
LIBDIR = $(PREFIX)/lib ;

# The startup/shutdown script's directory
#
INITDIR = $(LIBDIR) ;

# Where to write pid files for the servers
#
PIDFILEDIR ?= $(PREFIX)/lib/pidfiles ;

# The servers chroot to an empty, unreadable jail directory at
# startup.
#
JAILDIR = $(PREFIX)/jail ;

# This is the default message-copy-directory.
#
MESSAGEDIR = $(PREFIX)/messages ;

# The directory where the configuration file is located.
#
CONFIGDIR = $(PREFIX) ;

# The directory where the README and other files are installed.
#
READMEDIR = $(PREFIX) ;

# The log file's default name. (This is the only configurable file
# name, all the others are directory names.)
#
LOGFILE = $(PREFIX)/logfile ;

# The default mode for the log file.
#
LOGFILEMODE ?= 400 ;

# The user and group needed.

AOXUSER ?= aox ;
AOXGROUP ?= aox ;

# How to compile

C++FLAGS = -g -Werror -funsigned-char ;
LINKFLAGS = -g ;


# Mode for installed binaries

EXEMODE ?= 555 ;


# Uncomment the next line to use a cryptlib from the system. The
# default is to use the one bundled with the archiveopteryx source.
# USE_SYSTEM_CRYPTLIB = yes ;
# You may also need to add/change something in tlsproxy/Jamfile.


## Database settings.

# The Unix username of the PostgreSQL superuser.
#
#PGUSER ?= postgres ;

# The path to the psql(1) client. The default value assumes that it is
# somewhere in the PATH.
#
PSQL ?= psql ;

# The address of the Postgres server. This is the default value of
# the db-address variable in archiveopteryx.conf, and may be the
# fully-qualified Unix socket path, or an IPv4/6 address.
#
DBADDRESS ?= 127.0.0.1 ;

# By default, LIBDIR/installer will create a Postgres user and database,
# and an unprivileged database user for the servers to use. If you want
# to use an existing user or database, set the variables below.
#
# Notes:
#
# - DBOWNER must own the DBNAME database or the DBSCHEMA schema.
# - It is safe to leave DBSCHEMA unchanged; database objects will then
#   be installed into the default "public" schema.
# - Because Postgres likes to use ident authentication, we use AOXUSER
#   as both Unix user and unprivileged database user.
# - The installer will generate a password for both users, so you don't
#   have to set one here unless you want to use an existing user.
#
# These settings provide default values for the db-name, db-schema,
# db-owner, db-owner-password, and db-password configuration variables
# in archiveopteryx.conf. The value of db-user is derived from AOXUSER.
#
# (You can override these values when you run the installer.)
#

DBNAME ?= archiveopteryx ;
DBSCHEMA ?= public ;
DBOWNER ?= aoxsuper ;
DBOWNERPASS ?= "" ;
DBPASS ?= "" ;

# this file is included from Jamrules.
