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
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')
-rw-r--r--net-dialup/capisuite/ChangeLog5
-rw-r--r--net-dialup/capisuite/Manifest11
-rw-r--r--net-dialup/capisuite/capisuite-0.5.0-r1.ebuild94
-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
10 files changed, 249 insertions, 1 deletions
diff --git a/net-dialup/capisuite/ChangeLog b/net-dialup/capisuite/ChangeLog
index 1e57bdb..3ee091f 100644
--- a/net-dialup/capisuite/ChangeLog
+++ b/net-dialup/capisuite/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*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.
+
*capisuite-0.4.5-r7 (08 Jul 2012)
08 Jul 2012; Dennis Freise <dennis.freise@final-frontier.org> capisuite-0.4.5-r7.ebuild:
General ebuild cleanup, depend and use python 2.*, restrict python 3.*, new patch for
diff --git a/net-dialup/capisuite/Manifest b/net-dialup/capisuite/Manifest
index 3e04bb0..0aff316 100644
--- a/net-dialup/capisuite/Manifest
+++ b/net-dialup/capisuite/Manifest
@@ -6,10 +6,19 @@ AUX capisuite-0.4.5-gcc43.patch 656 SHA256 a177c318ea08d199129f39f5fb1236cfb51d2
AUX capisuite-0.4.5-python25.patch 2146 SHA256 54c219bff3e358117b869c59b22502f463854745c55492929c3ea16dade43680 SHA512 9b8ce7922e3121827a317691ea094c5cef82ee357199e3071162888bbeff0d9392bad4634bbb09f9a3e57114b9739c073d70122bfed9964369acd3b62c29f677 WHIRLPOOL 013da2b20d7f0af6a30aea660facf9154f4343040dc59f0fcbaf51d8b4d911417688b807c29b34a3219e60bcf2276295179e2aac1e0864230e11d48b4a35ad7c
AUX capisuite-0.4.5-sox.patch 859 SHA256 36b1e5e6b3dbe8a575a2ffd9e24f284d4a3ac458e6e4d1986bd843a7b1dd3522 SHA512 bdaf2c8dfe870ab47454e6827799fe00c240e919c3b7fd40438cba0048ee9cf5ec123c7c99f57df55c96e74e7208822a82ecbc9597c1383ee9dd2aaf4d5c62e9 WHIRLPOOL 45dc363d18f0d3e3271af74ab1243c8eb65890cde7f7cfcbf9608a4302cccb51a934a1da5bd3e139eb9d3d19b7356f0711c06ec8b510bf8b0e7c098436c99628
AUX capisuite-0.4.5-syntax.patch 6589 SHA256 a8d9a678051c155769edfd6d3d6bebf6d6ea282d04738c949aeb4fe83536c04c SHA512 de3189f29ac3c30002bc815f04018237b5f631b37179d1ad72fc3a2ccc63b8a2d363a134aadd79ff3b6a6369f3d81c85a43a8f5a8b02245efedf70b399c1a535 WHIRLPOOL feda2187ab90a5f635e83a6e5dae74a533cb35ff2642fc36f6e470fb76dfa0ac6c0e89eb98f3c014fffb338c3135e1efc6575bbc2ec81c3f516bb83ca3729489
+AUX capisuite-0.5.0-Makefile.patch 466 SHA256 7cffc9a081b7cf3f6b435f23c6679562e2bacb47abd807372d8c59d51c73bc89 SHA512 90ecaf199d62ed8d389ec05ac8c03fcd69b562ec0721ff39f9069490d5eb21fa58a6c30963882cf9cce43c716f6ca7911e9215ff3b653b3be6360a96094f2008 WHIRLPOOL 33b21cc815e609fe107304bc68e4d0ace189cd904fbaf93883f4d062cbe01b39c336a150ee27ea3ca3e4daba82fe72fef57fe28d9b4d1949c0ce412ac96010c5
+AUX capisuite-0.5.0-as-needed.patch 761 SHA256 58bf354bf5782a22a1b3c33e52fca57b36fce5424a53edc89205e27c0af72db3 SHA512 18478e1f12ceaa053e705c90c4aa93966ed21a193627715350cb38a96b75b884f6548e6c8d24f13f850dc52d4b35dd03fa8bf273d6db13acb227ad063db57520 WHIRLPOOL fe3b10644034b2337506e13143d7dcfa277cbe33e00ccbb27ec55b0b5c843023c924385bb131bdae06c9c19100d5bdd5f51f2446e875db73674f623cc80a35a9
+AUX capisuite-0.5.0-date-header.patch 931 SHA256 40ea8232599e36243bb8625698fc29a7733ace63fa1e7898fb67bab0e276f5e5 SHA512 529d42efd275f72b739a03b6b8c75d3c4991d193a750ecec40897b88256f51c74205af3d9c03b8df8d95af390b84394fb75efb868ff1aa554228f4406414f348 WHIRLPOOL 8cbe05ba858714bca275107204728a110bd765efb743e7ce21735f20d7df95f389e96788dda30f254cd710a53c5e65f26abd1d364549ed0ad8dcf521f4d5e38a
+AUX capisuite-0.5.0-fax-compatibility.patch 347 SHA256 9da72d04e220461f54058ab6f53d76c1eebc0d6385c26ea94575889d26bfea1e SHA512 752ff503961a2726f2dc8659156951db0a1773f686878d84cc09f03c58e37b5b24be2cacf7c522be85d3c4dc638b6cf8d5b466d74f66b721d105115872f1a402 WHIRLPOOL b1a4d635eca6f701b8bdbd53b58872d6512f2ea3a07cb526288fdc8d8eb5d9205d385467e1e277d9e8ac00d328d4d9e24c245ff0c2d8152572ccd3922e0ac676
+AUX capisuite-0.5.0-gcc43.patch 654 SHA256 4f9e71b141545238827135321891eae2620ee9d087c7969d05624cb7334a0b98 SHA512 cc20929c1b98f4a9972b3d41cfd3a4eb9a470437ee45e816735ac7f7b86c9a24ae44f5699655b84b7bfc30b0ba6bf388ff9e92e3b21dc44c0a9c741138de553b WHIRLPOOL 0569a1a9853386a17c8c3827344ed3c381e5247457dc985acd3e12cc508901a0118e5478d0543d224ce856817855a9c4052849d2bb35a45cdfc89c084645a957
+AUX capisuite-0.5.0-python25.patch 2146 SHA256 779555ba1ca8d894b87ee1dcc658cf7cf6d124820c1f50b8658df60cee332d59 SHA512 545dcddb1a9d6970751dba5c5eae4ccca40f71834b38ed56be562117b7469536404a2de025ccaa495f47308918500540aaf523d12352d043959bbfc55e8666a4 WHIRLPOOL 6bf9869ae9a5210f8930a5ec90380a7bc5e3ad3db77334974dae2ed89030b10c23ebd4c78a4897c26b9bc1f53e4592753c25711d70eb2e1a391df2b736a4fcac
+AUX capisuite-0.5.0-respect-ar.patch 246 SHA256 aee35922000fee627ea3b4fb8ef32cb1daa8ba1eda2da04c75fbdb4c5415c288 SHA512 f6cc98a216097e43dad8fb1bde69ad055f1283d61f3983fdff73d6be79dae7db7ef59470b1a2d309764236b6298ad8ca299b1574a52fbf9ddc4a6b9e9afa7da3 WHIRLPOOL 815b2e04850f8fcd6e2e7a480f887c8721b2b8b4af1da9760618c2777b83a91627a2d5bed9c2cd208674709ba90f54eac4e8c98115d4cad1fe78ce5a719ab461
AUX capisuite-fax-compatibility.patch 423 SHA256 a64a3cb28aea777f19a84027fda3594cc4e632ebeab4f8f6c448ab386dfb105a SHA512 a9435db3135be4f057c5e3fa45c4a04a887117a4253e8218f3a46471ae434db9b7e91847afc146fa9e45f3b30be7de81bf785958164785c4fdf0b575b868edd4 WHIRLPOOL e0761d7f091c8370c55ba4c058d9502b1916c870c9872f08e1ee0f0f1c0e543400965ccbfe03420fbaadd90c533c375df66e7e0d1d955e4a251211e1f5f24560
AUX capisuite.initd 1417 SHA256 35ad8798dd863cc5f6f2d9c429274a19b04dcab1f96b26c02f8e00f268f5df58 SHA512 2f2b492a025fed620d80774ce82ee9cced49905712b64a9704df60cb36c83a2bb44f210fe7cbd80ab34f3908d6157623a63b9166bf5f9e19f3123cf9f5de72fd WHIRLPOOL 81a49ae085930f92b73358f02c045265f4964e41871b1b251c59a54b1dbe8f4f784f65959d3ceb6db8b8d7346267e1a25b21457fd7097b0b2b5df269bf3a23e9
AUX capisuite.logrotated 1003 SHA256 d8e3135693c5040f1b817c2776235fd35fa926a98e378a9ce6f2733d0095cc53 SHA512 b6c4491cfdeb4e03420e44cccb3c9ad8a0eb440e55cad246c9f40c6e27f865238a16d27736d759eef6c583c171fae32b7ecf4122f77ff0805c4d0b78d33957ce WHIRLPOOL c40406f25c52c41943462f106a5d791fd33ff74b03b7c3314e8fa0e52c70a1888588cda056d5344ef37ec904084cd0ef8e7fce353c365b4b25e283140949f3d9
DIST capisuite-0.4.5.tar.gz 1184603 SHA256 3e94e42eae6477a222c608c2cd040568fd9fcfa4e8eb0b06a538175d44cbae96 SHA512 f52a0a687443562d514f2d485724208b4a0d856b87c202190fdbf520f5c11929c3c7ddf9fed73ed64b02fdfab19631973c5a54d7301d290d339bcb12274fceaa WHIRLPOOL 163c9d6cedf9966fd3ada091e42534f16d2dccfbdd1cfa383c74543af422ec66697db110c1be76eb124669e19fc19bb7f751c77b06f1428bf1392bf54a629c40
+DIST capisuite-0.5.0.tar.gz 2750086 SHA256 6c4e0000a1bd29d046f70c6808d87b4d9cb3a18c7f05c162fd97e0d5ae17e3e5 SHA512 cb765e3fd8b86fc1baba2ee8055652fd9151333d3727e8935f193c47a0b80facca595e76fdf99bcb796fb6aee34776c39b9acef4b30fd65a1aa02322388a6211 WHIRLPOOL b2724e446989e57e7850703506bc71764e5116c8922f6fc912915ec6126663197eedf1233baf14a6afae7160af2356f4d05c573d47f7fddc42af1f5230293b55
EBUILD capisuite-0.4.5-r7.ebuild 2442 SHA256 f4b76520096d4989a1968b3bae301226db8b6ed9419be17d7958f78d63dd0b11 SHA512 cae166bfc4f29022053de0d951ae20eec87752d6a7d317f2b243230e726693ba22d506c07c7907c9fbaec5f2b934a1f1b6a590a9c596fb789439d458673e6631 WHIRLPOOL ab7be374b40336cb65b6e7ccdf9a2503dd421d95a65494824690275dee3c45027a42494629728654e4ec4ebabcbf54b71b7061f6f754764dab500ef78826b769
-MISC ChangeLog 7126 SHA256 fb26d9f76a79d13f4cf0c3281405ee86439d6063236fdd9d77b632efeb29c7d5 SHA512 e7ad7681e3c87575f350f222743d7f6cdd48d079134da5d0cbd6064e8c1785632610d645ab854945a6f7911e534237c7be2b8d184eca1ce2a23adb705cac0905 WHIRLPOOL 77bf1c581b49a57ecf88caf46ae541394f9a2c272460e4bca20ffceddd3e4396bcd891023105ec662e35f3f79ef93a5f3cf944dd9eda49984c0249e1b4ccb15b
+EBUILD capisuite-0.5.0-r1.ebuild 2179 SHA256 fd30841d5433cda64fc1444425ea71d83e16c85c8a0910fb1e8690a59592dfa8 SHA512 6fb1980ab18e61040ecd7c53baf16975b5a8d48903e26a048dd2b747ff817d60063ba39e0b2f178d763ad37b319db345b3b1f15018bbea6c2963d775c7493dd1 WHIRLPOOL 86077ea45fb7a5490c1c6cd8e68d7b8154dea80e67bba39694c341ed59f59f3017e9cc14b6142d0aa9ec7adaa735ec6a085cfe9fcf1e9d4187d6cb1336eb1a5f
+MISC ChangeLog 7395 SHA256 8c0ea14ced6839a6c8de6d62f92bdfc2afaabfc7d41ecb0bc4b1067b5b3f30e5 SHA512 c84e4cb4d1440361a7ecbed00ab12c227fbdbc8804bf717516918cfc6b1ded11dfeac36ec2b8d36791a6ed2df3a59b190e744a7762902e68511ffef5cd21fbf8 WHIRLPOOL 5c48f78ddfbc2b99f1bf39dbc242ea85fe2ad9732c70aef0b21201bf1a1be48f5b7ea0df46e581b25f66ff42c672379073dd34afe792e4debfc75744b18ab90b
MISC metadata.xml 163 SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 SHA512 275566c067e365604d523694db8e2417e0ccf91227d1204a104912d46841d193d1cb0a39e31663f30bfb92bda09523277b61661093bfb80ca9a9e70b20ea91f0 WHIRLPOOL f02b3040d2c474daa9d38e7d17ee7d138245e06be8c26403efd656d03f54495e344157c23245bc925a0f5319f507d30a68924997ac9880e32593855d0ac0fad7
diff --git a/net-dialup/capisuite/capisuite-0.5.0-r1.ebuild b/net-dialup/capisuite/capisuite-0.5.0-r1.ebuild
new file mode 100644
index 0000000..adf5086
--- /dev/null
+++ b/net-dialup/capisuite/capisuite-0.5.0-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/capisuite-0.4.5-r6.ebuild,v 1.5 2011/04/05 05:45:46 ulm Exp $
+
+EAPI=3
+PYTHON_DEPEND="2"
+RESTRICT_PHYTON_ABIS="3.*"
+
+inherit eutils autotools flag-o-matic multilib python
+
+DESCRIPTION="ISDN telecommunication suite providing fax and voice services"
+HOMEPAGE="http://www.capisuite.de"
+SRC_URI="http://www.final-frontier.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="dev-lang/python
+ media-sound/sox
+ >=media-libs/tiff-3.7.1
+ media-gfx/jpeg2ps
+ media-gfx/sfftobmp
+ app-text/ghostscript-gpl
+ net-dialup/capi4k-utils"
+RDEPEND="${DEPEND}
+ virtual/mta"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+
+ # patched scripts/cs_helpers.pyin (bug #96540)
+ epatch "${FILESDIR}/${P}-date-header.patch"
+
+ # patched src/backend/connection.cpp (bug #69522)
+ epatch "${FILESDIR}/${P}-fax-compatibility.patch"
+
+ # GCC 4.3 patches (bug #236777)
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+
+ # Python 2.5 patches (bug #232734)
+ epatch "${FILESDIR}/${P}-python25.patch"
+
+ # scripts/Makefile.am patch for newer automake
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+
+ # run autotools
+ eautoreconf
+}
+
+src_configure() {
+ strip-flags # see bug #90901
+ econf --localstatedir=/var \
+ --with-docdir="/usr/share/doc/${PF}" || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed."
+
+ rm -f "${D}"/usr/{lib,share}/capisuite/README
+ rmdir -p --ignore-fail-on-non-empty "${D}/var/log"
+ rm -f "${D}/usr/share/doc/${PF}"/{COPYING,manual.pdf}
+ keepdir /var/spool/capisuite/{done,failed,sendq,users}
+
+ dodir /etc/init.d
+ newinitd "${FILESDIR}/capisuite.initd" capisuite
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/capisuite.logrotated" capisuite
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ exeinto /etc/cron.daily
+ doexe capisuite.cron
+
+ insinto /etc/capisuite
+ doins cronjob.conf
+}
+
+pkg_postinst() {
+ python_mod_optimize cs_helpers.py
+}
+
+pkg_postrm() {
+ python_mod_cleanup cs_helpers.py
+}
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)