Skip to content

Commit

Permalink
Add Asterisk 22 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Kraus committed Dec 23, 2024
1 parent 9a2396f commit dd09404
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
1 change: 1 addition & 0 deletions asterisk-g72x-g729-ast22.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tmp/modules-22/* usr/lib/asterisk/modules
6 changes: 6 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
asterisk-g72x (1.4.3-0osso3+REL) stable; urgency=medium

* Include asterisk 22

-- Dennis Kraus <[email protected]> Fri, 23 Dec 2024 10:59:27 +0200

asterisk-g72x (1.4.3-0osso3+REL) stable; urgency=medium

* Fix build for bullseye.
Expand Down
27 changes: 27 additions & 0 deletions control
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd09404

Please sign in to comment.