Skip to content

Commit

Permalink
pkg/kamailio/deb: kamailio-mongodb-modules [skip ci]
Browse files Browse the repository at this point in the history
(cherry picked from commit 84967d0)
  • Loading branch information
linuxmaniac committed Dec 11, 2017
1 parent cd0593e commit 875a2d8
Show file tree
Hide file tree
Showing 21 changed files with 129 additions and 20 deletions.
8 changes: 8 additions & 0 deletions pkg/kamailio/deb/debian/backports/jessie
Expand Up @@ -29,6 +29,14 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client
# no libssl-dev
sed -i -e '/libssl-dev/d' ${DIST}/control

# Mo mongodb
sed -i -e '/libmongoc-dev/d' -e '/^Package: kamailio-mongodb-modules/,/^$/d' \
${DIST}/control
sed -i -e 's/ mongodb[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mongodb/' ${DIST}/rules

wrap-and-sort -sat -d ${DIST}

# clean backports scripts
rm -rf ${DIST}/backports
exit 0
8 changes: 8 additions & 0 deletions pkg/kamailio/deb/debian/backports/precise
Expand Up @@ -66,6 +66,14 @@ sed -i -e '/librabbitmq-dev/d' \
sed -i -e 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ rabbitmq/' ${DIST}/rules

# Mo mongodb
sed -i -e '/libmongoc-dev/d' -e '/^Package: kamailio-mongodb-modules/,/^$/d' \
${DIST}/control
sed -i -e 's/ mongodb[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mongodb/' ${DIST}/rules

wrap-and-sort -sat -d ${DIST}

# clean backports scripts
rm -rf ${DIST}/backports
exit 0
8 changes: 6 additions & 2 deletions pkg/kamailio/deb/debian/backports/stretch
@@ -1,7 +1,5 @@
#!/bin/bash
#
# Hook for automatic backports at buildserver.net
#
# Target dist: Debian Stretch
DIST=stretch

Expand All @@ -20,6 +18,12 @@ sed -i -e '/libval-dev/d' -e '/^Package: kamailio-dnssec-modules/,/^$/d' \
sed -i -e 's/ dnssec[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ dnssec/' ${DIST}/rules

# libbson not in libmongoc
sed -i 's/libmongoc-dev/libbson-dev,\n libmongoc-dev/' \
${DIST}/control

wrap-and-sort -sat -d ${DIST}

# clean backports scripts
rm -rf ${DIST}/backports
exit 0
8 changes: 8 additions & 0 deletions pkg/kamailio/deb/debian/backports/trusty
Expand Up @@ -40,6 +40,14 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client
# no libssl-dev
sed -i -e '/libssl-dev/d' ${DIST}/control

# Mo mongodb
sed -i -e '/libmongoc-dev/d' -e '/^Package: kamailio-mongodb-modules/,/^$/d' \
${DIST}/control
sed -i -e 's/ mongodb[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mongodb/' ${DIST}/rules

wrap-and-sort -sat -d ${DIST}

# clean backports scripts
rm -rf ${DIST}/backports
exit 0
8 changes: 8 additions & 0 deletions pkg/kamailio/deb/debian/backports/wheezy
Expand Up @@ -66,6 +66,14 @@ sed -i -e '/librabbitmq-dev/d' \
sed -i -e 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ rabbitmq/' ${DIST}/rules

# Mo mongodb
sed -i -e '/libmongoc-dev/d' -e '/^Package: kamailio-mongodb-modules/,/^$/d' \
${DIST}/control
sed -i -e 's/ mongodb[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mongodb/' ${DIST}/rules

wrap-and-sort -sat -d ${DIST}

# clean backports scripts
rm -rf ${DIST}/backports
exit 0
18 changes: 18 additions & 0 deletions pkg/kamailio/deb/debian/control
Expand Up @@ -46,6 +46,7 @@ Build-Depends:
libval-dev,
libxml2-dev,
libxmlrpc-c3-dev,
libmongoc-dev,
openssl,
pkg-config,
python,
Expand Down Expand Up @@ -759,6 +760,23 @@ Description: systemd logging modules for the Kamailio SIP server
This package provides logging to systemd journal directly from the
Kamailio configuration and routing scripts.

