Bas Rijniersce wrote:
>Pfff, I compiled a lot of packages before (ranging from php to own build
>rpm's), build Midgard is as problematic as they come...
>Why is there not one tar file that contains: midgard-lib,
>mod-midgard,midgard-php4 and midgard-data combined with an overall
>./configure
>
>
In the face of the same problem, I've created mine. See the attached
files. I suggest you read these thoroughly. They work like a charm with
the Midgard CVS mentioned in the Makefile.dist. There you'll also find a
URL where I am keeping a snapshot archive.
This makefile compiles apache+php+midgard like a charm, every time.
Beware, though, that it has a lot of stuff related to a particular
project. It won't work out of the box for you.
m
## ==================================================================
##
## SSC Makefile
##
## $Header: /var/cvs/ssc_core/Makefile.ssc,v 1.32 2002/05/17 21:41:52 martin Exp $
## ==================================================================
## ==================================================================
## Internal Variables
## ==================================================================
LOCAL_DIR = $(DIST_DIR)/local
SRC_DIR = $(LOCAL_DIR)/src
MIDGARD_RCS_DIR = $(DIST_DIR)/var/rcs
MIDGARD_BLOB_DIR = $(DIST_DIR)/var/live_blobs
MIDGARD_CACHE_DIR = $(DIST_DIR)/var/live_cache
MIDGARD_STAGING_BLOB_DIR = $(DIST_DIR)/var/staging_blobs
MIDGARD_STAGING_CACHE_DIR = $(DIST_DIR)/var/staging_cache
REPLIGARD_TMP = $(DIST_DIR)/var/tmp/repligard
#
# APXS Path - You shouldn't touch this UNLESS you
# (a) know what you are doing AND
# (b) are planning NOT to compile Apache with this makefile
#
APXS = $(LOCAL_DIR)/$(APACHE)/bin/apxs
#
# The CURRENT_TIMESTAMP is important for Repligard-realted targets
#
# I am using %H instead of %k because it doesnot create spaces
CURRENT_TIMESTAMP=$(shell /bin/date +%Y%m%d%H%M%S)
## ==================================================================
## Targets
## ==================================================================
# default target
all: build
## ------------------------------------------------------------------
## Build Target
## ------------------------------------------------------------------
build:
make download
make untar-src
make php-cli
make apache-php
make apache-conf
make midgard
## ------------------------------------------------------------------
## Download
## ------------------------------------------------------------------
download:
@echo "DOWNLOADING"
cd $(SRC_DIR) && \
wget -nd --mirror
http://www.php.net/do_download.php?download_file=$(PHP).tar.gz &&\
wget -nd --mirror http://www.apache.org/dist/httpd/apache_1.3.24.tar.gz
cd $(SRC_DIR) && \
wget -nd --mirror $(MOD_MIDGARD)
&&\
wget -nd --mirror $(MOD_MIDGARD-PREPARSE)
&&\
wget -nd --mirror $(MIDGARD-LIB)
&&\
wget -nd --mirror $(MIDGARD-DATA)
&&\
wget -nd --mirror $(MIDGARD-FILETEMPLATES)
&&\
wget -nd --mirror $(MIDGARD-PHP4)
## ------------------------------------------------------------------
## Untar sources
## ------------------------------------------------------------------
untar-src:
make rm-src
@echo "UNTARRING tar.gz"
@cd $(SRC_DIR) && ls *.tar.gz | xargs -l --verbose tar -xzf
@cd $(SRC_DIR) && ls *.tar.bz2 | xargs -l1 --verbose tar --bzip -xf
## ------------------------------------------------------------------
## Remove Sources
## ------------------------------------------------------------------
rm-src:
@echo "REMOVING OLD SOURCES"
@find $(SRC_DIR)/* -maxdepth 0 -type d | grep -v "/CVS" | xargs -l --verbose
rm -fr
## ------------------------------------------------------------------
## PHP Command Line
## ------------------------------------------------------------------
php-cli:
cd $(SRC_DIR)/$(PHP) && \
./configure \
--prefix=$(LOCAL_DIR)/$(PHP) \
--with-dom=$(DOM) \
--with-mysql=$(MYSQL) \
--enable-track-vars \
--enable-ftp \
--enable-sysvshm \
--enable-sysvsem \
--with-zlib-dir=/usr/lib && \
make && make install
## ------------------------------------------------------------------
## Apache-PHP
## ------------------------------------------------------------------
apache-php:
cd $(SRC_DIR)/$(APACHE) && \
./configure
cd $(SRC_DIR)/$(PHP) && \
./configure \
--prefix=$(LOCAL_DIR)/$(PHP) \
--with-apache=../$(APACHE) \
--with-dom \
--with-mysql=$(MYSQL) \
--enable-track-vars \
--with-dom=/usr/local/lib \
--enable-ftp \
--enable-sysvshm \
--enable-sysvsem \
--with-zlib-dir=/usr/lib && \
make && make install
cd $(SRC_DIR)/$(APACHE) && \
./configure --prefix=$(LOCAL_DIR)/$(APACHE) \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=all \
--enable-shared=max && \
make && make install
cp $(SRC_DIR)/$(PHP)/php.ini-dist $(LOCAL_DIR)/$(PHP)/lib/php.ini
ln --force -s $(LOCAL_DIR)/$(PHP)/lib/php.ini $(DIST_DIR)/etc/php.ini
@echo "Please add a line to your httpd.conf file to include"
@echo "etc/ssc_vhost.conf"
## ------------------------------------------------------------------
## Sysdoc Data
## ------------------------------------------------------------------
sysdoc-data:
@echo "prepping mysql"
echo "GRANT ALL ON $(MYSQL_DB).* TO '$(MYSQL_USER)' \
IDENTIFIED BY '$(MYSQL_PW)'; \
FLUSH PRIVILEGES;"\
| $(MYSQL_CLIENT) -h $(MYSQL_HOST) -uroot -p$(MYSQL_ROOT_PW)
-echo "create database $(MYSQL_DB)" \
| $(MYSQL_CLIENT) -h $(MYSQL_HOST) -uroot -p$(MYSQL_ROOT_PW)
@echo putting db in!
zcat data/ssc_sysdoc_dump.sql.gz | $(MYSQL_CLIENT) -h $(MYSQL_HOST) -uroot
-p$(MYSQL_ROOT_PW) $(MYSQL_DB)
## ------------------------------------------------------------------
## Apache Config
## ------------------------------------------------------------------
apache-conf:
-mkdir -p logs
-mkdir -p htdocs/logs
cd etc && \
cp ssc_vhost.conf.dist ssc_vhost.conf && \
cp midgard_live.conf.dist midgard_live.conf && \
cp midgard_staging.conf.dist midgard_staging.conf
perl -pi -e " s#DIST_DIR#$(DIST_DIR)#g ; s#APACHE_IP#$(APACHE_IP)#g ;
s#APACHE_PORT#$(APACHE_PORT)#g ; s#APACHE_VHOST#$(APACHE_VHOST)#g ;
s#APACHE_STAGING_PORT#$(APACHE_STAGING_PORT)#g ;
s#APACHE_STAGING_VHOST#$(APACHE_STAGING_VHOST)#g ;
s#MIDGARD_MYSQL_USER#$(MIDGARD_MYSQL_USER)#g ;
s#MIDGARD_MYSQL_PW#$(MIDGARD_MYSQL_PW)#g ; s#MIDGARD_MYSQL_DB#$(MIDGARD_MYSQL_DB)#g ;
s#MIDGARD_BLOB_DIR#$(MIDGARD_BLOB_DIR)#g ;
s#MIDGARD_STAGING_MYSQL_DB#$(MIDGARD_STAGING_MYSQL_DB)#g ;
s#MIDGARD_STAGING_BLOB_DIR#$(MIDGARD_STAGING_BLOB_DIR)#g ; " etc/ssc_vhost.conf
etc/midgard_live.conf etc/midgard_staging.conf
@# NOTE I AM USING \z AS AN EQUIVALENT OF $ IN THE REGEXP
perl -pi -e "s#^port\s+\d+\s*\z#Port $(APACHE_PORT)\n#gi"
local/$(APACHE)/conf/httpd.conf
perl -pi -e "s#^user\s+\w+\s*\z#User $(APACHE_USER)\n#gi"
local/$(APACHE)/conf/httpd.conf
perl -pi -e "s#^group\s+\w+\s*\z#Group $(APACHE_GROUP)\n#gi"
local/$(APACHE)/conf/httpd.conf
perl -pi -e "s#^maxrequestsperchild\s+\d+\s*\z#MaxRequestsPerChild 1\n#gi"
local/$(APACHE)/conf/httpd.conf
perl -pi -e "s#^maxclients\s+\d+\s*\z#MaxClients 10\n#gi"
local/$(APACHE)/conf/httpd.conf
@# Commment out old include lines
perl -pi -e "s/^(include.*ssc_vhost.*)/#\1\n/gi"
local/$(APACHE)/conf/httpd.conf
echo "" >> local/$(APACHE)/conf/httpd.conf
echo "" >> local/$(APACHE)/conf/httpd.conf
echo "" >> local/$(APACHE)/conf/httpd.conf
echo "# Added by apache-conf $(CURRENT_TIMESTAMP)" >>
local/$(APACHE)/conf/httpd.conf
echo "include $(DIST_DIR)/etc/ssc_vhost.conf" >>
local/$(APACHE)/conf/httpd.conf
cp htdocs/etc/ssc_php.inc.dist htdocs/etc/ssc_php.inc
perl -pi -e "s#MYSQL_HOST#$(MYSQL_HOST)#g ; s#MYSQL_USER#$(MYSQL_USER)#g ;
s#MYSQL_PW#$(MYSQL_PW)#g ; s#MYSQL_DB#$(MYSQL_DB)#g ; s#GENI_IP#$(GENI_IP)#g ;
s#GENI_PORT#$(GENI_PORT)#g ;s#GENI_PATH#$(GENI_PATH)#g ;
s#MIDGARD_RCS_DIR#$(MIDGARD_RCS_DIR)#g ;" htdocs/etc/ssc_php.inc
## ------------------------------------------------------------------
## Apache Start - convenient way for scripts to start apache
## ------------------------------------------------------------------
apache-start:
local/$(APACHE)/bin/apachectl start
## ------------------------------------------------------------------
## Midgard Config
## ------------------------------------------------------------------
midgard-conf:
# Fix extension_dir in php.ini
# Note we are using the real file as Perl will
# not work properly with symlinks
@find $(DIST_DIR)/local/$(PHP) -name midgard.so | \
tail -n1 | xargs dirname | \
xargs -l -iFILE --verbose \
perl -pi -e "s#^extension_dir =.*#extension_dir = FILE #" \
$(LOCAL_DIR)/$(PHP)/lib/php.ini
## ------------------------------------------------------------------
## Midgard
## ------------------------------------------------------------------
midgard:
make midgard-lib
make midgard-data
make mod-midgard
make midgard-php4
make midgard-conf
@echo "Please remember to include"
@echo "local/src/midgard-data-1.4.2-1/midgard-data.conf"
@echo "in httpd.conf"
## ------------------------------------------------------------------
## Midgard-Lib
## ------------------------------------------------------------------
midgard-lib:
cd $(SRC_DIR)/midgard-lib* && \
./configure \
--prefix=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION) \
--with-mysql=$(MYSQL) --with-repligard-owner=$(APACHE_USER) \
--with-sitegroups --with-mgd-eval-hack
cd $(SRC_DIR)/midgard-lib* && \
make
cd $(SRC_DIR)/midgard-lib* && \
make install
## ------------------------------------------------------------------
## Midgard-Data
## ------------------------------------------------------------------
midgard-data:
@echo "Midgard-Data"
# prep mysql
@echo "Setting up a new user in the db."
echo \
"GRANT ALL ON $(MIDGARD_MYSQL_DB).* TO '$(MIDGARD_MYSQL_USER)' \
IDENTIFIED BY '$(MIDGARD_MYSQL_PW)'; \
GRANT ALL ON $(MIDGARD_STAGING_MYSQL_DB).* TO '$(MIDGARD_MYSQL_USER)' \
IDENTIFIED BY '$(MIDGARD_MYSQL_PW)'; \
FLUSH PRIVILEGES;"\
| $(MYSQL_CLIENT) -uroot -p$(MIDGARD_MYSQL_ROOT_PW)
#
# dropping the db if it exists!
#
-echo "DROP DATABASE $(MIDGARD_MYSQL_DB) ; \
DROP DATABASE $(MIDGARD_STAGING_MYSQL_DB) "\
| $(MYSQL_CLIENT) -uroot -p$(MIDGARD_MYSQL_ROOT_PW)
#
# flushing any possible old blobdir
#
-rm -fr $(MIDGARD_RCS_DIR)
-rm -fr $(MIDGARD_BLOB_DIR)
-rm -fr $(MIDGARD_CACHE_DIR)
-rm -fr $(MIDGARD_STAGING_BLOB_DIR)
-rm -fr $(MIDGARD_STAGING_CACHE_DIR)
mkdir -p $(MIDGARD_RCS_DIR)
mkdir -p $(MIDGARD_BLOB_DIR)
mkdir -p $(MIDGARD_CACHE_DIR)
mkdir -p $(MIDGARD_STAGING_BLOB_DIR)
mkdir -p $(MIDGARD_STAGING_CACHE_DIR)
# FLUSH
find $(SRC_DIR)/* -name "midgard-data*" -maxdepth 0 -type d | grep -v CVS |
xargs -l --verbose rm -fr
cd $(SRC_DIR) && ls midgard-data*.tar.bz2 | xargs -l1 --verbose tar --bzip -xf
#
# LIVE
#
@echo "Patching dbinstall.in"
cd $(SRC_DIR)/midgard-data* && \
patch dbinstall.in $(DIST_DIR)/util/build/dbinstall.in.patch
cd $(SRC_DIR)/midgard-data* && \
./configure \
--with-db-host=$(MIDGARD_MYSQL_HOST) \
--with-db-admin-user=$(MIDGARD_MYSQL_ROOT_USER) \
--with-db-admin-password=$(MIDGARD_MYSQL_ROOT_PW) \
--with-db-user=$(MIDGARD_MYSQL_USER) \
--with-db-user-password=$(MIDGARD_MYSQL_PW) \
--with-db=$(MIDGARD_MYSQL_DB) \
--with-host=$(MIDGARD_VHOST) \
--with-port=$(MIDGARD_PORT) \
--with-blobdir=$(MIDGARD_BLOB_DIR) \
--with-pagecache=$(MIDGARD_CACHE_DIR) \
--with-midgard=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION) \
--with-apxs=$(APXS) \
--with-apache-user=$(APACHE_USER) \
--with-apache-group=$(APACHE_GROUP) \
--with-adminsite \
--with-lang=en \
--with-asgard \
--with-php=4 \
--with-install=new
cd $(SRC_DIR)/midgard-data* && \
./dbinstall \
# FLUSH
find $(SRC_DIR)/* -name "midgard-data*" -maxdepth 0 -type d | grep -v CVS |
xargs -l --verbose rm -fr
cd $(SRC_DIR) && ls midgard-data*.tar.bz2 | xargs -l1 --verbose tar --bzip -xf
#
# STAGING
#
@echo "Patching dbinstall.in"
cd $(SRC_DIR)/midgard-data* && \
patch dbinstall.in $(DIST_DIR)/util/build/dbinstall.in.patch
cd $(SRC_DIR)/midgard-data* && \
./configure \
--with-db-host=$(MIDGARD_MYSQL_HOST) \
--with-db-admin-user=$(MIDGARD_MYSQL_ROOT_USER) \
--with-db-admin-password=$(MIDGARD_MYSQL_ROOT_PW) \
--with-db-user=$(MIDGARD_MYSQL_USER) \
--with-db-user-password=$(MIDGARD_MYSQL_PW) \
--with-db=$(MIDGARD_STAGING_MYSQL_DB) \
--with-host=$(MIDGARD_STAGING_VHOST) \
--with-port=$(MIDGARD_STAGING_PORT) \
--with-blobdir=$(MIDGARD_STAGING_BLOB_DIR) \
--with-pagecache=$(MIDGARD_STAGING_CACHE_DIR) \
--with-midgard=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION) \
--with-apxs=$(APXS) \
--with-apache-user=$(APACHE_USER) \
--with-apache-group=$(APACHE_GROUP) \
--with-adminsite \
--with-lang=en \
--with-asgard \
--with-php=4 \
--with-install=new
cd $(SRC_DIR)/midgard-data* && \
./dbinstall \
@echo "copying images into place"
cd $(SRC_DIR)/midgard-data* && \
cp -pr images/* $(DIST_DIR)/htdocs/
#
# Restore libraries (should this be in midgard-data?)
#
# Ensure configuration is correct
make repligard-update-conf
# Restore NemeinRCS
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./data/NemeinRCS.xml.gz
#
# You may want to issue a restore
# using `make rdrestore`
# and `make rcrestorehost`
#
## ------------------------------------------------------------------
## Mod_Midgard
## ------------------------------------------------------------------
mod-midgard:
@echo "Mod_Midgard"
cd $(SRC_DIR)/mod_midgard-$(MIDGARD_VERSION) && \
./configure \
--prefix=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION) \
--with-apxs=$(APXS) \
--with-midgard=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION) \
--with-midgard-config=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION)/bin/midgard-config \
--with-mysql=$(MYSQL_CLIENT) \
--with-sitegroups
cd $(SRC_DIR)/mod_midgard-$(MIDGARD_VERSION) && \
make
cd $(SRC_DIR)/mod_midgard-$(MIDGARD_VERSION) && \
make install
# make conf is deprecated
## ------------------------------------------------------------------
## Midgard-Php4
## ------------------------------------------------------------------
midgard-php4:
#
# I will
# - defang mkall (disable make/make install)
# - run mkall
# - re-run configure
# - make && make install
# I'll just have to keep putting the complete path there,
# just in case.
#
#
# Replacing calendar.c with a patched version
#
cp ./util/build/calendar.c $(SRC_DIR)/midgard-php4-$(MIDGARD_VERSION)/
#
# Defanging mkall
#
cd $(SRC_DIR)/midgard-php4-$(MIDGARD_VERSION) && \
perl -pi -e "s#^make#\# make#" mkall
cd $(SRC_DIR)/midgard-php4-$(MIDGARD_VERSION) && \
perl -pi -e "s#^\./configure#\# ./configure#" mkall
#
# Running (defanged) mkall (disregarding silly errors that autopconf gives!)
#
-PATH=$(LOCAL_DIR)/$(PHP)/bin:$(LOCAL_DIR)/$(APACHE)/bin:$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION)/bin:$(PATH)
&& \
cd $(SRC_DIR)/midgard-php4-$(MIDGARD_VERSION) && \
sh mkall
#
# Re-running configure
#
PATH=$(LOCAL_DIR)/$(PHP)/bin:$(LOCAL_DIR)/$(APACHE)/bin:$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION)/bin:$(PATH)
&& \
cd $(SRC_DIR)/midgard-php4-$(MIDGARD_VERSION) && \
./configure \
--prefix=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION) \
--with-midgard=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION)/bin/midgard-config \
--with-apxs=$(APXS) \
--with-php=$(LOCAL_DIR)/$(PHP) \
--with-php-config=$(LOCAL_DIR)/$(PHP)/bin/php-config \
--with-sitegroups \
--with-old-mod-midgard
cd $(SRC_DIR)/midgard-php4-$(MIDGARD_VERSION) && \
make && make install
echo ""
echo "; Midgard Module" >> $(LOCAL_DIR)/$(PHP)/lib/php.ini
echo "module=midgard.so" >> $(LOCAL_DIR)/$(PHP)/lib/php.ini
echo ""
@echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++"
@echo ""
@echo " PLEASE edit your apachectl script to ensure "
@echo " the env variable LD_LIBRARY_PATH is configured "
@echo ""
@echo " Add a line containing:"
@echo " export LD_LIBRARY_PATH=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION)/lib"
@echo ""
@echo " and change your php.ini extension_dir to "
@echo " the location of midgard.so "
@echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++"
perl -pi -e "s#^ERROR#export
LD_LIBRARY_PATH=$(LOCAL_DIR)/midgard-$(MIDGARD_VERSION)/lib\nERROR#g"
local/$(APACHE)/bin/apachectl
## ------------------------------------------------------------------
## Mod_Midgard-Preparse
## ------------------------------------------------------------------
midgard-mmp:
@echo "MMP has not been elected/implemented here yet."
## ------------------------------------------------------------------
## Midgard-Filetemplates
## ------------------------------------------------------------------
midgard-filetemplates:
@echo "Filetemplates is not yet implemented"
## ------------------------------------------------------------------
## Test
## ------------------------------------------------------------------
test:
#
# Run tests
# If you want to add tests
# check in the util/test/t directory
# or add them to runtests.sh
#
export VHOST=http://$(APACHE_VHOST):$(APACHE_PORT) \
&& sh ./util/test/runtests.sh
## ------------------------------------------------------------------
## Log (Changelog)
## ------------------------------------------------------------------
log:
#
# This generates the change logs in the docs directory
#
sh ./util/cvs-utils/cvs2cl.pl -f doc/Changelog.txt
## ------------------------------------------------------------------
## Log-HTML (Changelog in html)
## ------------------------------------------------------------------
log-html:
#
# An HTML Version too! (doesn't work perfect though)
# and it is slow....
#
-mkdir doc/Changelog_html
-rm -fr doc/Changelog_html/*
perl util/cvs-utils/cvs2html.pl -O doc/Changelog_html -a
## ------------------------------------------------------------------
## Sitedump
## ------------------------------------------------------------------
site-dump:
#
# Will download the site to generate a
# CDROM-friendly version using a custom
# version of lwp-rget
#
-rm -fr ./var/site_dump
mkdir -p ./var/site_dump
cd ./var/site_dump && \
$(DIST_DIR)/util/lwp-rget \
--hier \
--tolower \
--auth=$(APACHE_AUTH_USER):$(APACHE_AUTH_PASS) \
--sleep=0 \
--tolower \
--keepext=text/css \
http://$(APACHE_VHOST)/styles/
cd ./var/site_dump && \
$(DIST_DIR)/util/lwp-rget \
--hier \
--depth=20 \
--auth=$(APACHE_AUTH_USER):$(APACHE_AUTH_PASS) \
--limit=10000 \
--nospace \
--tolower \
--sleep=0 \
--prefix=http://$(APACHE_VHOST)/ \
http://$(APACHE_VHOST)/homepage.php
## ------------------------------------------------------------------
## Repligard-related targets
## ------------------------------------------------------------------
## ------------------------------------------------------------------
## repligard-update-conf - repligard update of config files
## ------------------------------------------------------------------
repligard-update-conf:
#
# This target will take the repligard files from their .conf
# version, and create the local version
#
#
# Create/Flush the local directory
#
-mkdir -p etc/repligard_local
-rm etc/repligard_local/*
#
#Copy Files
#
cp etc/repligard*.conf etc/repligard_local/
#
# Update configs!
#
# Live setting in the replicate confs
find etc/repligard_local/ -type f -name "repligard_live*.conf" | \
xargs \
perl -pi -e "s#MIDGARD_MYSQL_USER#$(MIDGARD_MYSQL_USER)#g;
s#MIDGARD_MYSQL_PW#$(MIDGARD_MYSQL_PW)#g;
s#MIDGARD_MYSQL_DB#$(MIDGARD_MYSQL_DB)#g;s#DIST_DIR#$(DIST_DIR)#g;
s#MIDGARD_ADMIN_USER#$(MIDGARD_ADMIN_USER)#g;
s#MIDGARD_ADMIN_PW#$(MIDGARD_ADMIN_PW)#g; s#MIDGARD_BLOB_DIR#$(MIDGARD_BLOB_DIR)#g;"
# General settings
find etc/repligard_local/ -type f -name "repligard*.conf" | \
xargs \
perl -pi -e "s#MIDGARD_MYSQL_USER#$(MIDGARD_MYSQL_USER)#g;
s#MIDGARD_MYSQL_PW#$(MIDGARD_MYSQL_PW)#g;
s#MIDGARD_MYSQL_DB#$(MIDGARD_STAGING_MYSQL_DB)#g;s#DIST_DIR#$(DIST_DIR)#g;
s#MIDGARD_ADMIN_USER#$(MIDGARD_ADMIN_USER)#g;
s#MIDGARD_SITEGROUP#$(MIDGARD_SITEGROUP)#g; s#MIDGARD_ADMIN_PW#$(MIDGARD_ADMIN_PW)#g;
s#MIDGARD_BLOB_DIR#$(MIDGARD_STAGING_BLOB_DIR)#g;"
## ------------------------------------------------------------------
## rddump - repligard developer dump
## ------------------------------------------------------------------
r-dump:
#
# this will dump all the configured midgard files
# for cvs committing and for distribution
#
make repligard-update-conf
# Adding missing GUIDs
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -m -q \
-c ./etc/repligard_local/repligard_dev_host.conf
#
# DUMPING HOST
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_host.conf \
-e ./mdg-data/repligard_dev_host.xml.gz
#
# DUMPING PAGE
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_page.conf \
-e ./mdg-data/repligard_dev_page.xml.gz
#
# DUMPING TOPICS AND ARTICLES
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_topic.conf \
-e ./mdg-data/repligard_dev_topic.xml.gz
#
# DUMPING NEWS_PARTICIPATE
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_news_participate.conf \
-e ./mdg-data/repligard_news_participate.xml.gz
#
# DUMPING TOPICS ONLY
#
#./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
#-c ./etc/repligard_local/repligard_dev_topic_strict.conf \
#-e ./mdg-data/repligard_dev_topic_strict.xml.gz
#
# DUMPING STYLE
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_style.conf \
-e ./mdg-data/repligard_dev_style.xml.gz
#
# DUMPING SNIPPETDIR
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_snippetdir.conf \
-e ./mdg-data/repligard_dev_snippetdir.xml.gz
#
# DUMPING GROUP
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_group.conf \
-e ./mdg-data/repligard_dev_group.xml.gz
#
# DUMPING ADMIN Portal Operations Team
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_admin_pot.conf \
-e ./mdg-data/repligard_admin_pot.xml.gz
#
# DUMPING ADMIN Portal AgencyPersonnel
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_admin_ap.conf \
-e ./mdg-data/repligard_admin_ap.xml.gz
#
# DUMPING SITEGROUPS
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_sitegroup.conf \
-e ./mdg-data/repligard_sitegroup.xml.gz
#
# DUMPING Version Control Snippet
# DISABLED
#./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
#-c ./etc/repligard_local/repligard_dev_version_control.conf \
#-e ./mdg-data/repligard_dev_version_control.xml.gz
#
# UNZIP'EM
#
gzip -f -d ./mdg-data/*.gz
#
# UN-Windows-'EM
#
dos2unix ./mdg-data/*.xml
#
# FIXING HOST
#
perl -pi -e
"s#<name>$(MIDGARD_STAGING_VHOST)</name>#<name>MIDGARD_STAGING_VHOST</name>#g"
./mdg-data/repligard_dev_host.xml
perl -pi -e
"s#<port>$(MIDGARD_STAGING_PORT)</port>#<port>MIDGARD_STAGING_PORT</port>#g"
./mdg-data/repligard_dev_host.xml
#
# FIXING CHANGED FIELD
#
# This is important to reduce noise in the diffs and to
# be able to know what's really changed in CVS.
#
# On import/restore we replace the date again for a current date.
#
ls ./mdg-data/*.xml | xargs perl -pi -e
's#changed="\d{14}"#changed="00000000000000"#g'
#
# SORTING INTERNAL CONTENTS
#
ls ./mdg-data/*.xml | xargs --verbose -l perl util/mdg-data_parser.pl
#
# GREPPING THEM FOR THE [TEST-DATA] STRING
#
-grep -l "TEST-DATA" \
./mdg-data/repligard_dev_group.xml \
./mdg-data/repligard_dev_snippetdir.xml \
./mdg-data/repligard_dev_style.xml \
./mdg-data/repligard_dev_topic_strict.xml \
./mdg-data/repligard_dev_page.xml \
./mdg-data/repligard_dev_host.xml \
./mdg-data/repligard_admin_pot.xml \
./mdg-data/repligard_admin_ap.xml \
# An error here means it's OK
## ------------------------------------------------------------------
## rddump - repligard developer dump
## ------------------------------------------------------------------
r-dump-live-host:
#
# this will dump all the configured midgard files
# for cvs committing and for distribution
#
make repligard-update-conf
#
# DUMPING HOST
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a \
-c ./etc/repligard_local/repligard_live_host.conf \
-e ./mdg-data/repligard_live_host.xml.gz
#
# UNZIP'EM
#
gzip -f -d ./mdg-data/repligard_live_host*.xml.gz
#
# UN-Windows-'EM
#
dos2unix ./mdg-data/repligard_live_host*.xml
#
# AUTO-PATCH'EM
#
ls ./mdg-data/repligard_live_host*.xml | xargs -l -iFILE patch -N FILE
./util/build/repligard_conf.patch
#
# FIXING HOST
#
perl -pi -e "s#<name>$(MIDGARD_VHOST)</name>#<name>MIDGARD_VHOST</name>#g"
./mdg-data/repligard_live_host.xml
perl -pi -e "s#<port>$(MIDGARD_PORT)</port>#<port>MIDGARD_PORT</port>#g"
./mdg-data/repligard_live_host.xml
#
# FIXING CHANGED FIELD
#
# This is important to reduce noise in the diffs and to
# be able to know what's really changed in CVS.
#
# On import/restore we replace the date again for a current date.
#
ls ./mdg-data/repligard_live_host*.xml | xargs perl -pi -e
's#changed="\d{14}"#changed="00000000000000"#g'
#
# SORTING INTERNAL CONTENTS
#
ls ./mdg-data/repligard_live_host**.xml | xargs --verbose -l perl
util/mdg-data_parser.pl
## ------------------------------------------------------------------
## rdrestore - repligard developer restore
## ------------------------------------------------------------------
r-restore:
#
# this will load all the developed code
# and sample content to build a development environment
#
# Ensure configuration is correct
make repligard-update-conf
# Ensure updated fields are up to date
ls ./mdg-data/*.xml | xargs perl -pi -e
's#changed="00000000000000"#changed="$(CURRENT_TIMESTAMP)"#g'
#
# RESTORING SITEGROUP
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_sitegroup.xml
#
# RESTORING GROUP (and users!)
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_group.xml
#
# RESTORING ROOT Page and subpages
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_page.xml
#
# RESTORING TOPICS WITH SAMPLE ARTICLES
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_topic.xml
#
# RESTORING NEWS_PARTICIPATE ARTICLES
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_news_participate.xml
#
# RESTORING STYLES
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_style.xml
#
# RESTORING SNIPPETDIR
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_snippetdir.xml
#
# RESTORING ADMIN Portal Operations Team
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_admin_pot.xml
#
# RESTORING ADMIN AgencyPersonnel
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_admin_ap.xml
#
# DUMPING Version Control Snippet
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_version_control.xml
# Now resetting CHANGED field
ls ./mdg-data/*.xml | xargs perl -pi -e
's#changed="\d{14}"#changed="00000000000000"#g'
#
# NOTE: We have not restored the Host table
# use 'make r-restore-staging-host' if you need.
#
## ------------------------------------------------------------------
## r-restore-staging-host - repligard staging restore host
## ------------------------------------------------------------------
r-restore-staging-host:
# Ensure configuration is correct
make repligard-update-conf
#
# RESTORING HOST TABLE
#
# This is a tricky task, so
# we'll make a nice effort.
#
# You can always do it by hand
# if it proves to be too much for me.
#
#
# COPY AND LOCALIZE THE FILE
#
cp ./mdg-data/repligard_dev_host.xml ./mdg-data/repligard_dev_host.xml.tmp
perl -pi -e
"s#<name>MIDGARD_STAGING_VHOST</name>#<name>$(MIDGARD_STAGING_VHOST)</name>#g"
./mdg-data/repligard_dev_host.xml.tmp
perl -pi -e
"s#<port>MIDGARD_STAGING_PORT</port>#<port>$(MIDGARD_STAGING_PORT)</port>#g"
./mdg-data/repligard_dev_host.xml.tmp
# Ensure updated fields are up to date
perl -pi -e 's#changed="00000000000000"#changed="$(CURRENT_TIMESTAMP)"#g'
./mdg-data/repligard_dev_host.xml.tmp
#
# INSERT THE LOCAL FILE
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db_sg.conf \
-i ./mdg-data/repligard_dev_host.xml.tmp
#
# REMOVE THE LOCAL FILE
#
-rm ./mdg-data/repligard_dev_host.xml.tmp
#
# GET INTO MYSQL AND ENSURE ITS CORRECT
#
echo "UPDATE host SET
name='$(MIDGARD_STAGING_VHOST)',port=$(MIDGARD_STAGING_PORT)" | \
mysql -u$(MIDGARD_MYSQL_USER) -p$(MIDGARD_MYSQL_PW) $(MIDGARD_STAGING_MYSQL_DB)
## ------------------------------------------------------------------
## r-restore-live-host - repligard staging restore host
## ------------------------------------------------------------------
r-restore-live-host:
# Ensure configuration is correct
make repligard-update-conf
#
# RESTORING HOST TABLE
#
# This is a tricky task, so
# we'll make a nice effort.
#
# You can always do it by hand
# if it proves to be too much for me.
#
#
# COPY AND LOCALIZE THE FILE
#
cp ./mdg-data/repligard_live_host.xml ./mdg-data/repligard_live_host.xml.tmp
perl -pi -e "s#<name>MIDGARD_VHOST</name>#<name>$(MIDGARD_VHOST)</name>#g"
./mdg-data/repligard_live_host.xml.tmp
perl -pi -e "s#<port>MIDGARD_PORT</port>#<port>$(MIDGARD_PORT)</port>#g"
./mdg-data/repligard_live_host.xml.tmp
# Ensure updated fields are up to date
perl -pi -e 's#changed="00000000000000"#changed="$(CURRENT_TIMESTAMP)"#g'
./mdg-data/repligard_live_host.xml.tmp
#
# INSERT THE LOCAL FILE
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_live_db.conf \
-i ./mdg-data/repligard_live_host.xml.tmp
#
# REMOVE THE LOCAL FILE
#
-rm ./mdg-data/repligard_live_host.xml.tmp
#
# GET INTO MYSQL AND ENSURE ITS CORRECT
#
echo "UPDATE host SET name='$(MIDGARD_VHOST)',port=$(MIDGARD_PORT)" | \
mysql -u$(MIDGARD_MYSQL_USER) -p$(MIDGARD_MYSQL_PW) $(MIDGARD_MYSQL_DB)
## ------------------------------------------------------------------
## rcrestore - repligard client restore
## ------------------------------------------------------------------
rcrestore:
# Ensure configuration is correct
make repligard-update-conf
# Ensure updated fields are up to date
ls ./mdg-data/*.xml | xargs perl -pi -e
's#changed="00000000000000"#changed="$(CURRENT_TIMESTAMP)"#g'
#
# this will load all the developed code
# and WITHOUT affecting the content
# to build a production environment
#
#
# RESTORING ROOT Page and subpages
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_dev_page.xml
#
# RESTORING TOPICS WITH SAMPLE ARTICLES
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_dev_topic_only.xml
#
# RESTORING STYLES
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_dev_style.xml
#
# RESTORING SNIPPETDIR
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_dev_snippetdir.xml
#
# RESTORING GROUP
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_dev_group.xml
#
# RESTORING ADMIN Portal Operations Team
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_admin_pot.xml
#
# RESTORING ADMIN AgencyPersonnel
#
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_dev_db.conf \
-i ./mdg-data/repligard_admin_ap.xml
#
# Now resetting CHANGED field
ls ./mdg-data/*.xml | xargs perl -pi -e
's#changed="\d{14}"#changed="00000000000000"#g'
# NOTE: We have not restored the Host table
# use 'make rcdrestorehost' if you need.
## ------------------------------------------------------------------
## r-golive - repligard go live!
## ------------------------------------------------------------------
r-golive:
@echo
@echo
@echo "[$(CURRENT_TIMESTAMP)] RUNNING r-golive"
@echo
@# prep my directory
@mkdir -p $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)
@# update config
@make repligard-update-conf
@# run perl script
# run repligard export
@./local/midgard-$(MIDGARD_VERSION)/bin/repligard -q \
-c ./etc/repligard_local/repligard_dev_golive.conf \
-e $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)/golive.xml.gz
# run repligard import
@./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_live_db.conf \
-i $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)/golive.xml.gz
# clean up after ourselves
@rm -fr $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)
## ------------------------------------------------------------------
## r-init-live - repligard force update live
## ------------------------------------------------------------------
r-init-live:
# prep my directory
mkdir -p $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)
# update config
make repligard-update-conf
# run perl script
# run repligard export
./local/midgard-$(MIDGARD_VERSION)/bin/repligard -a -q \
-c ./etc/repligard_local/repligard_dev_golive.conf \
-e $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)/golive.xml.gz
# run repligard import
./local/midgard-$(MIDGARD_VERSION)/bin/repligard \
-c ./etc/repligard_local/repligard_live_db.conf \
-i $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)/golive.xml.gz
# clean up after ourselves
rm -fr $(REPLIGARD_TMP)/$(CURRENT_TIMESTAMP)
## ------------------------------------------------------------------
## ssc-news-import - Perform import
## ------------------------------------------------------------------
ssc-news-import:
# dbname is tmp_$(CURRENT_TIMESTAMP)
# set up permissions
echo \
"GRANT ALL ON tmp_$(CURRENT_TIMESTAMP).* TO '$(MIDGARD_MYSQL_USER)' \
IDENTIFIED BY '$(MIDGARD_MYSQL_PW)'; \
FLUSH PRIVILEGES;"\
| $(MYSQL_CLIENT) -uroot -p$(MIDGARD_MYSQL_ROOT_PW) -h $(MYSQL_HOST)
#
# dropping the db if it exists!
#
-echo "DROP DATABASE tmp_$(CURRENT_TIMESTAMP) ; "\
| $(MYSQL_CLIENT) -uroot -p$(MIDGARD_MYSQL_ROOT_PW) -h $(MYSQL_HOST)
#
# create the db
#
-echo "CREATE DATABASE tmp_$(CURRENT_TIMESTAMP) ; "\
| $(MYSQL_CLIENT) -uroot -p$(MIDGARD_MYSQL_ROOT_PW) -h $(MYSQL_HOST)
#
# load the db
#
zcat data/database-dump-nzgo.gz \
| $(MYSQL_CLIENT) -u$(MIDGARD_MYSQL_USER) -p$(MIDGARD_MYSQL_PW) -h
$(MYSQL_HOST) tmp_$(CURRENT_TIMESTAMP)
#
# call ssc_news_import.pl
#
perl-5.005 ./util/ssc_news_import.pl \
--dbhost $(MYSQL_HOST) \
--dbname tmp_$(CURRENT_TIMESTAMP) \
--dbuser $(MIDGARD_MYSQL_USER) \
--dbpass $(MIDGARD_MYSQL_PW) \
--destdbname $(MIDGARD_STAGING_MYSQL_DB)
#
# dropping the db - we are finished
#
echo "DROP DATABASE tmp_$(CURRENT_TIMESTAMP) ; "\
| $(MYSQL_CLIENT) -uroot -p$(MIDGARD_MYSQL_ROOT_PW) -h $(MYSQL_HOST)
## ==================================================================
##
## SSC Makefile Config
##
## $Header: /var/cvs/ssc_core/Makefile.dist,v 1.24 2002/05/15 23:34:16 martin Exp $
## ==================================================================
## ==================================================================
## Options
## ==================================================================
# Add a comment to test
# indicate where include/mysql will be found
MYSQL = /usr/local/mysql
# where is the mysql client?
MYSQL_CLIENT = /usr/bin/mysql
# 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 = /usr/local/lib
#
DOMAIN=kick.internal.cwa.co.nz
# this settings for live
APACHE_IP = 10.10.10.125
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 = XXXXXXX
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 =XXXXXXXX
MYSQL_HOST =localhost
MYSQL_USER = ssc_test_user
MYSQL_PW = ssc_test_pw
MYSQL_DB = ssc_sysdoc_test_db
# Apache --
APACHE_USER = YOU
APACHE_GROUP = YOU
# Where's the METALOGUE Stub
GENI_IP = 203.97.90.245
GENI_PORT = 9700
GENI_PATH = /mmfsearch/searchcontroller
## ==================================================================
## Options (Software)
## ==================================================================
PHP = php-4.2.0
APACHE = apache_1.3.24
#
# 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.2-1
#
# 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]