Skip to content

Commit

Permalink
Start using automake/autoconf for configuring, building, and installi…
Browse files Browse the repository at this point in the history
…ng Evergreen

git-svn-id: svn://svn.open-ils.org/ILS/trunk@10466 dcc99617-32d9-48b4-a31d-7c20da2025e4
  • Loading branch information
dbs committed Aug 27, 2008
1 parent b95b15f commit c971464
Show file tree
Hide file tree
Showing 41 changed files with 1,348 additions and 1,051 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#AUTHORS
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#ChangeLog
53 changes: 53 additions & 0 deletions Evergreen/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#--------------------------------------------------------------------
# Makefile.am for Evergreen
# Author: Kevin Beswick ([email protected])
## Process this file with automake to generate Makefile.in
#-------------------------------------------------------------------

NEW_OPAC_URL=myopac.domain
NEW_XUL_PACKAGE_NAME=openils
NEW_XUL_PACKAGE_LABEL=OpenILS

if BUILDEGCORE
EGCORE_INST = circ-install iplist-install perl-install web-install
endif

if BUILDEGXULCLIENT
EGXUL_INST = xul
endif

install-data-hook: $(EGCORE_INST) $(EGXUL_INST)

xul:
@echo $@
cp -R staff_client local_staff_client
find local_staff_client/ -type f -exec sed -i s/evergreen/${NEW_XUL_PACKAGE_NAME}/g {} \;
find local_staff_client/ -type f -exec sed -i s/Evergreen/${NEW_XUL_PACKAGE_LABEL}/g {} \;
(cd local_staff_client/chrome/skin/evergreen; mv evergreen.css ${NEW_XUL_PACKAGE_NAME}.css)
(cd local_staff_client/defaults/preferences; mv evergreen.js ${NEW_XUL_PACKAGE_NAME}.js)
(cd local_staff_client/chrome/content; mv evergreen ${NEW_XUL_PACKAGE_NAME})
(cd local_staff_client/chrome/locale/en-US/; mv evergreen ${NEW_XUL_PACKAGE_NAME})
(cd local_staff_client/chrome/skin; mv evergreen ${NEW_XUL_PACKAGE_NAME})
make -C local_staff_client build
find local_staff_client/ -type f -exec sed -i s/gapines.org/${NEW_OPAC_URL}/g {} \;
make -C local_staff_client package

