$NetBSD: patch-aa,v 1.5 2004/02/28 23:50:59 heinz Exp $

--- Config.orig	Thu May 29 11:49:38 2003
+++ Config
@@ -14,9 +14,9 @@ FENCE_ENABLE         = false  # Use Elec
 DIRECT_ENABLE        = false  # Experimental. Leave this switched off... 
 
 # Following depend on the way that you have configured c-client
-CCLIENT_SSL_ENABLE   = false  # C-client was built with SSL support
+CCLIENT_SSL_ENABLE   = true   # C-client was built with SSL support
 CCLIENT_PAM_ENABLE   = false  # C-client was built with PAM support
-CCLIENT_KERB_ENABLE  = false  # C-client was built with Kerberos support
+CCLIENT_KERB_ENABLE  = true   # C-client was built with Kerberos support
 
 # Probably don't need the following
 ACCOUNTD_ENABLE      = false  # Only of use in Cambridge at the moment.
@@ -30,13 +30,13 @@ CC           = gcc
 # Location of make program (GNU make required)
 MAKE         = gmake
 # Location of install program (GNU install or compatible required)
-INSTALL      = install
+INSTALL      = install -c
 
 # Base Compiler options for GCC.
 #BASECFLAGS   = -Wall -g
 #BASELDFLAGS  = -g
-BASECFLAGS   = -Wall -g -O2
-BASELDFLAGS  = -g -O2
+BASECFLAGS   = -Wall
+BASELDFLAGS  =
 BASE_LIBS    = -lcrypt
 
 # Base Compiler options for Sun SUNWspro compiler
@@ -56,9 +56,9 @@ BASE_LIBS    = -lcrypt
 # which points to ../../imap/c-client. This just reduces the amount of
 # noise output on each line when building the package.
 #
-CCLIENT_DIR=./c-client
-CCLIENT_INCLUDE=-I $(CCLIENT_DIR)
-CCLIENT_LIB=./$(CCLIENT_DIR)/c-client.a
+CCLIENT_DIR=${BUILDLINK_PREFIX.imap-uw}
+CCLIENT_INCLUDE=-I $(CCLIENT_DIR)/include/c-client
+CCLIENT_LIB=$(CCLIENT_DIR)/lib/libc-client.a
 CCLIENT_SSL_ENABLE  = true
 
 #
@@ -101,8 +101,8 @@ PAM_INCLUDE =
 PAM_LIBS    = -lpam
 
 # Kerberos (required if CCLIENT_KERB_ENABLE set)
-KERB_INCLUDE = -I/usr/kerberos/include
-KERB_LIBS    = -L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
+KERB_INCLUDE = -I/usr/include
+KERB_LIBS    = -L/usr/lib -lgssapi -lcom_err -lkrb5 -lasn1 -lroken -ldes
 
 # SSL definitions (required if SSL_ENABLE or CCLIENT_SSL_ENABLE set)
 #
@@ -126,8 +126,8 @@ DB_INCLUDE=
 DB_LIBS=-ldb
 
 # Following suitable for FreeBSD with DB 4 package installed
-#DB_INCLUDE=-I/usr/local/include/db4
-#DB_LIBS=-L/usr/local/lib -ldb4
+DB_INCLUDE=-I${BUILDLINK_PREFIX.db4}/include/db4
+DB_LIBS=-L${BUILDLINK_PREFIX.db4}/lib -ldb4
 
 ############################################################################
 
@@ -148,7 +148,7 @@ RW_GROUP   = prayer
 # Default configuration and permissions does not allow prayer user to
 # update prayer configuration file.
 
-PREFIX    = /usr/local/prayer
+# PREFIX    = /usr/local/prayer
 RO_USER   = root
 RO_GROUP  = prayer
 
@@ -163,6 +163,6 @@ PRIVATE_DIR  = 0750
 PRIVATE_FILE = 0640
 
 # Location of configuration files and binaries
-PRAYER_CONFIG_FILE   = ${PREFIX}/etc/prayer.cf
+PRAYER_CONFIG_FILE   = ${PKG_SYSCONFDIR}/prayer.cf
 BIN_DIR              = ${PREFIX}/sbin
-ACCOUNTD_CONFIG_FILE = ${PREFIX}/etc/prayer-accountd.cf
+ACCOUNTD_CONFIG_FILE = ${PKG_SYSCONFDIR}/prayer-accountd.cf
