bincimap.patch
changeset 112 8d60a85d63dd
parent 1 32f160a66da4
equal deleted inserted replaced
111:3cc26c67aa4b 112:8d60a85d63dd
     1 From 577622cdbeed98322b7a5468e0ffa4f464fef003 Mon Sep 17 00:00:00 2001
       
     2 From: Tomas Zeman <tzeman@volny.cz>
     1 From: Tomas Zeman <tzeman@volny.cz>
     3 Date: Thu, 29 Nov 2007 10:23:19 +0100
     2 Date: Thu, 29 Nov 2007 10:23:19 +0100
     4 Subject: [PATCH] bincimap-1.2.13-1-i686.fpm:
       
     5  * added
       
     6 
     3 
     7 ---
     4 bincimap-1.2.13
     8  source/custom/bincimap/FrugalBuild      |   30 ++++++++++++++++++++++++++++++
       
     9  source/custom/bincimap/bincimap.install |   23 +++++++++++++++++++++++
       
    10  2 files changed, 53 insertions(+), 0 deletions(-)
       
    11  create mode 100644 source/custom/bincimap/FrugalBuild
       
    12  create mode 100644 source/custom/bincimap/bincimap.install
       
    13 
     5 
    14 diff --git a/source/custom/bincimap/FrugalBuild b/source/custom/bincimap/FrugalBuild
     6 diff -r e0809196ee2e source/custom/bincimap/FrugalBuild
    15 new file mode 100644
     7 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16 index 0000000..74900bf
     8 +++ b/source/custom/bincimap/FrugalBuild	Wed Feb 15 15:24:33 2012 +0100
    17 --- /dev/null
     9 @@ -0,0 +1,32 @@
    18 +++ b/source/custom/bincimap/FrugalBuild
       
    19 @@ -0,0 +1,30 @@
       
    20 +# Maintainer: Tomas Zeman <tzeman@volny.cz>
    10 +# Maintainer: Tomas Zeman <tzeman@volny.cz>
    21 +
    11 +
    22 +pkgname=bincimap
    12 +pkgname=bincimap
    23 +pkgver=1.2.13
    13 +pkgver=1.2.13
    24 +pkgrel=1
    14 +pkgrel=2
    25 +pkgdesc="A well designed, modular IMAP server for Maildir."
    15 +pkgdesc="A well designed, modular IMAP server for Maildir."
    26 +url="http://www.bincimap.org"
    16 +url="http://www.bincimap.org"
    27 +archs=(i686)
    17 +archs=(i686)
    28 +up2date="lynx $url -dump -nolist|grep 'latest stable'|head -1|sed -e 's/.*is \([0-9].*[0-9]\) .*$/\1/'"
    18 +up2date="lynx $url -dump -nolist|grep 'latest stable'|head -1|sed -e 's/.*is \([0-9].*[0-9]\) .*$/\1/'"
    29 +depends=('openssl')
    19 +depends=('openssl')
    30 +install="$pkgname.install"
    20 +install="$pkgname.install"
    31 +backup=(etc/bincimap/bincimap.conf)
    21 +backup=(etc/bincimap/bincimap.conf)
    32 +source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2)
    22 +source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2 bincimap-1.2.13-gcc43.patch)
    33 +sha1sums=('cdbc1bf95decbe76e0a218025c351b8174b4b485')
    23 +sha1sums=('cdbc1bf95decbe76e0a218025c351b8174b4b485' \
       
    24 +          'ec98f1d1b30688e237bc1682a960fc02a0f4888b')
    34 +provides=('imap-server')
    25 +provides=('imap-server')
    35 +
    26 +
    36 +build() {
    27 +build() {
    37 +	Fcd $pkgname-${pkgver}final
    28 +	Fcd $pkgname-${pkgver}final
       
    29 +	Fpatchall
    38 +	./configure --prefix=/usr --sysconfdir=/etc/bincimap \
    30 +	./configure --prefix=/usr --sysconfdir=/etc/bincimap \
    39 +		--localstatedir=/var --with-ssl
    31 +		--localstatedir=/var --with-ssl
    40 +	make || Fdie
    32 +	make || Fdie
    41 +	make DESTDIR=$Fdestdir install || Fdie
    33 +	make DESTDIR=$Fdestdir install || Fdie
    42 +
    34 +
    45 +	Fmv /usr/libexec /usr/lib/bincimap/scripts
    37 +	Fmv /usr/libexec /usr/lib/bincimap/scripts
    46 +	Fmv /var/service /usr/lib/bincimap/supervise
    38 +	Fmv /var/service /usr/lib/bincimap/supervise
    47 +	Frm /etc/bincimap/xinetd
    39 +	Frm /etc/bincimap/xinetd
    48 +}
    40 +}
    49 +# vim: ft=sh
    41 +# vim: ft=sh
    50 diff --git a/source/custom/bincimap/bincimap.install b/source/custom/bincimap/bincimap.install
    42 diff -r e0809196ee2e source/custom/bincimap/bincimap-1.2.13-gcc43.patch
    51 new file mode 100644
    43 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    52 index 0000000..ca80118
    44 +++ b/source/custom/bincimap/bincimap-1.2.13-gcc43.patch	Wed Feb 15 15:24:33 2012 +0100
    53 --- /dev/null
    45 @@ -0,0 +1,64 @@
    54 +++ b/source/custom/bincimap/bincimap.install
    46 +diff -NrU5 bincimap-1.2.13final.orig/src/convert.cc bincimap-1.2.13final/src/convert.cc
       
    47 +--- bincimap-1.2.13final.orig/src/convert.cc	2005-01-08 11:20:48.000000000 +0100
       
    48 ++++ bincimap-1.2.13final/src/convert.cc	2008-05-07 12:32:33.000000000 +0200
       
    49 +@@ -37,10 +37,12 @@
       
    50 + 
       
    51 + #include "convert.h"
       
    52 + #include "io.h"
       
    53 + #include <string>
       
    54 + 
       
    55 ++#include <cstring>
       
    56 ++
       
    57 + using namespace ::std;
       
    58 + using namespace Binc;
       
    59 + 
       
    60 + //------------------------------------------------------------------------
       
    61 + BincStream::BincStream(void)
       
    62 +diff -NrU5 bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h
       
    63 +--- bincimap-1.2.13final.orig/src/convert.h	2005-02-08 21:30:22.000000000 +0100
       
    64 ++++ bincimap-1.2.13final/src/convert.h	2008-05-07 12:32:33.000000000 +0200
       
    65 +@@ -35,10 +35,11 @@
       
    66 + #include <config.h>
       
    67 + #endif
       
    68 + 
       
    69 + #ifndef convert_h_included
       
    70 + #define convert_h_included
       
    71 ++#include <cstdlib>
       
    72 + #include <string>
       
    73 + #include <vector>
       
    74 + #include <iomanip>
       
    75 + #include <iostream>
       
    76 + 
       
    77 +@@ -46,10 +47,12 @@
       
    78 + #include <sys/stat.h>
       
    79 + 
       
    80 + #include "address.h"
       
    81 + #include "depot.h"
       
    82 + 
       
    83 ++#include <cstring>
       
    84 ++
       
    85 + namespace Binc {
       
    86 + 
       
    87 +   //----------------------------------------------------------------------
       
    88 +   inline std::string toString(int i_in)
       
    89 +   {
       
    90 +diff -NrU5 bincimap-1.2.13final.orig/src/tools.cc bincimap-1.2.13final/src/tools.cc
       
    91 +--- bincimap-1.2.13final.orig/src/tools.cc	2005-01-08 11:20:48.000000000 +0100
       
    92 ++++ bincimap-1.2.13final/src/tools.cc	2008-05-07 12:32:33.000000000 +0200
       
    93 +@@ -33,13 +33,16 @@
       
    94 +  */
       
    95 + #ifdef HAVE_CONFIG_H
       
    96 + #include <config.h>
       
    97 + #endif
       
    98 + #include <errno.h>
       
    99 ++#include <cstdlib>
       
   100 + 
       
   101 + #include "tools.h"
       
   102 + 
       
   103 ++#include <cstring>
       
   104 ++
       
   105 + using namespace ::std;
       
   106 + using namespace Binc;
       
   107 + 
       
   108 + //------------------------------------------------------------------------
       
   109 + Tools::Tools(void)
       
   110 diff -r e0809196ee2e source/custom/bincimap/bincimap.install
       
   111 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   112 +++ b/source/custom/bincimap/bincimap.install	Wed Feb 15 15:24:33 2012 +0100
    55 @@ -0,0 +1,23 @@
   113 @@ -0,0 +1,23 @@
    56 +post_install() {
   114 +post_install() {
    57 +  cat << EOF
   115 +  cat << EOF
    58 +
   116 +
    59 +NOTE
   117 +NOTE
    74 +
   132 +
    75 +op=$1
   133 +op=$1
    76 +shift
   134 +shift
    77 +
   135 +
    78 +$op $*
   136 +$op $*
    79 -- 
       
    80 1.5.3.4
       
    81