Package: kamailio-mongodb-modules
Architecture: linux-any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
kamailio (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: mongodb modules for the Kamailio SIP server
Kamailio is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, Kamailio can handle thousands calls
per second even on low-budget hardware.
.
This package provides the mongodb database driver and non-db connector for
Kamailio.

Package: kamailio-extra-modules
Architecture: linux-any
Multi-Arch: same
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/debian/rules
Expand Up @@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
snmpstats carrierroute xmpp cpl redis python geoip\
sqlite json mono ims sctp java \
tls outbound websocket autheph dnssec kazoo cnxcc \
erlang systemd rabbitmq
erlang systemd mongodb rabbitmq

# module groups to be packaged onto kamailio-extra-modules
EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Expand Down
6 changes: 3 additions & 3 deletions pkg/kamailio/deb/jessie/control
Expand Up @@ -8,7 +8,6 @@ Uploaders:
Build-Depends:
bison,
debhelper (>= 9),
libmysqlclient-dev,
dh-systemd (>= 1.5),
docbook-xml,
dpkg-dev (>= 1.16.1.1),
Expand All @@ -21,6 +20,7 @@ Build-Depends:
libev-dev,
libevent-dev,
libexpat1-dev,
libfreeradius-client-dev,
libgeoip-dev (>= 1.4.5),
libhiredis-dev (>= 0.10.0),
libjansson-dev,
Expand All @@ -29,12 +29,12 @@ Build-Depends:
liblua5.1-0-dev,
libmemcached-dev,
libmono-2.0-dev,
libmysqlclient-dev,
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libpq-dev,
librabbitmq-dev,
libfreeradius-client-dev,
libreadline-dev,
libsasl2-dev,
libsctp-dev,
Expand Down Expand Up @@ -275,8 +275,8 @@ Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
mysql-client | virtual-mysql-client,
kamailio (= ${binary:Version}),
mysql-client | virtual-mysql-client,
${misc:Depends},
${shlibs:Depends},
Description: MySQL database connectivity module for Kamailio
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/jessie/rules
Expand Up @@ -27,7 +27,7 @@ EXCLUDED_MODULES=
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
# they will be excluded from compile and install of all
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc mongodb

# module groups that are packaged in seperate packages
# (with the name kamailio-$(group_name)-modules)
Expand Down
4 changes: 2 additions & 2 deletions pkg/kamailio/deb/precise/control
Expand Up @@ -8,7 +8,6 @@ Uploaders:
Build-Depends:
bison,
debhelper (>= 9),
libmysqlclient-dev,
docbook-xml,
dpkg-dev (>= 1.16.1.1),
erlang-dev,
Expand All @@ -28,6 +27,7 @@ Build-Depends:
liblua5.1-0-dev,
libmemcached-dev,
libmono-2.0-dev,
libmysqlclient-dev,
libncurses5-dev,
libpcre3-dev,
libperl-dev,
Expand Down Expand Up @@ -271,8 +271,8 @@ Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
mysql-client | virtual-mysql-client,
kamailio (= ${binary:Version}),
mysql-client | virtual-mysql-client,
${misc:Depends},
${shlibs:Depends},
Description: MySQL database connectivity module for Kamailio
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/precise/rules
Expand Up @@ -26,7 +26,7 @@ EXCLUDED_MODULES=
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
# they will be excluded from compile and install of all
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq mongodb

# module groups that are packaged in seperate packages
# (with the name kamailio-$(group_name)-modules)
Expand Down
18 changes: 18 additions & 0 deletions pkg/kamailio/deb/sid/control
Expand Up @@ -44,6 +44,7 @@ Build-Depends:
libsystemd-dev,
libunistring-dev,
libxml2-dev,
libmongoc-dev,
openssl,
pkg-config,
python,
Expand Down Expand Up @@ -741,6 +742,23 @@ Description: systemd logging modules for the Kamailio SIP server
This package provides logging to systemd journal directly from the
Kamailio configuration and routing scripts.

Package: kamailio-mongodb-modules
Architecture: linux-any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
kamailio (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: mongodb modules for the Kamailio SIP server
Kamailio is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, Kamailio can handle thousands calls
per second even on low-budget hardware.
.
This package provides the mongodb database driver and non-db connector for
Kamailio.

Package: kamailio-extra-modules
Architecture: linux-any
Multi-Arch: same
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/sid/rules
Expand Up @@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
snmpstats carrierroute xmpp cpl redis python geoip\
sqlite json mono ims sctp java \
tls outbound websocket autheph kazoo cnxcc \
erlang systemd rabbitmq
erlang systemd mongodb rabbitmq

# module groups to be packaged onto kamailio-extra-modules
EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Expand Down
19 changes: 19 additions & 0 deletions pkg/kamailio/deb/stretch/control
Expand Up @@ -15,6 +15,7 @@ Build-Depends:
erlang-dev,
flex,
gcj-jdk,
libbson-dev,
libconfuse-dev,
libcurl4-openssl-dev,
libdb-dev (>= 4.6.19),
Expand All @@ -28,6 +29,7 @@ Build-Depends:
libldap2-dev,
liblua5.1-0-dev,
libmemcached-dev,
libmongoc-dev,
libmono-2.0-dev,
libncurses5-dev,
libpcre3-dev,
Expand Down Expand Up @@ -741,6 +743,23 @@ Description: systemd logging modules for the Kamailio SIP server
This package provides logging to systemd journal directly from the
Kamailio configuration and routing scripts.

Package: kamailio-mongodb-modules
Architecture: linux-any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
kamailio (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: mongodb modules for the Kamailio SIP server
Kamailio is a very fast and flexible SIP (RFC3261)
server. Written entirely in C, Kamailio can handle thousands calls
per second even on low-budget hardware.
.
This package provides the mongodb database driver and non-db connector for
Kamailio.

Package: kamailio-extra-modules
Architecture: linux-any
Multi-Arch: same
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/stretch/rules
Expand Up @@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
snmpstats carrierroute xmpp cpl redis python geoip\
sqlite json mono ims sctp java \
tls outbound websocket autheph kazoo cnxcc \
erlang systemd rabbitmq
erlang systemd mongodb rabbitmq

# module groups to be packaged onto kamailio-extra-modules
EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Expand Down
6 changes: 3 additions & 3 deletions pkg/kamailio/deb/trusty/control
Expand Up @@ -8,7 +8,6 @@ Uploaders:
Build-Depends:
bison,
debhelper (>= 9),
libmysqlclient-dev,
docbook-xml,
dpkg-dev (>= 1.16.1.1),
erlang-dev,
Expand All @@ -20,6 +19,7 @@ Build-Depends:
libev-dev,
libevent-dev,
libexpat1-dev,
libfreeradius-client-dev,
libgeoip-dev (>= 1.4.5),
libhiredis-dev (>= 0.10.0),
libjansson-dev,
Expand All @@ -28,12 +28,12 @@ Build-Depends:
liblua5.1-0-dev,
libmemcached-dev,
libmono-2.0-dev,
libmysqlclient-dev,
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libpq-dev,
librabbitmq-dev,
libfreeradius-client-dev,
libreadline-dev,
libsasl2-dev,
libsctp-dev,
Expand Down Expand Up @@ -273,8 +273,8 @@ Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
mysql-client | virtual-mysql-client,
kamailio (= ${binary:Version}),
mysql-client | virtual-mysql-client,
${misc:Depends},
${shlibs:Depends},
Description: MySQL database connectivity module for Kamailio
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/trusty/rules
Expand Up @@ -27,7 +27,7 @@ EXCLUDED_MODULES=
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
# they will be excluded from compile and install of all
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd mongodb

# module groups that are packaged in seperate packages
# (with the name kamailio-$(group_name)-modules)
Expand Down
4 changes: 2 additions & 2 deletions pkg/kamailio/deb/wheezy/control
Expand Up @@ -8,7 +8,6 @@ Uploaders:
Build-Depends:
bison,
debhelper (>= 9),
libmysqlclient-dev,
docbook-xml,
dpkg-dev (>= 1.16.1.1),
erlang-dev,
Expand All @@ -28,6 +27,7 @@ Build-Depends:
liblua5.1-0-dev,
libmemcached-dev,
libmono-2.0-dev,
libmysqlclient-dev,
libncurses5-dev,
libpcre3-dev,
libperl-dev,
Expand Down Expand Up @@ -271,8 +271,8 @@ Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
mysql-client | virtual-mysql-client,
kamailio (= ${binary:Version}),
mysql-client | virtual-mysql-client,
${misc:Depends},
${shlibs:Depends},
Description: MySQL database connectivity module for Kamailio
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/wheezy/rules
Expand Up @@ -26,7 +26,7 @@ EXCLUDED_MODULES=
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
# they will be excluded from compile and install of all
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq mongodb

# module groups that are packaged in seperate packages
# (with the name kamailio-$(group_name)-modules)
Expand Down

0 comments on commit 875a2d8

Please sign in to comment.