diff --git a/Dockerfile b/Dockerfile index 0f7232a..c4783e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,12 +71,14 @@ RUN cd /build && tar jxf "${upname}_${upversion}.orig.tar.bz2" && \ mv debian "${upname}-${upversion}/" COPY asterisk-g72x-g729-ast11.install asterisk-g72x-g729-ast13.install \ asterisk-g72x-g729-ast16.install asterisk-g72x-g729-ast18.install \ + asterisk-g72x-g729-ast22.install \ compat rules source /build/${upname}-${upversion}/debian/ WORKDIR /build/${upname}-${upversion} # We'll use include-tars so we can build for multiple asterisk versions. # RUN printf "%s\n" "Package: asterisk asterisk-*" "Pin: version 1:11.*" "Pin-Priority: 600" \ # >/etc/apt/preferences.d/asterisk.pref +# TODO: 22 no available at the URL below RUN set -x && \ cd .. && for version in 18 16 13 11; do \ curl --fail -O https://junk.devs.nu/a/asterisk/asterisk-$version-include.tar.bz2 && \ diff --git a/asterisk-g72x-g729-ast22.install b/asterisk-g72x-g729-ast22.install new file mode 100644 index 0000000..30f452c --- /dev/null +++ b/asterisk-g72x-g729-ast22.install @@ -0,0 +1 @@ +tmp/modules-22/* usr/lib/asterisk/modules diff --git a/changelog b/changelog index 15337d3..8514e90 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,9 @@ +asterisk-g72x (1.4.3-0osso3+REL) stable; urgency=medium + + * Include asterisk 22 + + -- Dennis Kraus Fri, 23 Dec 2024 10:59:27 +0200 + asterisk-g72x (1.4.3-0osso3+REL) stable; urgency=medium * Fix build for bullseye. diff --git a/control b/control index 8a67ce4..d42ea80 100644 --- a/control +++ b/control @@ -14,6 +14,29 @@ Homepage: http://asterisk.hosting.lv/ Vcs-Browser: https://bitbucket.org/arkadi/asterisk-g72x/src Vcs-Hg: https://bitbucket.org/arkadi/asterisk-g72x +Package: asterisk-g72x-g729-ast22 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: + ${shlibs:Depends}, + ${misc:Depends} +Conflicts: + asterisk-g72x-g729-ast18, + asterisk-g72x-g729-ast16, + asterisk-g72x-g729-ast13, + asterisk-g72x-g729-ast11 +Recommends: asterisk (>= 1:22), asterisk (<< 1:17), asterisk-modules +Description: G.729 codec support for the Asterisk PBX + G.729 is a royalty-free narrow-band vocoder-based audio data + compression algorithm using a frame length of 10 milliseconds. + . + This package includes the G.729 codec driver (codec_g729.so) for + Asterisk PBX. + . + For more information about the Asterisk PBX, have a look at the Asterisk + package. + Package: asterisk-g72x-g729-ast18 Architecture: any Multi-Arch: same @@ -22,6 +45,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: + asterisk-g72x-g729-ast22, asterisk-g72x-g729-ast16, asterisk-g72x-g729-ast13, asterisk-g72x-g729-ast11 @@ -44,6 +68,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: + asterisk-g72x-g729-ast22, asterisk-g72x-g729-ast18, asterisk-g72x-g729-ast13, asterisk-g72x-g729-ast11 @@ -66,6 +91,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: + asterisk-g72x-g729-ast22, asterisk-g72x-g729-ast18, asterisk-g72x-g729-ast16, asterisk-g72x-g729-ast11 @@ -88,6 +114,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: + asterisk-g72x-g729-ast22, asterisk-g72x-g729-ast18, asterisk-g72x-g729-ast16, asterisk-g72x-g729-ast13 diff --git a/rules b/rules index 2d9eb1e..c12298c 100755 --- a/rules +++ b/rules @@ -27,6 +27,14 @@ override_dh_auto_configure: true override_dh_auto_build: + # Build for 22. + rm -f config.log + dh_auto_clean + dh_auto_configure -- --with-asterisk180 --with-bcg729 \ + --with-asterisk-includes=../asterisk-18/include \ + --libdir=$(AST_LIBDIR) + dh_auto_build "$@" + mkdir /tmp/modules-22 && mv .libs/codec_g729.so /tmp/modules-22/ # Build for 18. rm -f config.log dh_auto_clean