Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asterisk: Bump all packages #99961

Merged
merged 1 commit into from
Oct 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 23 additions & 46 deletions pkgs/servers/asterisk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ let
./runtime-vardirs.patch
];

# Disable MD5 verification for pjsip
postPatch = ''
sed -i 's|$(verify_tarball)|true|' third-party/pjproject/Makefile
echo "PJPROJECT_CONFIG_OPTS += --prefix=$out" >> third-party/pjproject/Makefile.rules
'';

src = fetchurl {
Expand All @@ -51,6 +50,7 @@ let

chmod -w externals_cache
'';

configureFlags = [
"--libdir=\${out}/lib"
"--with-lua=${lua}/lib"
Expand All @@ -68,6 +68,7 @@ let
postInstall = ''
# Install sample configuration files for this version of Asterisk
make samples
${lib.optionalString (lib.versionAtLeast version "17.0.0") "make install-headers"}
'';

meta = with stdenv.lib; {
Expand All @@ -78,14 +79,9 @@ let
};
};

pjproject_2_7_1 = fetchurl {
ajs124 marked this conversation as resolved.
Show resolved Hide resolved
url = "https://www.pjsip.org/release/2.7.1/pjproject-2.7.1.tar.bz2";
sha256 = "09ii5hgl5s7grx4fiimcl3s77i385h7b3kwpfa2q0arbl1ibryjr";
};

pjproject_2_8 = fetchurl {
url = "https://www.pjsip.org/release/2.8/pjproject-2.8.tar.bz2";
sha256 = "0ybg0113rp3fk49rm2v0pcgqb28h3dv1pdy9594w2ggiz7bhngah";
pjproject_2_10 = fetchurl {
url = "https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.10/pjproject-2.10.tar.bz2";
sha256 = "14qmddinm4bv51rl0wwg5133r64x5bd6inwbx27ahb2n0151m2if";
};

mp3-202 = fetchsvn {
Expand All @@ -95,61 +91,42 @@ let
};

in rec {
# Supported releases (as of 2018-11-20).
# Supported releases (as of 2020-10-07).
# Source: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
# Exact version can be found at https://www.asterisk.org/downloads/asterisk/all-asterisk-versions/
#
# Series Type Rel. Date Sec. Fixes EOL
# 13.x LTS 2014-10-24 2020-10-24 2021-10-24
# 15.x Standard 2017-10-03 2018-10-03 2019-10-03
asterisk-stable = asterisk_15;
# 16.x LTS 2018-10-09 2022-10-09 2023-10-09
asterisk-lts = asterisk_16;
asterisk = asterisk_16;
# 17.x Standard 2019-10-28 2020-10-28 2021-10-28
asterisk-stable = asterisk_17;
asterisk = asterisk_17;

asterisk_13 = common {
version = "13.24.1";
sha256 = "1mclpk7knqjl6jr6mpvhb17wsjah4bk2xqhb3shpx1j4z19xkmm3";
version = "13.36.0";
sha256 = "1p41xrxmzpqmjgvrl7f4vbigiqpmg60fd8bqg5rxbf4lxzpvknnp";
externals = {
"externals_cache/pjproject-2.7.1.tar.bz2" = pjproject_2_7_1;
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
"addons/mp3" = mp3-202;
};
};

asterisk_15 = common {
version = "15.7.0";
sha256 = "1ngs73h4lz94b4f3shy1yb5laqy0z03zf451xa1nihrgp1h3ilyv";
asterisk_16 = common {
version = "16.13.0";
sha256 = "01nja8hd6jk1966awc2vcz3hl46pvhi797k515q87vzmap1khlp9";
externals = {
"externals_cache/pjproject-2.8.tar.bz2" = pjproject_2_8;
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
"addons/mp3" = mp3-202;
};
};

asterisk_16 = common {
version = "16.1.1";
sha256 = "19bfvqmxphk2608jx7jghfy7rdbj1qj5vw2fyb0fq4xjvx919wmv";
asterisk_17 = common {
version = "17.7.0";
sha256 = "0lsglrh3l823200rmkay3pgy42k0fsij610s3s4vd3zv4jjb1g0s";
externals = {
"externals_cache/pjproject-2.8.tar.bz2" = pjproject_2_8;
"externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10;
"addons/mp3" = mp3-202;
};
};

#asterisk-git = common {
# version = "15-pre";
# sha256 = "...";
# externals = {
# "externals_cache/pjproject-2.5.5.tar.bz2" = pjproject-255;
# # Note that these sounds are included with the release tarball. They are
# # provided here verbatim for the convenience of anyone wanting to build
# # Asterisk from other sources. Include in externals.
# "sounds/asterisk-core-sounds-en-gsm-1.5.tar.gz" = fetchurl {
# url = "http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-gsm-1.5.tar.gz";
# sha256 = "01xzbg7xy0c5zg7sixjw5025pvr4z64kfzi9zvx19im0w331h4cd";
# };
# "sounds/asterisk-moh-opsound-wav-2.03.tar.gz" = fetchurl {
# url = "http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-moh-opsound-wav-2.03.tar.gz";
# sha256 = "449fb810d16502c3052fedf02f7e77b36206ac5a145f3dacf4177843a2fcb538";
# };
# # TODO: Sounds for other languages could be added here
# }
#}.overrideDerivation (_: {src = fetchgit {...}})

}
1 change: 1 addition & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ mapAliases ({
arduino_core = arduino-core; # added 2015-02-04
arora = throw "arora has been removed."; # added 2020-09-09
asciidocFull = asciidoc-full; # added 2014-06-22
asterisk_15 = throw "Asterisk 15 is end of life and has been removed."; # added 2020-10-07
at_spi2_atk = at-spi2-atk; # added 2018-02-25
at_spi2_core = at-spi2-core; # added 2018-02-25
avldrums-lv2 = x42-avldrums; # added 2020-03-29
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16361,7 +16361,7 @@ in

inherit (callPackages ../servers/asterisk { })
asterisk asterisk-stable asterisk-lts
asterisk_13 asterisk_15 asterisk_16;
asterisk_13 asterisk_16 asterisk_17;

asterisk-module-sccp = callPackage ../servers/asterisk/sccp { };

Expand Down