perl-install:
@echo $@
mkdir -p $(PERLDIR)
cp -r src/perlmods/* $(PERLDIR)

circ-install:
@echo $@
mkdir -p $(CIRCRULESDIR)
cp src/javascript/backend/circ/*.js $(CIRCRULESDIR)

iplist-install:
@echo $@
mkdir -p $(ETCDIR)
cp conf/lib_ips.txt $(ETCDIR)

web-install:
@echo $@
cp web/opac/images/* $(WEBDIR)/opac/images/

45 changes: 0 additions & 45 deletions Makefile

This file was deleted.

50 changes: 50 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#----------------------------------------------------------
# Makefile.am for openils
# Author: Kevin Beswick ([email protected])
## Process this file with automake to generate Makefile.in
#----------------------------------------------------------

# Set some variables

export PREFIX=@prefix@
export BINDIR=@bindir@
export LIBDIR=@libdir@
export perldir=$(LIBDIR)/perl5
export INCLUDEDIR=@includedir@
export ETCDIR=@sysconfdir@
export WEBDIR=@localstatedir@/web
export CGIDIR=@localstatedir@/cgi-bin
export TEMPLATEDIR=@localstatedir@/templates

export datadir=@localstatedir@/data
export circrulesdir=@localstatedir@/circ
export catalogscriptdir=@localstatedir@/catalog
export penaltyrulesdir=@localstatedir@/penalty
export XSLDIR=@localstatedir@/xsl
export REPORTERDIR=@localstatedir@/reporter
export ADMINDIR=@localstatedir@/admin
export SOCK=@localstatedir@/lock
export PID=@localstatedir@/run
export LOG=@localstatedir@/log



# Derived from autoconf:
export TMP = @TMP@
export APXS2 = @APXS2@
export APACHE2_HEADERS = @APACHE2_HEADERS@
export APR_HEADERS = @APR_HEADERS@
export LIBXML2_HEADERS = @LIBXML2_HEADERS@
export DBI_LIBS = @DBI_LIBS@
export OPENSRF_HEADERS = @OPENSRF_HEADERS@
export OPENSRF_LIBS = @OPENSRF_LIBS@
#export DBDRVR = @DBDRVR@
#export DBHOST = @DBHOST@
#export DBPORT = @DBPORT@
#export DBNAME = @DBNAME@
#export DBUSER = @DBUSER@
#export DBPW = @DBPW@
#export DBVER = @DBVER@

SUBDIRS = Open-ILS/src

1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#NEWS
4 changes: 2 additions & 2 deletions Open-ILS/admin/ils_admin/settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ADMINS = (
MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '/openils/var/data/django.db' # Or path to database file if using sqlite3.
DATABASE_NAME = 'LOCALSTATEDIR/data/django.db' # Or path to database file if using sqlite3.
DATABASE_SCHEMAS = ''
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
Expand Down Expand Up @@ -85,7 +85,7 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
'/openils/var/admin/ils_admin/templates/default'
'LOCALSTATEDIR/admin/ils_admin/templates/default'
)

INSTALLED_APPS = (
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Open-ILS/examples/oils_sip.xml.example
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<!-- implementation specific config options go here -->
<implementation_config>
<bootstrap>/openils/conf/opensrf_core.xml</bootstrap>
<bootstrap>SYSCONFDIR/opensrf_core.xml</bootstrap>
<currency>USD</currency>

<!-- These defines what this SIP code has the ability to support -->
Expand Down Expand Up @@ -90,8 +90,8 @@
<option name='msg64_summary_datatype' value='barcode' />
</option>
<scripts>
<path>/openils/var/</path>
<path>/openils/var/catalog/</path>
<path>LOCALSTATEDIR/</path>
<path>LOCALSTATEDIR/catalog/</path>
<item_config>circ/circ_item_config.js</item_config>
</scripts>

Expand Down
58 changes: 29 additions & 29 deletions Open-ILS/examples/opensrf.xml.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ vim:et:ts=4:sw=4:
<default>

<dirs>
<log>/openils/var/log</log> <!-- unix::server log files -->
<sock>/openils/var/sock</sock> <!-- unix::server sock files -->
<pid>/openils/var/pid</pid>
<xsl>/openils/var/xsl</xsl>
<script>/openils/var</script>
<script_lib>/openils/var</script_lib>
<log>LOCALSTATEDIR/log</log> <!-- unix::server log files -->
<sock>LOCALSTATEDIR/lock</sock> <!-- unix::server sock files -->
<pid>LOCALSTATEDIR/run</pid>
<xsl>LOCALSTATEDIR/xsl</xsl>
<script>LOCALSTATEDIR</script>
<script_lib>LOCALSTATEDIR</script_lib>
</dirs>

<!-- global data visibility settings -->
Expand All @@ -26,15 +26,15 @@ vim:et:ts=4:sw=4:
</user>
</share>

<IDL>/openils/conf/fm_IDL.xml</IDL> <!-- top level IDL file -->
<IDL>SYSCONFDIR/fm_IDL.xml</IDL> <!-- top level IDL file -->

<server_type>prefork</server_type> <!-- net::server type -->

<ils_events>/openils/var/data/ils_events.xml</ils_events> <!-- ILS events description file -->
<ils_events>LOCALSTATEDIR/data/ils_events.xml</ils_events> <!-- ILS events description file -->

<email_notify> <!-- this will eventually move into the notifications section below... -->
<!-- global email notification settings -->
<template>/openils/var/data/hold_notification_template.example</template>
<template>LOCALSTATEDIR/data/hold_notification_template.example</template>
<smtp_server>localhost</smtp_server>

<!--
Expand All @@ -58,8 +58,8 @@ vim:et:ts=4:sw=4:

<!-- The system can generate an XML file of overdue notices. This is the
directory where they are stored. Files are named overdue.YYYY-MM-DD.xml -->
<notice_dir>/openils/var/data/overdue</notice_dir>
<combined_template>/openils/var/data/templates/overdue_combined_xml.example</combined_template>
<notice_dir>LOCALSTATEDIR/data/overdue</notice_dir>
<combined_template>LOCALSTATEDIR/data/templates/overdue_combined_xml.example</combined_template>

<notice>
<!-- Notify at 7 days overdue -->
Expand All @@ -70,7 +70,7 @@ vim:et:ts=4:sw=4:
<!-- do we attempt email notification? -->
<email_notify>true</email_notify>
<!-- notice template file -->
<email_template>/openils/var/data/templates/overdue_7day.example</email_template>
<email_template>LOCALSTATEDIR/data/templates/overdue_7day.example</email_template>
</notice>
</overdue>

Expand All @@ -86,7 +86,7 @@ vim:et:ts=4:sw=4:
<notify_interval>1 day</notify_interval>
<file_append>false</file_append>
<email_notify>true</email_notify>
<email_template>/openils/var/data/templates/predue_1day.example</email_template>
<email_template>LOCALSTATEDIR/data/templates/predue_1day.example</email_template>
</notice>
</predue>
</notifications>
Expand All @@ -107,9 +107,9 @@ vim:et:ts=4:sw=4:
</database>
<files>
<!-- successful report outputs go here -->
<output_base>/openils/var/web/reporter</output_base>
<success_template>/openils/var/data/report-success</success_template>
<fail_template>/openils/var/data/report-fail</fail_template>
<output_base>LOCALSTATEDIR/web/reporter</output_base>
<success_template>LOCALSTATEDIR/data/report-success</success_template>
<fail_template>LOCALSTATEDIR/data/report-fail</fail_template>
</files>
</setup>
</reporter>
Expand Down Expand Up @@ -351,7 +351,7 @@ vim:et:ts=4:sw=4:
<max_superpages>10</max_superpages>

<!-- zip code database file -->
<!--<zips_file>/openils/var/data/zips.txt</zips_file>-->
<!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
</app_settings>
</open-ils.search>

Expand Down Expand Up @@ -393,7 +393,7 @@ vim:et:ts=4:sw=4:
</unix_config>
<app_settings>
<marctemplates>
<K_book>/openils/var/templates/marc/k_book.xml</K_book>
<K_book>LOCALSTATEDIR/templates/marc/k_book.xml</K_book>
</marctemplates>
</app_settings>
</open-ils.cat>
Expand Down Expand Up @@ -471,9 +471,9 @@ vim:et:ts=4:sw=4:
</unix_config>
<app_settings>
<patron_penalty>penalty/patron_penalty.js</patron_penalty>
<script_path>/openils/lib/javascript</script_path>
<script_path>/openils/var</script_path>
<script_path>/openils/var/catalog</script_path>
<script_path>LIBDIR/javascript</script_path>
<script_path>LOCALSTATEDIR</script_path>
<script_path>LOCALSTATEDIR/catalog</script_path>
</app_settings>
</open-ils.penalty>

Expand All @@ -499,9 +499,9 @@ vim:et:ts=4:sw=4:
</notify_hold>

<!-- circulation policy scripts -->
<script_path>/openils/lib/javascript</script_path>
<script_path>/openils/var</script_path>
<script_path>/openils/var/catalog</script_path>
<script_path>LIBDIR/javascript</script_path>
<script_path>LOCALSTATEDIR</script_path>
<script_path>LOCALSTATEDIR/catalog</script_path>
<legacy_script_support>false</legacy_script_support>
<scripts>
<circ_permit_patron>circ/circ_permit_patron.js</circ_permit_patron>
Expand Down Expand Up @@ -591,9 +591,9 @@ vim:et:ts=4:sw=4:
<max_spare_children>5</max_spare_children>
</unix_config>
<app_settings>
<script_path>/openils/lib/javascript/</script_path>
<script_path>/openils/var/catalog/</script_path>
<script_path>/openils/var/web/opac/common/js/</script_path>
<script_path>LIBDIR/javascript/</script_path>
<script_path>LOCALSTATEDIR/catalog/</script_path>
<script_path>LOCALSTATEDIR/web/opac/common/js/</script_path>
<scripts>
<biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
<biblio_descriptor>biblio_descriptor.js</biblio_descriptor>
Expand All @@ -617,8 +617,8 @@ vim:et:ts=4:sw=4:
<max_spare_children>5</max_spare_children>
</unix_config>
<app_settings>
<script_path>/openils/lib/javascript/</script_path>
<script_path>/openils/var/catalog/</script_path>
<script_path>LIBDIR/javascript/</script_path>
<script_path>LOCALSTATEDIR/catalog/</script_path>
<scripts>
<biblio_fingerprint>biblio_fingerprint.js</biblio_fingerprint>
</scripts>
Expand Down
10 changes: 5 additions & 5 deletions Open-ILS/examples/opensrf_core.xml.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ vim:et:ts=2:sw=2:
<port>5222</port>

<!-- log to a local file -->
<logfile>/openils/var/log/osrfsys.log</logfile>
<logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>

<!-- Log to syslog. You can use this same layout for
defining the logging of all services in this file -->
Expand All @@ -35,7 +35,7 @@ vim:et:ts=2:sw=2:
<loglevel>3</loglevel>

<!-- config file for the services -->
<settings_config>/openils/conf/opensrf.xml</settings_config>
<settings_config>SYSCONFDIR/opensrf.xml</settings_config>

</opensrf>

Expand All @@ -51,7 +51,7 @@ vim:et:ts=2:sw=2:
<secret>secret</secret>
<listen_address>10.0.0.3</listen_address>
<loglevel>3</loglevel>
<logfile>/openils/var/log/osrfsys.log</logfile>
<logfile>LOCALSTATEDIR/log/osrfsys.log</logfile>
</chopchop>

<!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
Expand Down Expand Up @@ -85,7 +85,7 @@ vim:et:ts=2:sw=2:
<username>mylogin</username>
<passwd>mypassword</passwd>
<port>5222</port>
<logfile>/openils/var/log/gateway.log</logfile>
<logfile>LOCALSTATEDIR/log/gateway.log</logfile>
<loglevel>3</loglevel>

</gateway>
Expand Down Expand Up @@ -126,7 +126,7 @@ vim:et:ts=2:sw=2:
<max_reconnect_attempts>5</max_reconnect_attempts>

</transport>
<logfile>/openils/var/log/router.log</logfile>
<logfile>LOCALSTATEDIR/log/router.log</logfile>
<loglevel>2</loglevel>
</router>

Expand Down
Loading

0 comments on commit c971464

Please sign in to comment.