Prechádzať zdrojové kódy

pkg/kamailio/deb: add kamailio-systemd-modules package

Victor Seva 9 rokov pred
rodič
commit
f34da24217

+ 6 - 0
pkg/kamailio/deb/debian/backports/precise

@@ -43,6 +43,12 @@ sed -i -e '/^Package: kamailio-cnxcc-modules/,/^$/d' ${DIST}/control
 sed -i -e 's/ cnxcc[ ,$]*/ /' ${DIST}/rules
 sed -i -e 's/ cnxcc[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ cnxcc/' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ cnxcc/' ${DIST}/rules
 
 
+# no systemd module
+sed -i -e '/libsystemd-dev/d' -e '/^Package: kamailio-systemd-modules/,/^$/d' \
+  ${DIST}/control
+sed -i -e 's/ systemd[ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ systemd/' ${DIST}/rules
+
 # clean backports scripts
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 7 - 0
pkg/kamailio/deb/debian/backports/squeeze

@@ -95,6 +95,13 @@ sed -i -e 's/ jansson[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ jansson/' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ jansson/' ${DIST}/rules
 sed -i -e 's/ jansson[ ,$]*//' ${DIST}/control
 sed -i -e 's/ jansson[ ,$]*//' ${DIST}/control
 sed -i -e 's/janssonrpc-c//'  ${DIST}/control
 sed -i -e 's/janssonrpc-c//'  ${DIST}/control
+
+# no systemd module
+sed -i -e '/libsystemd-dev/d' -e '/^Package: kamailio-systemd-modules/,/^$/d' \
+  ${DIST}/control
+sed -i -e 's/ systemd[ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ systemd/' ${DIST}/rules
+
 # clean backports scripts
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 7 - 1
pkg/kamailio/deb/debian/backports/trusty

@@ -15,7 +15,7 @@ rm ${DIST}/kamailio.service
 
 
 # No mi_xmlrpc module
 # No mi_xmlrpc module
 sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
 sed -i -e '/libxmlrpc-c3-dev/d' -e '/^Package: kamailio-xmlrpc-modules/,/^$/d' \
-	${DIST}/control
+  ${DIST}/control
 sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
 sed -i -e 's/ mi_xmlrpc[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
 
 
@@ -23,6 +23,12 @@ sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ mi_xmlrpc/' ${DIST}/rules
 sed -i 's/libradcli-dev/libfreeradius-client-dev/' ${DIST}/control
 sed -i 's/libradcli-dev/libfreeradius-client-dev/' ${DIST}/control
 sed -i -e 's/RADCLI/FREERADIUS/' ${DIST}/rules
 sed -i -e 's/RADCLI/FREERADIUS/' ${DIST}/rules
 
 
+# no systemd module
+sed -i -e '/libsystemd-dev/d' -e '/^Package: kamailio-systemd-modules/,/^$/d' \
+  ${DIST}/control
+sed -i -e 's/ systemd[ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ systemd/' ${DIST}/rules
+
 # clean backports scripts
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 6 - 0
pkg/kamailio/deb/debian/backports/wheezy

@@ -49,6 +49,12 @@ sed -i -e '/^Package: kamailio-cnxcc-modules/,/^$/d' ${DIST}/control
 sed -i -e 's/ cnxcc[ ,$]*/ /' ${DIST}/rules
 sed -i -e 's/ cnxcc[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ cnxcc/' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ cnxcc/' ${DIST}/rules
 
 
+# no systemd module
+sed -i -e '/libsystemd-dev/d' -e '/^Package: kamailio-systemd-modules/,/^$/d' \
+  ${DIST}/control
+sed -i -e 's/ systemd[ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ systemd/' ${DIST}/rules
+
 # clean backports scripts
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 14 - 0
pkg/kamailio/deb/debian/control

@@ -641,6 +641,20 @@ Description: erlang modules for Kamailio
  This module provides interact with Erlang node. The module allows sending,
  This module provides interact with Erlang node. The module allows sending,
  receiving Erlang messages and RPC calls between each other.
  receiving Erlang messages and RPC calls between each other.
 
 
