## ==================================================================
##  
## SSC Makefile Config
## 
##  $Header: /var/cvs/ssc_core/Makefile.dist,v 1.30 2002/06/21 05:51:31 martin Exp $
## ==================================================================

## ==================================================================
##	     Options
## ==================================================================

# Add a comment to test

# indicate where include/mysql will be found
MYSQL		= /sw
# where is the mysql client?
MYSQL_CLIENT		= /sw/bin/mysql

# where is the at command (`which at`)
AT_CMD		= /usr/bin/at

# where is xml-lib (it requires 2.2.12)
#  ftp://planetmirror.com/pub/gnome/stable/sources/libxml/libxml2-2.2.12.tar.gz
# this directory must contain libxml.so
DOM		= /sw

#
DOMAIN=aporo.internal.cwa.co.nz

# this settings for live
APACHE_IP       = 10.10.10.48
APACHE_VHOST    = live.$(DOMAIN)
APACHE_PORT     = 8080
MIDGARD_VHOST   = $(APACHE_VHOST)
MIDGARD_PORT    = $(APACHE_PORT)


# this settings for staging
APACHE_STAGING_VHOST    = staging.$(DOMAIN)
APACHE_STAGING_PORT     = 8080
MIDGARD_STAGING_VHOST   = $(APACHE_STAGING_VHOST)
MIDGARD_STAGING_PORT    = $(APACHE_STAGING_PORT)


# careful! The database will be created!
MIDGARD_MYSQL_ROOT_USER = root
MIDGARD_MYSQL_ROOT_PW   =  
MIDGARD_MYSQL_HOST	= localhost

# this settings are for LIVE
MIDGARD_MYSQL_USER      = ssc_test_user
MIDGARD_MYSQL_PW        = ssc_test_pw
MIDGARD_MYSQL_DB        = ssc_ml_midgard_live_db

# this settings are for STAGING
MIDGARD_STAGING_MYSQL_USER      = ssc_test_user
MIDGARD_STAGING_MYSQL_PW        = ssc_test_pw
MIDGARD_STAGING_MYSQL_DB        = ssc_ml_midgard_staging_db

# This is user/pw for Midgard's interface
MIDGARD_ADMIN_USER	= admin
MIDGARD_SITEGROUP	= egovt
MIDGARD_ADMIN_PW	= password

#
# This is the local directory where make is being issued
# Do NOT change it unless you understand what you are 
# doing. 
#
DIST_DIR	= $(shell pwd)


# mysql settings
MYSQL_ROOT_USER=root
MYSQL_ROOT_PW  =
MYSQL_HOST     =localhost
MYSQL_USER     = ssc_test_user
MYSQL_PW       = ssc_test_pw

# sysdoc database (deprecated!)
MYSQL_DB	= ssc_sysdoc_test_db

# the mailing list database
MYSQL_DB_SEARCH_CACHE	= ssc_ml_search_db

# the mailing list database
MYSQL_DB_MAILINGLIST	= ssc_ml_ml_db

# More mailing list settings
# please, escape the @ symbos in the email address!
ML_ADMIN_ADDRESS	=	martin\@cwa.co.nz
ML_BOUNCE_THRESHOLD	=	10
ML_SENDER_ADDRESS	=	newsletter
ML_SENDER_DOMAIN	=	$(DOMAIN)
ML_CONTROL_URL		=	http://$(APACHE_STAGING_VHOST):$(APACHE_STAGING_PORT)/en/news/control/
ML_NEWS_URL		=	http://$(APACHE_VHOST):$(APACHE_PORT)/en/news/

# Apache -- 
APACHE_USER		= martin    
APACHE_GROUP		= staff

# Where's the METALOGUE Stub
GENI_IP		=	prodakl.portal.govt.nz
GENI_PORT	=	80
GENI_PATH	=	/mmfsearch/searchcontroller


## ==================================================================
##             Options (Software)
## ==================================================================

PHP			= php-4.2.1
APACHE			= apache_1.3.26

#
# As midgard.org servers are quite slow, and don't provide reliable access
# to nightlies, CWA has set up a mirror with the latest version 
# and a repository of nightlies. 
#
MIDGARD_DL_LOCATION     = http://cookie.cwa.co.nz/~martin/midgard_nightlies

#
# Latest stable is 1.4.2-1 -- use this one with PHP 4.0.6 
#
MIDGARD_VERSION		= 1.4.3

#
# CWA has found version  1.4_CVS200205090205
# to be very stable with PHP 4.2.0. 
#
#MIDGARD_VERSION                =  1.4_CVS200205090205
 


#
# If you want a nightly, uncomment this line
# and edit the date. 
#
# the format is 1.4_CVSYYYYMMDDyyMM
#MIDGARD_VERSION		= 1.4_CVS200204220204


MOD_MIDGARD 		= $(MIDGARD_DL_LOCATION)/mod_midgard-$(MIDGARD_VERSION).tar.bz2
#MOD_MIDGARD-PREPARSE 	= $(MIDGARD_DL_LOCATION)/mod_midgard-preparse-$(MIDGARD_VERSION).tar.bz2
MIDGARD-LIB 		= $(MIDGARD_DL_LOCATION)/midgard-lib-$(MIDGARD_VERSION).tar.bz2
MIDGARD-DATA 		= $(MIDGARD_DL_LOCATION)/midgard-data-$(MIDGARD_VERSION).tar.bz2
#MIDGARD-FILETEMPLATES 	= $(MIDGARD_DL_LOCATION)/midgard-filetemplates-$(MIDGARD_VERSION).tar.bz2
MIDGARD-PHP4 		= $(MIDGARD_DL_LOCATION)/midgard-php4-$(MIDGARD_VERSION).tar.bz2

