bincimap.patch
author Tomas Zeman <tzeman@volny.cz>
Tue, 02 Jul 2013 09:44:50 +0200
changeset 147 761da690b72c
parent 112 8d60a85d63dd
permissions -rw-r--r--
phpmyadmin.patch: 3.5.5 -> 4.0.4.1

From: Tomas Zeman <tzeman@volny.cz>
Date: Thu, 29 Nov 2007 10:23:19 +0100

bincimap-1.2.13

diff -r e0809196ee2e source/custom/bincimap/FrugalBuild
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/custom/bincimap/FrugalBuild	Wed Feb 15 15:24:33 2012 +0100
@@ -0,0 +1,32 @@
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
+
+pkgname=bincimap
+pkgver=1.2.13
+pkgrel=2
+pkgdesc="A well designed, modular IMAP server for Maildir."
+url="http://www.bincimap.org"
+archs=(i686)
+up2date="lynx $url -dump -nolist|grep 'latest stable'|head -1|sed -e 's/.*is \([0-9].*[0-9]\) .*$/\1/'"
+depends=('openssl')
+install="$pkgname.install"
+backup=(etc/bincimap/bincimap.conf)
+source=($url/dl/tarballs/1.2/$pkgname-${pkgver}final.tar.bz2 bincimap-1.2.13-gcc43.patch)
+sha1sums=('cdbc1bf95decbe76e0a218025c351b8174b4b485' \
+          'ec98f1d1b30688e237bc1682a960fc02a0f4888b')
+provides=('imap-server')
+
+build() {
+	Fcd $pkgname-${pkgver}final
+	Fpatchall
+	./configure --prefix=/usr --sysconfdir=/etc/bincimap \
+		--localstatedir=/var --with-ssl
+	make || Fdie
+	make DESTDIR=$Fdestdir install || Fdie
+
+	# clean up the files
+	Fmkdir /usr/lib/bincimap
+	Fmv /usr/libexec /usr/lib/bincimap/scripts
+	Fmv /var/service /usr/lib/bincimap/supervise
+	Frm /etc/bincimap/xinetd
+}
+# vim: ft=sh
diff -r e0809196ee2e source/custom/bincimap/bincimap-1.2.13-gcc43.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/custom/bincimap/bincimap-1.2.13-gcc43.patch	Wed Feb 15 15:24:33 2012 +0100
@@ -0,0 +1,64 @@
+diff -NrU5 bincimap-1.2.13final.orig/src/convert.cc bincimap-1.2.13final/src/convert.cc
+--- bincimap-1.2.13final.orig/src/convert.cc	2005-01-08 11:20:48.000000000 +0100
++++ bincimap-1.2.13final/src/convert.cc	2008-05-07 12:32:33.000000000 +0200
+@@ -37,10 +37,12 @@
+ 
+ #include "convert.h"
+ #include "io.h"
+ #include <string>
+ 
++#include <cstring>
++
+ using namespace ::std;
+ using namespace Binc;
+ 
+ //------------------------------------------------------------------------
+ BincStream::BincStream(void)
+diff -NrU5 bincimap-1.2.13final.orig/src/convert.h bincimap-1.2.13final/src/convert.h
+--- bincimap-1.2.13final.orig/src/convert.h	2005-02-08 21:30:22.000000000 +0100
++++ bincimap-1.2.13final/src/convert.h	2008-05-07 12:32:33.000000000 +0200
+@@ -35,10 +35,11 @@
+ #include <config.h>
+ #endif
+ 
+ #ifndef convert_h_included
+ #define convert_h_included
++#include <cstdlib>
+ #include <string>
+ #include <vector>
+ #include <iomanip>
+ #include <iostream>
+ 
+@@ -46,10 +47,12 @@
+ #include <sys/stat.h>
+ 
+ #include "address.h"
+ #include "depot.h"
+ 
++#include <cstring>
++
+ namespace Binc {
+ 
+   //----------------------------------------------------------------------
+   inline std::string toString(int i_in)
+   {
+diff -NrU5 bincimap-1.2.13final.orig/src/tools.cc bincimap-1.2.13final/src/tools.cc
+--- bincimap-1.2.13final.orig/src/tools.cc	2005-01-08 11:20:48.000000000 +0100
++++ bincimap-1.2.13final/src/tools.cc	2008-05-07 12:32:33.000000000 +0200
+@@ -33,13 +33,16 @@
+  */
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+ #include <errno.h>
++#include <cstdlib>
+ 
+ #include "tools.h"
+ 
++#include <cstring>
++
+ using namespace ::std;
+ using namespace Binc;
+ 
+ //------------------------------------------------------------------------
+ Tools::Tools(void)
diff -r e0809196ee2e source/custom/bincimap/bincimap.install
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/custom/bincimap/bincimap.install	Wed Feb 15 15:24:33 2012 +0100
@@ -0,0 +1,23 @@
+post_install() {
+  cat << EOF
+
+NOTE
+----
+bincimap must be invoked through either xinetd or daemontools.
+Check the documentation on its webpage for more details.
+
+EOF
+}
+
+post_upgrade() {
+  /bin/true
+}
+
+pre_remove() {
+  /bin/true
+}
+
+op=$1
+shift
+
+$op $*