upgrade-0.9-bincimap.patch
changeset 112 8d60a85d63dd
parent 111 3cc26c67aa4b
child 113 37d7b9252b13
equal deleted inserted replaced
111:3cc26c67aa4b 112:8d60a85d63dd
     1 bincimap: upgrade for Frugalware 0.9
       
     2 
       
     3 diff --git a/source/custom/bincimap/FrugalBuild b/source/custom/bincimap/FrugalBuild
       
     4 index 74900bf..99eaac6 100644
       
     5 --- a/source/custom/bincimap/FrugalBuild
       
     6 +++ b/source/custom/bincimap/FrugalBuild
       
     7 @@ -2,7 +2,7 @@
       
     8  
       
     9  pkgname=bincimap
       
    10  pkgver=1.2.13
       
    11 -pkgrel=1
       
    12 +pkgrel=2
       
    13  pkgdesc="A well designed, modular IMAP server for Maildir."
       
    14  url="http://www.bincimap.org"
       
    15  archs=(i686)
       
    16 @@ -10,12 +10,14 @@ up2date="lynx $url -dump -nolist|grep 'latest stable'|head -1|sed -e 's/.*is \([
       
    17  depends=('openssl')
       
    18  install="$pkgname.install"
       
    19  backup=(etc/bincimap/bincimap.conf)
       
    20 -source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2)
       
    21 -sha1sums=('cdbc1bf95decbe76e0a218025c351b8174b4b485')
       
    22 +source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2 bincimap-1.2.13-gcc43.patch)
       
    23 +sha1sums=('cdbc1bf95decbe76e0a218025c351b8174b4b485' \
       
    24 +          'ec98f1d1b30688e237bc1682a960fc02a0f4888b')
       
    25  provides=('imap-server')
       
    26  
       
    27  build() {
       
    28  	Fcd $pkgname-${pkgver}final
       
    29 +	Fpatchall
       
    30  	./configure --prefix=/usr --sysconfdir=/etc/bincimap \
       
    31  		--localstatedir=/var --with-ssl
       
    32  	make || Fdie
       
    33 diff --git a/source/custom/bincimap/bincimap-1.2.13-gcc43.patch b/source/custom/bincimap/bincimap-1.2.13-gcc43.patch
       
    34 new file mode 100644
       
    35 index 0000000..76cb3a9
       
    36 --- /dev/null
       
    37 +++ b/source/custom/bincimap/bincimap-1.2.13-gcc43.patch
       
    38 @@ -0,0 +1,64 @@
       
    39 +diff -NrU5 bincimap-1.2.13final.orig/src/convert.cc bincimap-1.2.13final/src/convert.cc
       
    40 +--- bincimap-1.2.13final.orig/src/convert.cc	2005-01-08 11:20:48.000000000 +0100
       
    41 ++++ bincimap-1.2.13final/src/convert.cc	2008-05-07 12:32:33.000000000 +0200
       
    42 +@@ -37,10 +37,12 @@
       
    43 + 
       
    44 + #include "convert.h"
       
    45 + #include "io.h"
       
    46 + #include <string>
       
    47 + 
       
    48 ++#include <cstring>
       
    49 ++
       
    50 + using namespace ::std;
       
    51 + using namespace Binc;
       
    52 + 
       
    53 + //------------------------------------------------------------------------
       
    54 + BincStream::BincStream(void)
       
    55 +diff -NrU5 bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h
       
    56 +--- bincimap-1.2.13final.orig/src/convert.h	2005-02-08 21:30:22.000000000 +0100
       
    57 ++++ bincimap-1.2.13final/src/convert.h	2008-05-07 12:32:33.000000000 +0200
       
    58 +@@ -35,10 +35,11 @@
       
    59 + #include <config.h>
       
    60 + #endif
       
    61 + 
       
    62 + #ifndef convert_h_included
       
    63 + #define convert_h_included
       
    64 ++#include <cstdlib>
       
    65 + #include <string>
       
    66 + #include <vector>
       
    67 + #include <iomanip>
       
    68 + #include <iostream>
       
    69 + 
       
    70 +@@ -46,10 +47,12 @@
       
    71 + #include <sys/stat.h>
       
    72 + 
       
    73 + #include "address.h"
       
    74 + #include "depot.h"
       
    75 + 
       
    76 ++#include <cstring>
       
    77 ++
       
    78 + namespace Binc {
       
    79 + 
       
    80 +   //----------------------------------------------------------------------
       
    81 +   inline std::string toString(int i_in)
       
    82 +   {
       
    83 +diff -NrU5 bincimap-1.2.13final.orig/src/tools.cc bincimap-1.2.13final/src/tools.cc
       
    84 +--- bincimap-1.2.13final.orig/src/tools.cc	2005-01-08 11:20:48.000000000 +0100
       
    85 ++++ bincimap-1.2.13final/src/tools.cc	2008-05-07 12:32:33.000000000 +0200
       
    86 +@@ -33,13 +33,16 @@
       
    87 +  */
       
    88 + #ifdef HAVE_CONFIG_H
       
    89 + #include <config.h>
       
    90 + #endif
       
    91 + #include <errno.h>
       
    92 ++#include <cstdlib>
       
    93 + 
       
    94 + #include "tools.h"
       
    95 + 
       
    96 ++#include <cstring>
       
    97 ++
       
    98 + using namespace ::std;
       
    99 + using namespace Binc;
       
   100 + 
       
   101 + //------------------------------------------------------------------------
       
   102 + Tools::Tools(void)