summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Freise <dennis.freise@final-frontier.org>2013-08-23 22:59:09 +0200
committerDennis Freise <dennis.freise@final-frontier.org>2013-08-23 22:59:09 +0200
commit6143842089fe44690336337467bc0d80928391e2 (patch)
tree6c11bae825bc6bc10d89bc7dae6dd662fdcf8487 /net-dialup/capisuite/files
parentAdded "masters = gentoo" to metadata/layout.conf for newest portage (diff)
downloaddfreise-6143842089fe44690336337467bc0d80928391e2.tar.gz
dfreise-6143842089fe44690336337467bc0d80928391e2.tar.bz2
dfreise-6143842089fe44690336337467bc0d80928391e2.zip
*capisuite-0.5.0 (23 Aug 2013)
23 Aug 2013; Dennis Freise <dennis.freise@final-frontier.org> capisuite-0.5.0.ebuild: New ebuild for version 0.5.0-git. Thanks to Arnd Feldmueller. Changed download-URI to my own webspace, because original source seems to be down.
Diffstat (limited to 'net-dialup/capisuite/files')
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-Makefile.patch12
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-as-needed.patch11
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch27
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-fax-compatibility.patch11
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-gcc43.patch20
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-python25.patch49
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-respect-ar.patch10
7 files changed, 140 insertions, 0 deletions
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-Makefile.patch b/net-dialup/capisuite/files/capisuite-0.5.0-Makefile.patch
new file mode 100644
index 0000000..6a9542b
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-Makefile.patch
@@ -0,0 +1,12 @@
+--- scripts/Makefile.am.orig 2013-08-17 20:17:56.000000000 +0200
++++ scripts/Makefile.am 2013-08-17 20:20:44.000000000 +0200
+@@ -1,7 +1,8 @@
+ spooldir = @localstatedir@/spool/capisuite
+ pkgsysconfdir = @sysconfdir@/capisuite
+
+-dist_pkgdata_DATA = idle.py incoming.py README
++scriptdatadir=$(pkglibdir)
++dist_scriptdata_DATA = idle.py incoming.py README
+ pkgpython_PYTHON = helpers.py
+ EXTRA_DIST = helpers.pyin fax.confin answering_machine.confin capisuitefax.in
+
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-as-needed.patch b/net-dialup/capisuite/files/capisuite-0.5.0-as-needed.patch
new file mode 100644
index 0000000..10439ca
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-as-needed.patch
@@ -0,0 +1,11 @@
+--- acinclude.m4.old 2013-08-17 16:50:49.000000000 +0200
++++ acinclude.m4 2013-08-17 16:51:32.000000000 +0200
+@@ -140,7 +140,7 @@
+ _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
+
+ pgac_tab=" " # tab character
+-python_libspec=`echo X"$_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[[ $pgac_tab]][[ $pgac_tab]]*/ /g"`
++python_libspec=`echo X"-lpython$python_version $_python_liblocalmod $_python_libbasemod $_python_libm $_python_libs $_python_libc" | sed -e 's/^X//' -e "s/[[ $pgac_tab]][[ $pgac_tab]]*/ /g"`
+ LIBS="$LIBS $python_libspec"
+ LDFLAGS="$LDFLAGS -L$python_configdir $python_linkforshared"
+ AC_MSG_RESULT([${python_libspec}])
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch b/net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch
new file mode 100644
index 0000000..060f576
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch
@@ -0,0 +1,27 @@
+--- scripts/helpers.pyin.orig 2013-08-17 19:30:48.000000000 +0200
++++ scripts/helpers.pyin 2013-08-17 19:35:42.000000000 +0200
+@@ -10,7 +10,7 @@
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+
+-import os, commands
++import os, commands, time
+ from capisuite.config import *
+ from capisuite.voice import sayNumber, getAudio
+
+@@ -114,6 +114,7 @@
+ msg['Subject']=mail_subject
+ msg['From']=mail_from
+ msg['To']=mail_to
++ msg['Date']=time.strftime('%a, %d %b %Y %H:%M:%S %z')
+
+ msg.preamble = 'This is a Multipart-MIME-message. Please use a capable mailer.\n'
+ msg.epilogue = '' # To guarantee the message ends with a newline
+@@ -206,6 +207,7 @@
+ msg['Subject'] = mail_subject
+ msg['From'] = mail_from
+ msg['To'] = mail_to
++ msg['Date'] = time.strftime('%a, %d %b %Y %H:%M:%S %z')
+ return __sendmail(mail_from, mail_to, msg)
+
+
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-fax-compatibility.patch b/net-dialup/capisuite/files/capisuite-0.5.0-fax-compatibility.patch
new file mode 100644
index 0000000..a8da437
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-fax-compatibility.patch
@@ -0,0 +1,11 @@
+--- src.orig/backend/connection.cpp 2013-08-15 19:44:51.000000000 +0200
++++ src/backend/connection.cpp 2013-08-17 15:00:11.000000000 +0200
+@@ -93,7 +93,7 @@
+ CIPvalue=16;
+ break;
+ case FAXG3:
+- CIPvalue=17;
++ CIPvalue=4;
+ break;
+ default:
+ throw CapiExternalError("unsupported service given","Connection::Connection()");
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-gcc43.patch b/net-dialup/capisuite/files/capisuite-0.5.0-gcc43.patch
new file mode 100644
index 0000000..f60bbbd
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-gcc43.patch
@@ -0,0 +1,20 @@
+--- src/backend/connection.cpp.orig 2013-08-17 15:57:47.000000000 +0200
++++ src/backend/connection.cpp 2013-08-17 15:59:20.000000000 +0200
+@@ -21,6 +21,7 @@
+ #include <string.h>
+ #include <errno.h> // for errno
+ #include <iconv.h> // for iconv(), iconv_open(), iconv_close()
++#include <cstring>
+ #include "capi.h"
+ #include "callinterface.h"
+ #include "connection.h"
+--- src/backend/capi.cpp.orig 2013-08-17 15:59:41.000000000 +0200
++++ src/backend/capi.cpp 2013-08-17 16:00:13.000000000 +0200
+@@ -16,6 +16,7 @@
+
+ #include <iostream>
+ #include <sstream>
++#include <cstdlib>
+ #include "connection.h"
+ #include "applicationinterface.h"
+ #include "capi.h"
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-python25.patch b/net-dialup/capisuite/files/capisuite-0.5.0-python25.patch
new file mode 100644
index 0000000..1a8b246
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-python25.patch
@@ -0,0 +1,49 @@
+--- src/application/pythonscript.cpp.orig 2013-08-17 17:30:02.000000000 +0200
++++ src/application/pythonscript.cpp 2013-08-17 17:32:29.000000000 +0200
+@@ -99,14 +99,14 @@
+ if ( !(py_traceback=cStringIO->cgetvalue(catch_stderr)) )
+ throw ApplicationError("unable to get traceback","PythonScript::run()");
+
+- int length;
++ Py_ssize_t length;
+ char *traceback;
+ if (PyString_AsStringAndSize(py_traceback, &traceback, &length))
+ throw ApplicationError("unable to convert traceback to char*","PythonScript::run()");
+
+ error << prefix() << "A python error occured. See traceback below." << endl;
+ error << prefix(false) << "Python traceback: ";
+- for (int i=0;i<length-1;i++) {
++ for (Py_ssize_t i=0;i<length-1;i++){
+ error << traceback[i];
+ if (traceback[i]=='\n')
+ error << prefix(false) << "Traceback: ";
+--- src/application/idlescript.cpp.orig 2013-08-17 17:33:00.000000000 +0200
++++ src/application/idlescript.cpp 2013-08-17 17:33:22.000000000 +0200
+@@ -28,6 +28,7 @@
+ IdleScript *instance=static_cast<IdleScript*>(arg);
+ instance->run();
+ pthread_cleanup_pop(1); // run the cleanup_handler and then deregister it
++ return NULL;
+ }
+
+ void idlescript_cleanup_handler(void* arg)
+--- src/application/incomingscript.cpp.orig 2013-08-17 17:33:57.000000000 +0200
++++ src/application/incomingscript.cpp 2013-08-17 17:34:10.000000000 +0200
+@@ -31,6 +31,7 @@
+ IncomingScript *instance=static_cast<IncomingScript*>(arg);
+ instance->run();
+ pthread_cleanup_pop(1); // run the cleanup_handler and then deregister it
++ return NULL;
+ }
+
+ void incomingscript_cleanup_handler(void* arg)
+--- src/backend/capi.cpp.orig 2013-08-17 17:36:44.000000000 +0200
++++ src/backend/capi.cpp 2013-08-17 17:38:48.000000000 +0200
+@@ -36,6 +36,7 @@
+
+ Capi *instance=static_cast<Capi*>(arg);
+ instance->run();
++ return NULL;
+ }
+
+ Capi::Capi (ostream& debug, unsigned short debug_level, ostream &error, unsigned short DDILength, unsigned short DDIBaseLength, vector<string> DDIStopNumbers, unsigned maxLogicalConnection, unsigned maxBDataBlocks,unsigned maxBDataLen) throw (CapiError, CapiMsgError)
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-respect-ar.patch b/net-dialup/capisuite/files/capisuite-0.5.0-respect-ar.patch
new file mode 100644
index 0000000..7643650
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-respect-ar.patch
@@ -0,0 +1,10 @@
+--- configure.in.orig 2013-08-17 15:51:50.000000000 +0200
++++ configure.in 2013-08-17 15:52:16.000000000 +0200
+@@ -6,6 +6,7 @@
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_INSTALL
++AM_PROG_AR
+ AC_PROG_RANLIB
+ AC_PROG_MAKE_SET
+ AC_PATH_PROG(doxygen,doxygen)