Module: sip-router
Branch: master
Commit: 2a046e5fd3c47bc7753190425b911b4114667563
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2a046e5…
Author: Peter Dunkley <peter.dunkley(a)crocodilertc.net>
Committer: Peter Dunkley <peter.dunkley(a)crocodilertc.net>
Date: Thu Oct 24 20:44:03 2013 +0100
pkg/kamailio/centos: added app_java to CentOS RPMs
---
pkg/kamailio/centos/6/README | 2 -
pkg/kamailio/centos/6/kamailio.spec | 61 ++++++++++++++++++++++++++--------
2 files changed, 46 insertions(+), 17 deletions(-)
diff --git a/pkg/kamailio/centos/6/README b/pkg/kamailio/centos/6/README
index bd8d32c..8d61c17 100644
--- a/pkg/kamailio/centos/6/README
+++ b/pkg/kamailio/centos/6/README
@@ -14,7 +14,6 @@ Note: If you need any of these modules you will need to find (and
possibly
Kamailio.
Ordered by module name:
-* app_java requires libgcj-4.7 (base contains libgcj-4.4.7)
* app_mono requires mono-devel-??? or higher (EPEL contains
mono-devel 2.4.3.1)
* db_cassandra requires thrift 0.6.1 or 0.7.0
@@ -23,7 +22,6 @@ Ordered by module name:
Ordered by unmet dependency:
* instantclient-sdk-10.2.0.3 db_oracle
-* libgcj-4.7 app_java
* mono-devel-??? or higher app_mono
* OSP Toolkit osp
* thrift 0.6.1 or 0.7.0 db_cassandra
diff --git a/pkg/kamailio/centos/6/kamailio.spec b/pkg/kamailio/centos/6/kamailio.spec
index 6546f05..18c4bf7 100644
--- a/pkg/kamailio/centos/6/kamailio.spec
+++ b/pkg/kamailio/centos/6/kamailio.spec
@@ -1,6 +1,6 @@
%define name kamailio
%define ver 4.1.0
-%define rel pre1.3%{dist}
+%define rel pre1.4%{dist}
@@ -19,8 +19,8 @@ Conflicts: kamailio-auth-ephemeral < %ver, kamailio-bdb < %ver
Conflicts: kamailio-carrierroute < %ver, kamailio-cpl < %ver
Conflicts: kamailio-dialplan < %ver, kamailio-dnssec < %ver
Conflicts: kamailio-geoip < %ver, kamailio-gzcompress < %ver
-Conflicts: kamailio-ims < %ver, kamailio-json < %ver, kamailio-lcr < %ver
-Conflicts: kamailio-ldap < %ver, kamailio-lua < %ver
+Conflicts: kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver
+Conflicts: kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lua < %ver
Conflicts: kamailio-memcached < %ver, kamailio-mysql < %ver
Conflicts: kamailio-outbound < %ver, kamailio-perl < %ver
Conflicts: kamailio-postgresql < %ver, kamailio-presence < %ver
@@ -137,6 +137,16 @@ BuildRequires: libxml2-devel
IMS modules and extensions module for Kamailio.
+%package java
+Summary: Java extensions for Kamailio.
+Group: System Environment/Daemons
+Requires: libgcj, java-1.6.0-openjdk, kamailio = %ver
+BuildRequires: libgcj-devel, java-1.6.0-openjdk-devel, ant
+
+%description java
+Java extensions for Kamailio.
+
+
%package json
Summary: json string handling and RPC modules for Kamailio.
Group: System Environment/Daemons
@@ -409,12 +419,16 @@ SIP/XMPP IM gateway for Kamailio.
make cfg prefix=/usr cfg_prefix=$RPM_BUILD_ROOT basedir=$RPM_BUILD_ROOT \
cfg_target=/%{_sysconfdir}/kamailio/ modules_dirs="modules"
make
-make every-module skip_modules="app_java app_mono db_cassandra \
- db_oracle iptrtpproxy jabber osp" \
- group_include="kstandard kautheph kberkeley kcarrierroute kcpl kdnssec \
- kgeoip kims kjson kldap klua kmemcached kmi_xmlrpc kmysql koutbound \
- kperl kpostgres kpresence kpurple kpython kradius kredis ksctp \
- ksnmpstats ksqlite ktls kunixodbc kutils kwebsocket kxml kxmpp"
+make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
+ jabber osp" \
+ group_include="kstandard kautheph kberkeley kcarrierroute kcpl \
+ kdnssec kgeoip kims kjava kjson kldap klua kmemcached kmi_xmlrpc \
+ kmysql koutbound kperl kpostgres kpresence kpurple kpython kradius \
+ kredis ksctp ksnmpstats ksqlite ktls kunixodbc kutils kwebsocket \
+ kxml kxmpp"
+cd modules/app_java/kamailio_java_folder/java
+ant
+cd ../../../..
make utils
@@ -423,12 +437,19 @@ make utils
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf
"$RPM_BUILD_ROOT"
make install
-make install-modules-all skip_modules="app_java app_mono db_cassandra \
- db_oracle iptrtpproxy jabber osp" \
- group_include="kstandard kautheph kberkeley kcarrierroute kcpl kdnssec \
- kgeoip kims kjson kldap klua kmemcached kmi_xmlrpc kmysql koutbound \
- kperl kpostgres kpresence kpurple kpython kradius kredis ksctp \
- ksnmpstats ksqlite ktls kunixodbc kutils kwebsocket kxml kxmpp"
+make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
+ iptrtpproxy jabber osp" \
+ group_include="kstandard kautheph kberkeley kcarrierroute kcpl \
+ kdnssec kgeoip kims kjava kjson kldap klua kmemcached kmi_xmlrpc \
+ kmysql koutbound kperl kpostgres kpresence kpurple kpython kradius \
+ kredis ksctp ksnmpstats ksqlite ktls kunixodbc kutils kwebsocket \
+ kxml kxmpp"
+
+mkdir -p $RPM_BUILD_ROOT/%{_libdir}/kamailio/java
+install -m644 modules/app_java/kamailio_java_folder/java/Kamailio.class \
+ $RPM_BUILD_ROOT/%{_libdir}/kamailio/java
+install -m644 modules/app_java/kamailio_java_folder/java/kamailio.jar \
+ $RPM_BUILD_ROOT/%{_libdir}/kamailio/java
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
install -m755 pkg/kamailio/centos/%{?centos}/kamailio.init \
@@ -837,6 +858,15 @@ fi
%{_libdir}/kamailio/modules/ims_usrloc_scscf.so
+%files java
+%defattr(-,root,root)
+%doc %{_docdir}/kamailio/modules/README.app_java
+%{_libdir}/kamailio/modules/app_java.so
+%dir %{_libdir}/kamailio/java
+%{_libdir}/kamailio/java/Kamailio.class
+%{_libdir}/kamailio/java/kamailio.jar
+
+
%files json
%defattr(-,root,root)
%doc %{_docdir}/kamailio/modules/README.json
@@ -1097,6 +1127,7 @@ fi
- Added new modules to other packages:
- ims_charging module to ims package
- Added new packages for new modules:
+ - app_java
- auth_ephemeral
- sctp (SCTP functionality moved from compile time in core to own module)
- Moved existing modules to different packages: