소스 검색

pkg/kamailio/deb: fix sid build

* no python2 and dh-systemd package available

(cherry picked from commit 986b9bea258864bf40606afe9761dc17dead6476)
(cherry picked from commit 32cce91f3e6514e9f99f26d2c0dabc56281b034c)
Victor Seva 3 년 전
부모
커밋
2f7350d828
3개의 변경된 파일12개의 추가작업 그리고 22개의 파일을 삭제
  1. 10 0
      pkg/kamailio/deb/debian/backports/sid
  2. 0 20
      pkg/kamailio/deb/sid/control
  3. 2 2
      pkg/kamailio/deb/sid/rules

+ 10 - 0
pkg/kamailio/deb/debian/backports/sid

@@ -25,6 +25,16 @@ sed -i -e '/^export JAVA_HOME/d' ${DIST}/rules
 sed -i -e 's/ java[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXCLUDED_MODULES=/s/$/ java/' ${DIST}/rules
 
+# no dh-systemd
+sed -i -e '/dh-systemd/d' ${DIST}/control
+
+# no python2
+sed -i -e '/^ python,/d' -e '/python-dev/d' \
+  -e '/^Package: kamailio-python-modules/,/^$/d' \
+  ${DIST}/control
+sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
+
 wrap-and-sort -sat -d ${DIST}
 
 # clean backports scripts

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

@@ -9,7 +9,6 @@ Build-Depends:
  bison,
  debhelper (>= 9),
  default-libmysqlclient-dev,
- dh-systemd (>= 1.5),
  docbook-xml,
  dpkg-dev (>= 1.16.1.1),
  erlang-dev,
@@ -49,8 +48,6 @@ Build-Depends:
  libxml2-dev,
  openssl,
  pkg-config,
- python,
- python-dev,
  python3,
  python3-dev,
  ruby-dev,
@@ -260,23 +257,6 @@ Description: The app_mono module for the Kamailio SIP server
  This package provides the app_mono module, an extension allowing to
  execute embedded Mono applications within the Kamailio SIP routing script.
 
-Package: kamailio-python-modules
-Architecture: linux-any
-Multi-Arch: same
-Pre-Depends:
- ${misc:Pre-Depends},
-Depends:
- kamailio (= ${binary:Version}),
- ${misc:Depends},
- ${shlibs:Depends},
-Description: The app_python module 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 app_python module, an extension allowing to
- execute embedded Python applications within the Kamailio SIP routing script.
-
 Package: kamailio-python3-modules
 Architecture: linux-any
 Multi-Arch: same

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

@@ -21,7 +21,7 @@ include /usr/share/dpkg/buildflags.mk
 export RADCLI=1
 
 # modules not in the "main" kamailio package
-EXCLUDED_MODULES= java
+EXCLUDED_MODULES= java python
 
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
@@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
-			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
+			   snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
 			   sqlite json mono ruby ims sctp \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   erlang systemd phonenum mongodb rabbitmq python3 mqtt