LP1970667: Add Installation Support for Ubuntu 22.04 (Jammy Jellyfish) Update the prerequisite installation, C unit tests, and README for Ubuntu 22.04 LTS (Jammy Jellyfish). Update configure.ac for recent autoconf/libtool changes Suggest disabling apparmor for ejabberd in README Signed-off-by: Jason Stephenson <jason@sigio.com> Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Remove XUL opensrf.math Client Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org> Signed-off-by: Jason Stephenson <jason@sigio.com> Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
LP 1827051: Remove Java Code, etc. Java support in OpenSRF does not build and is out of date with current OpenSRF features. No one has the intention to fix it, so this commit removes Java from the code, build files, and documentation. To test that Java is indeed broken, configure OpenSRF with the --enable-java option and then watch the make fail as it tries to pull in missing dependencies. To test this branch, simply apply it and see that the option to enable Java is gone along with all of the obsolete code and build instructions. Signed-off-by: Jason Stephenson <jason@sigio.com>
LP1827055 Remove Python libs, install bits, and docs Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jason Stephenson <jason@sigio.com> Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
LP#1272937 - Quiet warnings from autoreconf -i We change INCLUDES to AM_CPPFLAGS and change the syntax for AM_INIT_AUTOMAKE to match current recommendations. Also, add an m4 directory. Thanks to Warren Layton for direction towards these solutions. Signed-off-by: Chris Sharp <csharp@georgialibraries.org> Signed-off-by: Jason Stephenson <jason@sigio.com>
LP#1777180 Websocketd gateway and test scripts Adds a new OpenSRF binary/program for relaying websockets messages to and from a websocketd instance. The new binary (osrf-websocket-stdio) performs the same tasks as the osrf_websocket_translator.c Apache module, minus the Apache module glue and the extra threading required to run within the Apache module. Commit includes 2 test scripts (tester.pl and test-stateful.pl) for generating large series of test messages to send to a websockets instance. tester.pl sends echo requests only, test-stateful.pl sends connect->echo-request->disconnect batches across a configurable number of forked processes. INSTALL document updated to include websocketd setup as an alternative to Apache websockets. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop> Signed-off-by: Jason Stephenson <jason@sigio.com> Signed-off-by: Ben Shum <ben@evergreener.net>
LP#1666706: add --with-websockets-port configure option This patch adds the ability to specify the WebSockets port as a configure option, avoiding the need to manually edit a couple JavaScript files if one chooses to proxy WS traffic. This patch also cleans up the set of JavaScript files that are installed so that some test case files are not installed by default. Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
LP#1631520: configure install location of Perl modules Add --with-perlbase configure option to specify an alternative location for installing the Perl modules. This can be useful for setups that want to run the Perl modules from a shared filesystem or environments that need to run multiple versions of OpenSRF simultaneously. Users of --with-perlbase are responsible for ensuring that PERL5LIB is set appropriately. To test ------- [1] Use --with-perlbase during the configure step, e.g., ./configure --perl-base /tmp/perl [2] Run make; make check; sudo make install [3] Verify that the Perl modules are installed under /tmp/perl. [4] Make a change to a Perl source file, then go to src/perl, then run sudo ./Build install. Verify that it remembers the --with-perlbase directory and installs the updated module there. Signed-off-by: Mike Rylander <mrylander@gmail.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
LP#1286248: remove osrf_ctl.sh As osrf_ctl.sh was deprecated in favor of osrf_control, this patch removes the deprecated script entirely. Signed-off-by: Galen Charlton <gmc@esilibrary.com> Signed-off-by: Bill Erickson <berick@esilibrary.com>
Stop using a non-standard default PREFIX for installs Working towards packaging, we will be better off if we start getting used to installing OpenSRF in standard FHS directories. Signed-off-by: Dan Scott <dscott@laurentian.ca> Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Test for Apache executable in sbin dirs Debian apparently doesn't include /usr/sbin in the default user PATH, so add an APXS2-like lookup with likely locations if we don't find the apache executable in our standard path. Signed-off-by: Dan Scott <dscott@laurentian.ca> Signed-off-by: Jason Etheridge <jason@esilibrary.com> Signed-off-by: Ben Shum <bshum@biblio.org>
Support Apache 2.4 client IP address lookups The Apache 2.4 API replaces the conn_rec->remote_ip member with conn_rec->client_ip or conn_rec->useragent_ip (per http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html). client_ip seems to be the best choice for us, to avoid everything being logged from the load balancer or proxy instead of the client's address. This code detects the version of Apache and uses client_ip if it is 2.4 or greater. Signed-off-by: Dan Scott <dscott@laurentian.ca> Signed-off-by: Bill Erickson <berick@esilibrary.com>
Change OSRF_JAVA_DEPSDIR so building Java just works. OSRF_JAVA_DEPSDIR was being set to /opt/java by configure without any documentation to that effect. The src/java/deps.sh downloads the deps files to src/java/deps. This means that you cannot just build java without either copying the jars from src/java/deps or altering src/java/Makefile. This edit changes the AC_SUBST call to replace OSRF_JAVA_DEPSDIR with deps, so that you can at least build java without making any changes. Signed-off-by: Jason Stephenson <jstephenson@mvlc.org> Signed-off-by: Bill Erickson <berick@esilibrary.com>
Typo in configure.ac: 'framweork' Reported by David Busby of edoceo in https://bugs.launchpad.net/opensrf/+bug/1080458 - thanks David! Signed-off-by: Dan Scott <dscott@laurentian.ca>
ChopChop is dead, long live ChopChop. It was never fully baked, nor was it secure, nor does it compile cleanly with -Wall, nor does it provide any useful examples for working with opensrf, etc. Time to clear out. So long, chopchop. Signed-off-by: Bill Erickson <berick@esilibrary.com> Signed-off-by: Dan Scott <dscott@laurentian.ca>
autotools - do not explicitly include m4 directory Some versions of autotools complain bitterly if an m4 include directory is specified that does not exist. Signed-off-by: Dan Scott <dscott@laurentian.ca>
Don't define a variable inside a conditional block ./configure --disable-core --enable-javascript was dying with an error due to CHECK_TESTS not being defined; move it outside the conditional block so that we can ensure that it is defined as either yes or no. Signed-off-by: Dan Scott <dscott@laurentian.ca>
Comment on why we're pulling in version.m4 Commenting code is helpful, I've been told that it is the best way to reduce bugs in a project. To that end, make the connection between VERSION_NUMBER and PACKAGE_VERSION in configure.ac Signed-off-by: Dan Scott <dscott@laurentian.ca>
Define version number in one place Adding the version.m4 macro defines VERSION_NUMBER for us in one place so that we can simplify package releases (and fix 'osrf_config --version' output so that it does not always tell us 'trunk'). Signed-off-by: Dan Scott <dscott@laurentian.ca>
Add a C unit testing framework and tests for OpenSRF The unit testing framework is "Check" - http://check.sourceforge.net/ These tests can be executed by running 'make check' after you configure and compile the OpenSRF code. To run them, you must have the 'check' package installed. Author: Kevin Beswick <kevinbeswick00@gmail.com> Signed-off-by: Dan Scott <dan@coffeecode.net> Signed-off-by: Kevin Beswick <kevinbeswick00@gmail.com> git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2237 9efc2488-bf62-4759-914b-345cdb29e865