summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-11-10 08:39:26 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-11-10 08:39:26 +0000
commit8ba841e4b1ea8626acbd0d0200c41ccbea5d3095 (patch)
tree762d02dde1b1f83d08c18ff6bca855802a58e629 /dev-libs/OpenSRF
parentcrash fixes, remove stale version (diff)
downloadhistorical-8ba841e4b1ea8626acbd0d0200c41ccbea5d3095.tar.gz
historical-8ba841e4b1ea8626acbd0d0200c41ccbea5d3095.tar.bz2
historical-8ba841e4b1ea8626acbd0d0200c41ccbea5d3095.zip
More work on Evergreen, a new spin of the OpenSRF package.
Package-Manager: portage-2.2_rc49/cvs/Linux 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.7.ebuild124
-rw-r--r--dev-libs/OpenSRF/files/OpenSRF-1.0.7-buildfix.patch151
4 files changed, 286 insertions, 2 deletions
diff --git a/dev-libs/OpenSRF/ChangeLog b/dev-libs/OpenSRF/ChangeLog
index 0cb6df626866..b56a8ac001a4 100644
--- a/dev-libs/OpenSRF/ChangeLog
+++ b/dev-libs/OpenSRF/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/OpenSRF
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/ChangeLog,v 1.5 2009/05/26 17:28:31 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/ChangeLog,v 1.6 2009/11/10 08:39:25 robbat2 Exp $
+
+*OpenSRF-1.0.7 (10 Nov 2009)
+
+ 10 Nov 2009; Robin H. Johnson <robbat2@gentoo.org> +OpenSRF-1.0.7.ebuild,
+ +files/OpenSRF-1.0.7-buildfix.patch:
+ More work on Evergreen, a new spin of the OpenSRF package.
26 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
OpenSRF-1.0.1.ebuild:
diff --git a/dev-libs/OpenSRF/Manifest b/dev-libs/OpenSRF/Manifest
index d714cec392c6..618f1e8b59d3 100644
--- a/dev-libs/OpenSRF/Manifest
+++ b/dev-libs/OpenSRF/Manifest
@@ -1,8 +1,11 @@
AUX OpenSRF-0.9-buildfix.patch 10610 RMD160 c70fc3ecbfb6add462d190dae0aa93d2e2985889 SHA1 7acfdb4cccf8285e3454528acd2159b17b176bb4 SHA256 1298392bf77506d29f3cb1096524455e538e6760edb2b6ada130171f21398f38
AUX OpenSRF-1.0.1-buildfix.patch 7128 RMD160 45e391833a7b3e7fb6e216e68fb689fe44f47611 SHA1 dc7ac6196f1aae37f46666c240857e32d3f19566 SHA256 c380901d67883515c132d3b3c49642e0a29e3037311aa41739af5695941bb8b5
+AUX OpenSRF-1.0.7-buildfix.patch 6071 RMD160 eee9d278ae18dfb5099f9780f35a4eefb2dc52db SHA1 f7c290b935259daa25764e0b4d2b7cd933bc8a66 SHA256 c76c3b09f2d7877cfb096efa76e7e5f33406390f1b9861129f83dc4156468bef
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
+DIST OpenSRF-1.0.7.tar.gz 1082429 RMD160 d7be6c8e432cea3cbf21f92493ddb57fcc1408f7 SHA1 2e4d9ff7cc73184f7b8c864696d1118ae7d298a2 SHA256 6b4ad2a571446630ba88eb100ec9a1a88e00c9cbe3127278c360ccaab99c90b1
EBUILD OpenSRF-0.9.ebuild 3366 RMD160 aac1faab24cfc089361b9d5b73bfcf899d94c6b6 SHA1 2375e1bfd1f2ace0eae65d0df9d6e081eb5ccb6a SHA256 163e7e1396124ef1b4ac3a16b0dc6d989335040127a0b4b506767a6f1622884d
EBUILD OpenSRF-1.0.1.ebuild 4296 RMD160 cc5389c74633e468b8294df5bb20dfa416f73ce7 SHA1 0a8ebda0baab068ead94810cd4bb2e7834b78502 SHA256 403e36642dad547670df64c880bbf544cd5186a2e695a79e34542421eeeba6ad
-MISC ChangeLog 1238 RMD160 de61c5e67cb1afe160b052c796b93e94c76ce4c9 SHA1 03516a8cdf07e35474d0dcb4c747bea63f91626b SHA256 47c4c3bf8321fc5380a635d8e02a0ebdeb8013226aadb82e1f6306030f423054
+EBUILD OpenSRF-1.0.7.ebuild 3822 RMD160 359aa7307d10fc845f6e68632b700f1e2aa68d1e SHA1 1a091132070647c44bf970dd8ddfa9de42d2334f SHA256 0c07edd50dfd70db0633a56b297c24a071f2262e2ff41b227b9e36aedd8f748a
+MISC ChangeLog 1444 RMD160 821597f3c715ebfc32e319f05841df6654021bce SHA1 b8aac1994a8c169ccf7f767671ba48fba393bc72 SHA256 204e48678308edbd2431e44ac5c401ca2636c41b7832e2004fbf35503b8e693a
MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44
diff --git a/dev-libs/OpenSRF/OpenSRF-1.0.7.ebuild b/dev-libs/OpenSRF/OpenSRF-1.0.7.ebuild
new file mode 100644
index 000000000000..15d0ee72d42f
--- /dev/null
+++ b/dev-libs/OpenSRF/OpenSRF-1.0.7.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/OpenSRF-1.0.7.ebuild,v 1.1 2009/11/10 08:39:25 robbat2 Exp $
+
+EAPI=2
+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="postgres +sqlite"
+DEPEND=">=www-servers/apache-2.2.9
+ >=dev-db/libdbi-drivers-0.8.2
+ >=dev-db/libdbi-0.8.2
+ net-im/ejabberd
+ dev-libs/libmemcache
+ dev-perl/Cache-Memcached
+ dev-perl/Class-DBI-AbstractSearch
+ sqlite? ( dev-perl/DBD-SQLite )
+ postgres? ( dev-perl/DBD-Pg )
+ virtual/perl-Digest-MD5
+ dev-perl/JSON-XS
+ dev-perl/net-server
+ dev-perl/UNIVERSAL-require
+ dev-perl/Unix-Syslog
+ dev-perl/XML-LibXML
+ "
+
+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}"
+
+pkg_setup() {
+ perl-module_pkg_setup
+}
+
+src_prepare() {
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-1.0.7-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_configure() {
+ econf \
+ --with-apxs=/usr/sbin/apxs2 \
+ --sysconfdir=/etc/opensrf \
+ --localstatedir=/var \
+ || die "econf failed"
+}
+
+src_compile() {
+ 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"
+ cd "${S}"
+
+ # Docs
+ dodoc README doc/*
+
+ # Fixup upstream javascript install
+ #insinto /usr/share/opensrf
+ #doins src/javascript/*js
+ #rm -rf "${D}"/usr/$(get_libdir)/javascript/
+}
+
+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.7-buildfix.patch b/dev-libs/OpenSRF/files/OpenSRF-1.0.7-buildfix.patch
new file mode 100644
index 000000000000..1b753d36d347
--- /dev/null
+++ b/dev-libs/OpenSRF/files/OpenSRF-1.0.7-buildfix.patch
@@ -0,0 +1,151 @@
+diff -Nuar OpenSRF-1.0.7.orig/bin/osrf_ctl.sh OpenSRF-1.0.7/bin/osrf_ctl.sh
+--- OpenSRF-1.0.7.orig/bin/osrf_ctl.sh 2009-06-11 13:12:13.000000000 +0000
++++ OpenSRF-1.0.7/bin/osrf_ctl.sh 2009-11-10 08:20:37.233637281 +0000
+@@ -87,8 +87,9 @@
+ esac;
+ done
+
+-OSRF_CONFIG=`which osrf_config`
+-[ -z "$OSRF_CONFIG" ] && OSRF_CONFIG=`find $BASEDIR -name osrf_config`
++#OSRF_CONFIG=`which osrf_config`
++#[ -z "$OSRF_CONFIG" ] && OSRF_CONFIG=`find $BASEDIR -name osrf_config`
++OSRF_CONFIG=/usr/bin/osrf_config
+
+ [ -z "$OPT_CONFIG" ] && OPT_CONFIG=`$OSRF_CONFIG --sysconfdir`/opensrf_core.xml;
+ if [ ! -r "$OPT_CONFIG" ]; then
+diff -Nuar OpenSRF-1.0.7.orig/Makefile.am OpenSRF-1.0.7/Makefile.am
+--- OpenSRF-1.0.7.orig/Makefile.am 2008-10-27 05:10:21.000000000 +0000
++++ OpenSRF-1.0.7/Makefile.am 2009-11-10 08:19:16.190311593 +0000
+@@ -115,14 +115,14 @@
+ 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
++ cp @srcdir@/src/gateway/apachetools.h $(DESTDIR)@includedir@/opensrf/apachetools.h
+
+diff -Nuar OpenSRF-1.0.7.orig/src/gateway/Makefile.am OpenSRF-1.0.7/src/gateway/Makefile.am
+--- OpenSRF-1.0.7.orig/src/gateway/Makefile.am 2008-08-18 19:14:00.000000000 +0000
++++ OpenSRF-1.0.7/src/gateway/Makefile.am 2009-11-10 08:19:15.250311793 +0000
+@@ -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.7.orig/src/java/Makefile.am OpenSRF-1.0.7/src/java/Makefile.am
+--- OpenSRF-1.0.7.orig/src/java/Makefile.am 2008-07-17 18:15:09.000000000 +0000
++++ OpenSRF-1.0.7/src/java/Makefile.am 2009-11-10 08:19:15.250311793 +0000
+@@ -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.7.orig/src/libopensrf/Makefile.am OpenSRF-1.0.7/src/libopensrf/Makefile.am
+--- OpenSRF-1.0.7.orig/src/libopensrf/Makefile.am 2008-08-07 16:54:56.000000000 +0000
++++ OpenSRF-1.0.7/src/libopensrf/Makefile.am 2009-11-10 08:19:16.190311593 +0000
+@@ -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.7.orig/src/Makefile.am OpenSRF-1.0.7/src/Makefile.am
+--- OpenSRF-1.0.7.orig/src/Makefile.am 2008-11-04 03:04:24.000000000 +0000
++++ OpenSRF-1.0.7/src/Makefile.am 2009-11-10 08:19:16.190311593 +0000
+@@ -17,7 +17,7 @@
+ export OPENSRF = opensrf
+ export BINDIR = @bindir@
+ export LIBDIR = @libdir@
+-jsdir = $(LIBDIR)/javascript
++jsdir = $(datarootdir)/opensrf/javascript
+ export OSRF_JAVA_DEPSDIR = @OSRF_JAVA_DEPSDIR@
+ etcdir = $(ETCDIR)
+
+@@ -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'
+@@ -55,14 +55,14 @@
+ 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:
+- 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