Skip to content

Commit

Permalink
add rest_client specs for debian, fedora and rpms
Browse files Browse the repository at this point in the history
Closes #587
  • Loading branch information
razvancrainea committed Aug 5, 2015
1 parent b25164e commit 3dfc83c
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 16 deletions.
10 changes: 10 additions & 0 deletions packaging/debian/control
Expand Up @@ -381,3 +381,13 @@ Description: SCTP transport module for OpenSIPS
per second even on low-budget hardware.
.
This package provides the SCTP support for OpenSIPS.

Package: opensips-restclient-module
Architecture: any
Depends: opensips (= ${binary:Version}), libcurl4-gnutls-dev
Description: REST client module for OpenSIPS
OpenSIPS is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, OpenSIPS can handle thousands calls
per second even on low-budget hardware.
.
This package provides the REST client support for OpenSIPS.
15 changes: 15 additions & 0 deletions packaging/fedora/opensips.spec
Expand Up @@ -734,6 +734,14 @@ This modules is a gateway between Openser and a jabber server. It enables
the exchange of instant messages between SIP clients and XMPP(jabber)
clients.

%package rest_client
Summary: REST client for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}

%description rest_client
This modules consists of a REST client for OpenSIPS.

%prep
%setup -q -n %{name}-%{version}-tls

Expand Down Expand Up @@ -1358,7 +1366,14 @@ chown -R %{name}:%{name} %{_sysconfdir}/%{name}
%{_libdir}/opensips/modules/xmpp.so
%doc docdir/README.xmpp

%files rest_client
%{_libdir}/opensips/modules/rest_client.so
%doc docdir/README.rest_client

%changelog
* Wed Aug 05 2015 Razvan Crainea <razvan@opensips.org> - 2.1.0-2
- Add rest_client specs

* Sat Mar 14 2015 Nick Altmann <nick.altmann@gmail.com> - 2.1.0-1
- Specification updated for opensips 2.1
- Removed packages: auth_diameter, tlsops
Expand Down
50 changes: 34 additions & 16 deletions packaging/rpm/opensips.spec.CentOS
Expand Up @@ -28,8 +28,8 @@ provides full control over the server's behaviour. It's modular
architecture allows only required functionality to be loaded.
Currently the following modules are available: digest authentication,
CPL scripts, instant messaging, MySQL and UNIXODBC support, a presence agent,
radius authentication, record routing, an SMS gateway, a jabber gateway, a
transaction and dialog module, OSP module, statistics support,
radius authentication, record routing, an SMS gateway, a jabber gateway, a
transaction and dialog module, OSP module, statistics support,
registrar and user location, SNMP, SIMPLE Presence and Perl programming
interface.

Expand Down Expand Up @@ -133,7 +133,7 @@ BuildRequires: openldap-devel
%description ldap
The LDAP module implements an LDAP search interface for OpenSIPS.
It exports script functions to perform an LDAP search operation and to store the search results as OpenSIPS AVPs.
This allows for using LDAP directory data in the OpenSIPS SIP message routing script.
This allows for using LDAP directory data in the OpenSIPS SIP message routing script.


%package identity
Expand All @@ -153,7 +153,7 @@ Requires: opensips = %ver
BuildRequires: pcre-devel

%description regex
This module offers matching operations against regular expressions using the powerful PCRE library.
This module offers matching operations against regular expressions using the powerful PCRE library.


%package mmgeoip
Expand All @@ -174,7 +174,7 @@ Requires: opensips = %ver
BuildRequires: json-c-devel

%description json
This module introduces a new type of variable that provides both serialization and de-serialization from JSON format.
This module introduces a new type of variable that provides both serialization and de-serialization from JSON format.


%package carrierroute
Expand All @@ -196,7 +196,7 @@ BuildRequires: libconfuse-devel libmemcached-devel
%description cachedb_memcached
This module is an implementation of a cache system designed to work with a memcached server.
It uses libmemcached client library to connect to several memcached servers that store data.
It registers the three functions for storing, fetching and removing a value to the core memcache management interface.
It registers the three functions for storing, fetching and removing a value to the core memcache management interface.


%package cachedb_couchbase
Expand All @@ -208,7 +208,7 @@ BuildRequires: libcouchbase-devel
%description cachedb_couchbase
This module is an implementation of a cache system designed to work with a Couchbase server.
It uses the libcouchbase client library to connect to the server instance,
It uses the Key-Value interface exported from the core.
It uses the Key-Value interface exported from the core.


