summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-12-09 09:13:02 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-12-09 09:13:02 +0000
commit6848636300d6cb3e19fd139fa9ee6966014cea57 (patch)
tree07b74471d4d8ecc0d66fa6dc7b6133b099a73523 /dev-libs/OpenSRF
parentremove old (diff)
downloadhistorical-6848636300d6cb3e19fd139fa9ee6966014cea57.tar.gz
historical-6848636300d6cb3e19fd139fa9ee6966014cea57.tar.bz2
historical-6848636300d6cb3e19fd139fa9ee6966014cea57.zip
Version bump.
Package-Manager: portage-2.2_rc16/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64
Diffstat (limited to 'dev-libs/OpenSRF')
-rw-r--r--dev-libs/OpenSRF/ChangeLog8
-rw-r--r--dev-libs/OpenSRF/Manifest5
-rw-r--r--dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild133
-rw-r--r--dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch164
4 files changed, 308 insertions, 2 deletions
diff --git a/dev-libs/OpenSRF/ChangeLog b/dev-libs/OpenSRF/ChangeLog
index 0c26b3174ec6..a3d0d65d51fe 100644
--- a/dev-libs/OpenSRF/ChangeLog
+++ b/dev-libs/OpenSRF/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/OpenSRF
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/ChangeLog,v 1.1 2008/09/29 04:13:48 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/ChangeLog,v 1.2 2008/12/09 09:13:02 robbat2 Exp $
+
+*OpenSRF-1.0.1 (09 Dec 2008)
+
+ 09 Dec 2008; Robin H. Johnson <robbat2@gentoo.org>
+ +files/OpenSRF-1.0.1-buildfix.patch, +OpenSRF-1.0.1.ebuild:
+ Version bump.
*OpenSRF-0.9 (29 Sep 2008)
diff --git a/dev-libs/OpenSRF/Manifest b/dev-libs/OpenSRF/Manifest
index 0c29a3af4622..6627bba6af5d 100644
--- a/dev-libs/OpenSRF/Manifest
+++ b/dev-libs/OpenSRF/Manifest
@@ -1,5 +1,8 @@
AUX OpenSRF-0.9-buildfix.patch 10610 RMD160 c70fc3ecbfb6add462d190dae0aa93d2e2985889 SHA1 7acfdb4cccf8285e3454528acd2159b17b176bb4 SHA256 1298392bf77506d29f3cb1096524455e538e6760edb2b6ada130171f21398f38
+AUX OpenSRF-1.0.1-buildfix.patch 6578 RMD160 74816d9e1d6eabb3171f47387040cc17ba374673 SHA1 32f3c394473d5b77a1ed68444a78bdbf9fb18d42 SHA256 eb15af3189dfd4bcb8b39c2f42e4ff50fbb77cc8714e4c14f70cbeb9f06223e5
DIST OpenSRF-0.9.tar.gz 276345 RMD160 ee50fa4c1e0bc883f03988a3b96587ad8a721d1d SHA1 e10dd7def5c6dd32ceacc1096a104a42627219f8 SHA256 62b20e6cc40fbee84b6a754c01006fbb31b5bf588fcb9240efa507b4480b082c
+DIST OpenSRF-1.0.1.tar.gz 1080452 RMD160 6539521e6f8ec5aadb685d246caba8ccaa3cd9c6 SHA1 965e798b426c242b1deee9d302aa0ba9bb47b21d SHA256 b0683f6fa5c94ae7e093afa715a3d89624abfc86165e36ff6ea28dd61b3acac0
EBUILD OpenSRF-0.9.ebuild 3366 RMD160 aac1faab24cfc089361b9d5b73bfcf899d94c6b6 SHA1 2375e1bfd1f2ace0eae65d0df9d6e081eb5ccb6a SHA256 163e7e1396124ef1b4ac3a16b0dc6d989335040127a0b4b506767a6f1622884d
-MISC ChangeLog 501 RMD160 162afd09ed14b127995e13e3c018c7ccb980a108 SHA1 84caebf2143e6b75ed9fae309191215aec9d83af SHA256 61797c1cdc5a15ed11eb4cc64253752500b019a5e64b42cf8a8a88dd87436511
+EBUILD OpenSRF-1.0.1.ebuild 4183 RMD160 0b2ded034511594eb3ef72dc1771a08c14065fd8 SHA1 69fa35b294f68ff3ef8e2b1dfdd5eb3f5d390897 SHA256 c50c08dff700c44c504c80391b21bff98c8dbee633a2439acd42f534c7a75980
+MISC ChangeLog 663 RMD160 5cf9983aa666827190dcd4e4f2bbfc218fe4ee66 SHA1 f958f9a16e54d2306b520861929b0666501ee99f SHA256 b10789fa61428878e2ffef722f1bc8c4b58b2e214c6fd49534ca7db542901514
MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44
diff --git a/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild b/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild
new file mode 100644
index 000000000000..f39745149638
--- /dev/null
+++ b/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild,v 1.1 2008/12/09 09:13:02 robbat2 Exp $
+
+inherit eutils multilib flag-o-matic apache-module autotools perl-module
+
+DESCRIPTION="OpenSRF is a framework that allows the development of software without requiring a detailed knowledge of Evergreen's structure."
+HOMEPAGE="http://open-ils.org/"
+SRC_URI="http://open-ils.org/downloads/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+DEPEND=">=www-servers/apache-2.2.9
+ >=dev-libs/yaz-3.0
+ app-dicts/aspell-en
+ >=dev-lang/spidermonkey-1.6
+ >=dev-db/libdbi-drivers-0.8.2
+ >=dev-db/libdbi-0.8.2
+ net-im/ejabberd
+ dev-libs/libmemcache
+ dev-perl/FreezeThaw
+ dev-perl/Cache-Memcached
+ dev-perl/DateTime
+ dev-perl/DateTime-Locale
+ dev-perl/DateTime-TimeZone
+ dev-perl/DateTime-Format-ISO8601
+ dev-perl/DBD-Pg
+ dev-perl/Email-Send
+ dev-perl/GD-Graph3d
+ dev-perl/Log-Log4perl
+ dev-perl/JSON-XS
+ dev-perl/XML-LibXML
+ dev-perl/XML-LibXSLT
+ dev-perl/XML-Simple
+ dev-perl/Template-Toolkit
+ dev-perl/Text-Aspell
+ dev-perl/UNIVERSAL-require
+ dev-perl/Unix-Syslog
+ dev-perl/Text-CSV
+ dev-perl/Text-CSV-Simple
+ dev-perl/Text-CSV_XS
+ dev-perl/Spreadsheet-WriteExcel
+ dev-perl/Tie-IxHash
+ dev-perl/Net-XMPP
+ dev-perl/Authen-SASL
+ dev-perl/XML-Stream
+ dev-perl/net-server
+ dev-perl/Class-DBI-AbstractSearch
+ dev-perl/JavaScript-SpiderMonkey
+ dev-perl/MARC-Record
+ dev-perl/MARC-Charset
+ dev-perl/MARC-XML
+ dev-perl/Net-Z3950-ZOOM"
+
+PERL_S="${S}/src/perl"
+
+APXS2_S="${S}/src/gateway/.libs/"
+APACHE2_MOD_FILE="${APXS2_S}/osrf_json_gateway.so ${APXS2_S}/osrf_http_translator.so"
+#APACHE2_MOD_CONF="42_${PN}"
+#APACHE2_MOD_DEFINE="FOO"
+#DOCFILES="docs/*.html"
+need_apache2_2
+
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.0.1-buildfix.patch
+ eautoreconf
+}
+
+#src_compile() {
+# LIBXML2_CFLAGS=$(xml2-config --cflags)
+# LIBXML2_CFLAGS="${LIBXML2_CFLAGS//*-I}"
+# LIBXML2_HEADERS="${LIBXML2_CFLAGS// *}"
+# APR_HEADERS=$(apr-1-config --includedir)
+# APACHE2_HEADERS=$(apxs2 -q INCLUDEDIR)
+# sed -i \
+# -e '/^export PREFIX=/s,/.*,/usr,' \
+# -e '/^export BINDIR=/s,/.*,${PREFIX}/bin,' \
+# -e "/^export LIBDIR=/s,/.*,\${PREFIX}/$(get_libdir)," \
+# -e '/^export PERLDIR=/s,/.*,${LIBDIR}/perl5,' \
+# -e '/^export INCLUDEDIR=/s,/.*,${PREFIX}/include,' \
+# -e '/^export ETCDIR=/s,/.*,/etc,' \
+# -e '/^export SOCK=/s,/.*,/var/run/opensrf,' \
+# -e '/^export PID=/s,/.*,/var/run/opensrf,' \
+# -e '/^export LOG=/s,/.*,/var/log,' \
+# -e '/^export TMP=/s,/.*,/tmp,' \
+# -e '/^export APXS2=/s,/.*,/usr/sbin/apxs2,' \
+# -e "/^export APACHE2_HEADERS=/s,/.*,${APACHE2_HEADERS}," \
+# -e "/^export APR_HEADERS=/s,/.*,${APR_HEADERS}," \
+# -e "/^export LIBXML2_HEADERS=/s,/.*,${LIBXML2_HEADERS}," \
+# install.conf
+# emake verbose || die "Failed to build"
+#}
+src_compile() {
+ econf \
+ --with-apxs=/usr/sbin/apxs2 \
+ || die "econf failed"
+ cd "${S}" && emake || die "main emake failed"
+ cd "${PERL_S}" && S="${PERL_S}" perl-module_src_compile || die "perl-module_src_compile failed"
+}
+
+src_install() {
+ einfo "Doing src_install"
+ #emake install-verbose DESTDIR="${D}" || die "Failed to install"
+ emake install DESTDIR="${D}" || die "Failed to install"
+ apache-module_src_install || die "apache-module_src_install failed"
+ cd "${PERL_S}" && S="${PERL_S}" perl-module_src_install || die "perl-module_src_install failed"
+ #insinto /usr/share/opensrf
+ #doins src/javascript/*js
+ #dodoc doc/*
+}
+
+src_test() {
+ emake check || die "emake check failed"
+ cd "${PERL_S}" && S="${PERL_S}" perl-module_src_test || die "perl-module_src_test failed"
+}
+
+pkg_config() {
+ JABBER_SERVER=${JABBER_SERVER:=localhost}
+ JABBER_PORT=${JABBER_PORT:=5222}
+ PASSWORD=${PASSWORD:=osrf}
+ einfo "Using Jabber server at ${JABBER_SERVER}:${JABBER_PORT}"
+ einfo "Adding 'osrf' and 'router' users with password ${PASSWORD}"
+ cd "${ROOT}"/usr/share/doc/${PF}/examples
+ for user in osrf router ; do
+ perl register.pl ${JABBER_SERVER} ${JABBER_PORT} ${user} ${PASSWORD} \
+ || die "Failed to add $user user to server"
+ done
+}
diff --git a/dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch b/dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch
new file mode 100644
index 000000000000..75a6f8ac2e2e
--- /dev/null
+++ b/dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch
@@ -0,0 +1,164 @@
+- Make OpenSRF parallel-build safe
+- DESTDIR fixups
+- split out install targets to build the apache modules
+- disable perl and apache install targets, will use gentoo tools instead
+- compile fix to osrf_chat.c
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar OpenSRF-1.0.1.orig/Makefile.am OpenSRF-1.0.1/Makefile.am
+--- OpenSRF-1.0.1.orig/Makefile.am 2008-10-26 22:10:21.000000000 -0700
++++ OpenSRF-1.0.1/Makefile.am 2008-12-08 23:44:44.402248471 -0800
+@@ -115,13 +115,13 @@
+ SUBDIRS = src
+
+ jserver:
+- make -s -C src jserver
++ $(MAKE) -s -C src jserver
+
+ jserver-install:
+- make -s -C src jserver-install
++ $(MAKE) -s -C src jserver-install
+
+ javascript-install:
+- make -s -C src javascript-install
++ $(MAKE) -s -C src javascript-install
+
+ install-data-hook:
+ cp @srcdir@/src/gateway/apachetools.h @includedir@/opensrf/apachetools.h
+diff -Nuar OpenSRF-1.0.1.orig/src/gateway/Makefile.am OpenSRF-1.0.1/src/gateway/Makefile.am
+--- OpenSRF-1.0.1.orig/src/gateway/Makefile.am 2008-08-18 12:14:00.000000000 -0700
++++ OpenSRF-1.0.1/src/gateway/Makefile.am 2008-12-08 23:44:44.405703486 -0800
+@@ -16,16 +16,25 @@
+
+ AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I@abs_top_srcdir@/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS)
+ AM_LDFLAGS = -L$(LIBDIR) -L@top_builddir@/src/libopensrf
++APACHE_DEPS = apachetools.c apachetools.h
++LIBS=libopensrf.so
++TARGETS = osrf_json_gateway.la osrf_http_translator.la
+
+-install-exec-local:
+- if [ ! "$$(grep mod_placeholder `apxs2 -q SYSCONFDIR`/httpd.conf)" ]; \
+- then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
+- >> `apxs2 -q SYSCONFDIR`/httpd.conf; \
+- fi
+- $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_json_gateway.c apachetools.c apachetools.h libopensrf.so
+- $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_http_translator.c apachetools.c apachetools.h libopensrf.so
+- $(APXS2) -i -a @srcdir@/osrf_json_gateway.la
+- $(APXS2) -i -a @srcdir@/osrf_http_translator.la
++all: $(TARGETS)
++
++osrf_json_gateway.la: osrf_json_gateway.c $(APACHE_DEPS)
++ $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) $^ $(LIBS)
++
++osrf_http_translator.la: osrf_http_translator.c $(APACHE_DEPS)
++ $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) $^ $(LIBS)
++
++#install-exec-local: $(TARGETS)
++# if [ ! "$$(grep mod_placeholder `apxs2 -q SYSCONFDIR`/httpd.conf)" ]; \
++# then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
++# >> `apxs2 -q SYSCONFDIR`/httpd.conf; \
++# fi
++# $(APXS2) -i -a osrf_json_gateway.la
++# $(APXS2) -i -a osrf_http_translator.la
+
+ clean-local:
+ rm -f @srcdir@/osrf_http_translator.la @srcdir@/osrf_http_translator.lo @srcdir@/osrf_http_translator.slo @srcdir@/osrf_json_gateway.la @srcdir@/osrf_json_gateway.lo @srcdir@/osrf_json_gateway.slo
+diff -Nuar OpenSRF-1.0.1.orig/src/java/Makefile.am OpenSRF-1.0.1/src/java/Makefile.am
+--- OpenSRF-1.0.1.orig/src/java/Makefile.am 2008-07-17 11:15:09.000000000 -0700
++++ OpenSRF-1.0.1/src/java/Makefile.am 2008-12-08 23:44:44.405703486 -0800
+@@ -48,8 +48,8 @@
+ rm files;
+
+ install-data-local:
+- mkdir -p $(LIBDIR)/java
+- cp opensrf.jar $(LIBDIR)/java
++ mkdir -p $(DESTDIR)$(LIBDIR)/java
++ cp opensrf.jar $(DESTDIR)$(LIBDIR)/java
+
+ dep_clean:
+ rm -rf deps
+diff -Nuar OpenSRF-1.0.1.orig/src/jserver/osrf_chat.c OpenSRF-1.0.1/src/jserver/osrf_chat.c
+--- OpenSRF-1.0.1.orig/src/jserver/osrf_chat.c 2008-04-11 07:13:49.000000000 -0700
++++ OpenSRF-1.0.1/src/jserver/osrf_chat.c 2008-12-08 23:44:44.405703486 -0800
+@@ -18,6 +18,10 @@
+ #include <stdio.h>
+ #include <time.h>
+
++#ifndef HOST_NAME_MAX
++#define HOST_NAME_MAX 256
++#endif
++
+ static int osrfChatXMLErrorOcurred = 0;
+
+ /* This is used by code in osrfChatPushData, but that code is
+diff -Nuar OpenSRF-1.0.1.orig/src/libopensrf/Makefile.am OpenSRF-1.0.1/src/libopensrf/Makefile.am
+--- OpenSRF-1.0.1.orig/src/libopensrf/Makefile.am 2008-08-07 09:54:56.000000000 -0700
++++ OpenSRF-1.0.1/src/libopensrf/Makefile.am 2008-12-08 23:44:44.405703486 -0800
+@@ -94,6 +94,7 @@
+ opensrf_c_SOURCES = opensrf.c
+ opensrf_c_DEPENDENCIES = libopensrf.la
+
++osrf_json_test_DEPENDENCIES = libopensrf.la libosrf_json.la
+ osrf_json_test_SOURCES = osrf_json_test.c $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS)
+
+ noinst_LTLIBRARIES = libosrf_json.la
+diff -Nuar OpenSRF-1.0.1.orig/src/Makefile.am OpenSRF-1.0.1/src/Makefile.am
+--- OpenSRF-1.0.1.orig/src/Makefile.am 2008-11-03 19:04:24.000000000 -0800
++++ OpenSRF-1.0.1/src/Makefile.am 2008-12-08 23:44:44.405703486 -0800
+@@ -41,12 +41,12 @@
+ dist_sysconf_DATA = @top_srcdir@/examples/opensrf.xml.example @top_srcdir@/examples/opensrf_core.xml.example @top_srcdir@/examples/srfsh.xml.example
+
+ install-exec-local:
+- mkdir -p $(VAR)
+- mkdir -p $(PID)
+- mkdir -p $(LOG)
+- mkdir -p $(SOCK)
+- mkdir -p $(jsdir)
+- make install-perl
++ mkdir -p $(DESTDIR)$(VAR)
++ mkdir -p $(DESTDIR)$(PID)
++ mkdir -p $(DESTDIR)$(LOG)
++ mkdir -p $(DESTDIR)$(SOCK)
++ mkdir -p $(DESTDIR)$(jsdir)
++# $(MAKE) install-perl
+
+ install-exec-hook:
+ sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/opensrf.xml.example'
+@@ -59,10 +59,10 @@
+
+
+ install-perl:
+- cd ./perl && perl Makefile.PL || make -s install-perl-fail
+- make -C perl
+- make -C perl test || make -s install-perl-fail
+- make -C perl install
++# cd ./perl && perl Makefile.PL || $(MAKE) -s install-perl-fail
++# $(MAKE) -C perl
++# $(MAKE) -C perl test || $(MAKE) -s install-perl-fail
++# $(MAKE) -C perl install
+
+ install-perl-fail:
+ echo
+diff -Nuar OpenSRF-1.0.1.orig/src/Makefile.am OpenSRF-1.0.1/src/Makefile.am
+--- OpenSRF-1.0.1.orig/src/Makefile.am 2008-12-08 23:55:32.012609493 -0800
++++ OpenSRF-1.0.1/src/Makefile.am 2008-12-08 23:56:54.739569108 -0800
+@@ -55,7 +55,7 @@
+ sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example'
+ sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/srfsh.xml.example'
+ sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/srfsh.xml.example'
+- cp -r @srcdir@/javascript/* $(jsdir)/
++ cp -r @srcdir@/javascript/* $(DESTDIR)$(jsdir)/
+
+
+ install-perl:
+diff -Nuar OpenSRF-1.0.1.orig/Makefile.am OpenSRF-1.0.1/Makefile.am
+--- OpenSRF-1.0.1.orig/Makefile.am 2008-12-08 23:57:09.459287812 -0800
++++ OpenSRF-1.0.1/Makefile.am 2008-12-08 23:58:26.355782021 -0800
+@@ -124,5 +124,5 @@
+ $(MAKE) -s -C src javascript-install
+
+ install-data-hook:
+- cp @srcdir@/src/gateway/apachetools.h @includedir@/opensrf/apachetools.h
++ cp @srcdir@/src/gateway/apachetools.h $(DESTDIR)@includedir@/opensrf/apachetools.h
+