Ticket #29188: ejabberd.diff

File ejabberd.diff, 3.5 KB (added by ci42, 13 years ago)
  • Portfile

    diff -urtN old/Portfile new/Portfile
    old new  
    33PortSystem          1.0
    44
    55name                ejabberd
    6 version             2.1.5
     6version             2.1.6
    77categories          net
    88platforms           darwin
    9 maintainers         nomaintainer
     9maintainers         googlemail.com:ciserlohn
    1010description         ejabberd is an XMPP application server.
    1111long_description    ${description} ejabberd stands for "Erlang Jabber Daemon"
    1212
    1313homepage            http://www.process-one.net/en/ejabberd/
    1414master_sites        http://www.process-one.net/downloads/ejabberd/${version}/
    1515
    16 checksums           md5     2029ceca45584d704ca821a771d6d928 \
    17                     sha1    8966d6752219c9386f48a5b8e1f2f8fb0e7477ae \
    18                     rmd160  7abd6bc4a03f68d03e13ee8c1ff3a5fee6098dc6
     16checksums           sha1 a1afbfc270f8e4c945bd91f64b7073781590535b \
     17                    rmd160 9b6ed4986ffcd1ea90d23770e54cb002bc52304c
    1918
    2019worksrcdir          ${worksrcdir}/src
    2120
     
    2827# erlang is not universal
    2928universal_variant   no
    3029
    31 patchfiles          ejabberd-md2.patch
    32 
    3330configure.args      --with-expat=${prefix} \
    3431                    --with-zlib=${prefix} \
    3532                    --with-openssl=${prefix}
  • files/ejabberd-md2.patch

    diff -urtN old/files/ejabberd-md2.patch new/files/ejabberd-md2.patch
    old new  
    1 --- mod_caps.erl.orig   2010-09-26 12:34:01.000000000 -0700
    2 +++ mod_caps.erl        2010-09-26 12:34:52.000000000 -0700
    3 @@ -277,8 +277,6 @@
    4                  Host, From, Caps, [SubNode | SubNodes]) ->
    5      BinaryNode = node_to_binary(Caps#caps.node, SubNode),
    6      IsValid = case Caps#caps.hash of
    7 -                 "md2" ->
    8 -                     Caps#caps.version == make_disco_hash(Els, md2);
    9                   "md5" ->
    10                       Caps#caps.version == make_disco_hash(Els, md5);
    11                   "sha-1" ->
    12 @@ -354,9 +352,7 @@
    13               concat_features(DiscoEls),
    14               concat_info(DiscoEls)],
    15      base64:encode_to_string(
    16 -      if Algo == md2 ->
    17 -             sha:md2(Concat);
    18 -        Algo == md5 ->
    19 +      if Algo == md5 ->
    20               crypto:md5(Concat);
    21          Algo == sha1 ->
    22               crypto:sha(Concat);
    23 --- sha.erl.orig        2010-09-26 12:33:23.000000000 -0700
    24 +++ sha.erl     2010-09-26 12:33:48.000000000 -0700
    25 @@ -28,7 +28,7 @@
    26  -author('alexey@process-one.net').
    27  
    28  -export([start/0, sha/1, sha1/1, sha224/1, sha256/1, sha384/1,
    29 -        sha512/1, md2/1]).
    30 +        sha512/1]).
    31  
    32  -include("ejabberd.hrl").
    33  
    34 @@ -80,9 +80,6 @@
    35  sha512(Text) ->
    36      erlang:port_control(?DRIVER, 512, Text).
    37  
    38 -md2(Text) ->
    39 -    erlang:port_control(?DRIVER, 2, Text).
    40 -
    41  driver_path() ->
    42      Suffix = case os:type() of
    43                  {win32, _} -> ".dll";
    44 --- tls/sha_drv.c.orig  2010-09-26 12:32:33.000000000 -0700
    45 +++ tls/sha_drv.c       2010-09-26 12:33:15.000000000 -0700
    46 @@ -20,7 +20,6 @@
    47  
    48  #include <erl_driver.h>
    49  #include <openssl/sha.h>
    50 -#include <openssl/md2.h>
    51  
    52  static ErlDrvData sha_drv_start(ErlDrvPort port, char *buf)
    53  {
    54 @@ -36,11 +35,6 @@
    55    ErlDrvBinary *b = NULL;
    56  
    57    switch (command) {
    58 -  case 2:
    59 -    rlen = MD2_DIGEST_LENGTH;
    60 -    b = driver_alloc_binary(rlen);
    61 -    if (b) MD2((unsigned char*)buf, len, (unsigned char*)b->orig_bytes);
    62 -    break;
    63    case 224:
    64      rlen = SHA224_DIGEST_LENGTH;
    65      b = driver_alloc_binary(rlen);