%package event_rabbitmq
Expand All @@ -219,7 +219,7 @@ BuildRequires: librabbitmq-devel

%description event_rabbitmq
This module provides the implementation of a RabbitMQ client for the Event Interface.
It is used to send AMQP messages to a RabbitMQ server each time the Event Interface triggers an event subscribed for.
It is used to send AMQP messages to a RabbitMQ server each time the Event Interface triggers an event subscribed for.


%package cachedb_redis
Expand All @@ -232,7 +232,7 @@ BuildRequires: hiredis-devel
This module is an implementation of a cache system designed to work with a Redis server.
It uses hiredis client library to connect to either a single Redis server instance,
or to a Redis Server inside a Redis Cluster.
It uses the Key-Value interface exported from the core.
It uses the Key-Value interface exported from the core.


%package db_berkeley
Expand All @@ -242,7 +242,7 @@ Requires: opensips = %ver
BuildRequires: db4-devel

%description db_berkeley
This is a module which integrates the Berkeley DB into OpenSIPS. It implements the DB API defined in OpenSIPS.
This is a module which integrates the Berkeley DB into OpenSIPS. It implements the DB API defined in OpenSIPS.


%package db_oracle
Expand All @@ -257,7 +257,7 @@ This is a module which provides Oracle connectivity for OpenSIPS.
It implements the DB API defined in OpenSIPS.
If you want to use the nathelper module,
or any other modules that calls the get_all_ucontacts API export from usrloc,
then you need to set the DORACLE_USRLOC define in the Makefile.defs file before compilation.
then you need to set the DORACLE_USRLOC define in the Makefile.defs file before compilation.


%package mi_xmlrpc
Expand All @@ -268,7 +268,7 @@ BuildRequires: xmlrpc-c-devel

%description mi_xmlrpc
This module implements a xmlrpc server that handles xmlrpc requests and generates xmlrpc responses.
When a xmlrpc message is received a default method is executed.
When a xmlrpc message is received a default method is executed.


%package mi_xmlrpc_ng
Expand All @@ -279,7 +279,7 @@ BuildRequires: xmlrpc-c-devel

%description mi_xmlrpc_ng
This module implements a xmlrpc_ng server that handles xmlrpc_ng requests and generates xmlrpc_ng responses.
When a xmlrpc_ng message is received a default method is executed.
When a xmlrpc_ng message is received a default method is executed.


%package db_http
Expand All @@ -291,7 +291,7 @@ BuildRequires: libcurl-devel libmicrohttpd-devel
%description db_http
This module provides access to a database that is implemented as a HTTP server.
It may be used in special cases where traversing firewalls is a problem,
or where data encryption is required.
or where data encryption is required.

%package cachedb_cassandra
Summary: Cassandra connector
Expand Down Expand Up @@ -369,6 +369,15 @@ The opensips-tlsops package implements TLS related functions to use in the
routing script, and exports pseudo variables with certificate and TLS
parameters.

%package rest_client
Summary: opensips rest client implementation.
Group: System Environment/Daemons
Requires: opensips = %ver
BuildRequires: libcurl-devel

%description rest_client
This module provides REST client capabilities for OpenSIPS to query a REST
server.


%prep
Expand All @@ -381,7 +390,7 @@ if [ "$ARCH" == "x86_64" ]; then
else
ORACLIENT=
fi

make all exclude_modules="" ORAVERSION=11.2/client$ORACLIENT cfg-target=%{_sysconfdir}/opensips/


Expand All @@ -392,7 +401,7 @@ make install exclude_modules="" \
basedir=$RPM_BUILD_ROOT \
prefix=/usr \
cfg-prefix=$RPM_BUILD_ROOT \
cfg-target=/%{_sysconfdir}/opensips/
cfg-target=/%{_sysconfdir}/opensips/

mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d
install -m755 $RPM_SOURCE_DIR/opensips.init \
Expand Down Expand Up @@ -910,8 +919,17 @@ fi

%{_libdir}/opensips/modules/tlsops.so

%files rest_client
%defattr(-,root,root,-)
%doc %{_docdir}/opensips/README.rest_client

%{_libdir}/opensips/modules/rest_client.so


%changelog
* Wed Aug 05 2015 Razvan Crainea <razvan@opensips.org>
- Add rest_client specs

* Sun Apr 13 2014 Fabrizio Picconi <fabrizio.picconi@tiscali.it>
- Fix x64_86 compilation problems

Expand Down

0 comments on commit 3dfc83c

Please sign in to comment.