+Package: kamailio-systemd-modules
+Architecture: linux-any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: kamailio (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: systemd logging modules for Kamailio
+ Kamailio is a very fast and flexible SIP (RFC3261)
+ proxy server. Written entirely in C, Kamailio can handle thousands calls
+ per second even on low-budget hardware.
+ .
+ This module provides logging to systemd journal.
+
 Package: kamailio-extra-modules
 Package: kamailio-extra-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
pkg/kamailio/deb/debian/rules

@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   sqlite json mono ims sctp java \
 			   sqlite json mono ims sctp java \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
-			   erlang
+			   erlang systemd
 
 
 # module groups to be packaged onto kamailio-extra-modules
 # module groups to be packaged onto kamailio-extra-modules
 EXTRA_GROUPS=gzcompress uuid ev jansson
 EXTRA_GROUPS=gzcompress uuid ev jansson

+ 14 - 0
pkg/kamailio/deb/jessie/control

@@ -640,6 +640,20 @@ Description: erlang modules for Kamailio
  This module provides interact with Erlang node. The module allows sending,
  This module provides interact with Erlang node. The module allows sending,
  receiving Erlang messages and RPC calls between each other.
  receiving Erlang messages and RPC calls between each other.
 
 
+Package: kamailio-systemd-modules
+Architecture: linux-any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: kamailio (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: systemd logging modules for Kamailio
+ Kamailio is a very fast and flexible SIP (RFC3261)
+ proxy server. Written entirely in C, Kamailio can handle thousands calls
+ per second even on low-budget hardware.
+ .
+ This module provides logging to systemd journal.
+
 Package: kamailio-extra-modules
 Package: kamailio-extra-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
pkg/kamailio/deb/jessie/rules

@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   sqlite json mono ims sctp java \
 			   sqlite json mono ims sctp java \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
-			   erlang
+			   erlang systemd
 
 
 # module groups to be packaged onto kamailio-extra-modules
 # module groups to be packaged onto kamailio-extra-modules
 EXTRA_GROUPS=gzcompress uuid ev jansson
 EXTRA_GROUPS=gzcompress uuid ev jansson

+ 1 - 1
pkg/kamailio/deb/precise/rules

@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # they will be excluded from compile and install of all
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd
 
 
 # module groups that are packaged in seperate packages
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (with the name kamailio-$(group_name)-modules)

+ 14 - 0
pkg/kamailio/deb/sid/control

@@ -640,6 +640,20 @@ Description: erlang modules for Kamailio
  This module provides interact with Erlang node. The module allows sending,
  This module provides interact with Erlang node. The module allows sending,
  receiving Erlang messages and RPC calls between each other.
  receiving Erlang messages and RPC calls between each other.
 
 
+Package: kamailio-systemd-modules
+Architecture: linux-any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: kamailio (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: systemd logging modules for Kamailio
+ Kamailio is a very fast and flexible SIP (RFC3261)
+ proxy server. Written entirely in C, Kamailio can handle thousands calls
+ per second even on low-budget hardware.
+ .
+ This module provides logging to systemd journal.
+
 Package: kamailio-extra-modules
 Package: kamailio-extra-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
pkg/kamailio/deb/sid/rules

@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   sqlite json mono ims sctp java \
 			   sqlite json mono ims sctp java \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
-			   erlang
+			   erlang systemd
 
 
 # module groups to be packaged onto kamailio-extra-modules
 # module groups to be packaged onto kamailio-extra-modules
 EXTRA_GROUPS=gzcompress uuid ev jansson
 EXTRA_GROUPS=gzcompress uuid ev jansson

+ 1 - 1
pkg/kamailio/deb/squeeze/rules

@@ -24,7 +24,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # they will be excluded from compile and install of all
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy java dnssec sctp purple redis mono kazoo cnxcc jansson
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy java dnssec sctp purple redis mono kazoo cnxcc jansson systemd
 
 
 # module groups that are packaged in seperate packages
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (with the name kamailio-$(group_name)-modules)

+ 14 - 0
pkg/kamailio/deb/stretch/control

@@ -640,6 +640,20 @@ Description: erlang modules for Kamailio
  This module provides interact with Erlang node. The module allows sending,
  This module provides interact with Erlang node. The module allows sending,
  receiving Erlang messages and RPC calls between each other.
  receiving Erlang messages and RPC calls between each other.
 
 
+Package: kamailio-systemd-modules
+Architecture: linux-any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: kamailio (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: systemd logging modules for Kamailio
+ Kamailio is a very fast and flexible SIP (RFC3261)
+ proxy server. Written entirely in C, Kamailio can handle thousands calls
+ per second even on low-budget hardware.
+ .
+ This module provides logging to systemd journal.
+
 Package: kamailio-extra-modules
 Package: kamailio-extra-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
pkg/kamailio/deb/stretch/rules

@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   snmpstats carrierroute xmpp cpl redis python geoip\
 			   sqlite json mono ims sctp java \
 			   sqlite json mono ims sctp java \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
 			   purple tls outbound websocket autheph dnssec kazoo cnxcc \
-			   erlang
+			   erlang systemd
 
 
 # module groups to be packaged onto kamailio-extra-modules
 # module groups to be packaged onto kamailio-extra-modules
 EXTRA_GROUPS=gzcompress uuid ev jansson
 EXTRA_GROUPS=gzcompress uuid ev jansson

+ 1 - 1
pkg/kamailio/deb/trusty/rules

@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # 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 systemd
 
 
 # module groups that are packaged in seperate packages
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (with the name kamailio-$(group_name)-modules)

+ 1 - 1
pkg/kamailio/deb/wheezy/rules

@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # they will be excluded from compile and install of all
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy purple mi_xmlrpc dnssec kazoo cnxcc
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy purple mi_xmlrpc dnssec kazoo cnxcc systemd
 
 
 # module groups that are packaged in seperate packages
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (with the name kamailio-$(group_name)-modules)