summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Freise <dennis.freise@final-frontier.org>2012-07-08 17:45:18 +0200
committerDennis Freise <dennis.freise@final-frontier.org>2012-07-08 17:45:18 +0200
commit5d10673bbc1cf550022b9f62b4a2b9d02e891622 (patch)
treeaa48a70253952ee320af8a6b714de4658c8acc4a
parentWrong digest for Changelog corrected (diff)
downloaddfreise-5d10673bbc1cf550022b9f62b4a2b9d02e891622.tar.gz
dfreise-5d10673bbc1cf550022b9f62b4a2b9d02e891622.tar.bz2
dfreise-5d10673bbc1cf550022b9f62b4a2b9d02e891622.zip
+capisuite-0.4.5-r7 - initial add of capisuite to repository.
Patch for newer automake versions, supports active python 3.* version (if you still have python >2.2 installed in parallel), general ebuild cleanup.
-rw-r--r--net-dialup/capisuite/ChangeLog192
-rw-r--r--net-dialup/capisuite/Manifest15
-rw-r--r--net-dialup/capisuite/capisuite-0.4.5-r7.ebuild103
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-Makefile.patch12
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-as-needed.patch11
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-capi4linux_v3.diff103
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-date-header.patch26
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-gcc43.patch21
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-python25.patch49
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-sox.patch12
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-syntax.patch133
-rw-r--r--net-dialup/capisuite/files/capisuite-fax-compatibility.patch12
-rw-r--r--net-dialup/capisuite/files/capisuite.initd58
-rw-r--r--net-dialup/capisuite/files/capisuite.logrotated39
-rw-r--r--net-dialup/capisuite/metadata.xml5
15 files changed, 791 insertions, 0 deletions
diff --git a/net-dialup/capisuite/ChangeLog b/net-dialup/capisuite/ChangeLog
new file mode 100644
index 0000000..1e57bdb
--- /dev/null
+++ b/net-dialup/capisuite/ChangeLog
@@ -0,0 +1,192 @@
+# ChangeLog for net-dialup/capisuite
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*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
+ newer automake versions.
+
+ 05 Apr 2011; Ulrich Mueller <ulm@gentoo.org> capisuite-0.4.5-r5.ebuild,
+ capisuite-0.4.5-r6.ebuild:
+ Depend on dev-lang/python because virtual/python will go away, bug 358849.
+
+ 23 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ capisuite-0.4.5-r5.ebuild, capisuite-0.4.5-r6.ebuild:
+ Delete deprecation warnings (bug #315089).
+
+ 26 Dec 2009; Peter Volkov <pva@gentoo.org> capisuite-0.4.5-r5.ebuild,
+ capisuite-0.4.5-r6.ebuild:
+ virtual/ghostscript->app-text/ghostscript-gpl: ghostscript-gpl is the only
+ implementation left in the tree.
+
+ 28 Jun 2009; Markus Meier <maekke@gentoo.org> capisuite-0.4.5-r6.ebuild:
+ amd64/x86 stable, bug #274775
+
+*capisuite-0.4.5-r6 (12 May 2009)
+
+ 12 May 2009; Samuli Suominen <ssuominen@gentoo.org>
+ +capisuite-0.4.5-r6.ebuild, +files/capisuite-0.4.5-sox.patch:
+ Fix from friendly administrator, use -2 instead of -w in SOX parameters
+ wrt #250320.
+
+ 14 Feb 2009; Markus Meier <maekke@gentoo.org> capisuite-0.4.5-r5.ebuild:
+ amd64/x86 stable, bug #245571
+
+*capisuite-0.4.5-r5 (13 Sep 2008)
+
+ 13 Sep 2008; Stefan Briesenick <sbriesen@gentoo.org>
+ +files/capisuite-0.4.5-gcc43.patch, +files/capisuite-0.4.5-python25.patch,
+ -files/capisuite, +capisuite-0.4.5-r5.ebuild:
+ added gcc 4.3 + python 2.5 patches, minor ebuild cleanup. Solving bugs
+ #221557, #226589, #232734 and #236777.
+
+ 29 May 2008; Ali Polatel <hawking@gentoo.org> capisuite-0.4.5-r4.ebuild:
+ python_mod_compile is ROOT aware. Fixed python_mod_cleanup.
+
+ 15 Nov 2007; Alin Năstac <mrness@gentoo.org>
+ +files/capisuite-0.4.5-as-needed.patch, capisuite-0.4.5-r4.ebuild:
+ Fix build failure with LDFLAGS=-Wl,--as-needed, thanks to stephan wezel
+ <s.wezel@web.de> (#187534).
+
+ 13 Jul 2007; Alin Năstac <mrness@gentoo.org> -capisuite-0.4.5-r3.ebuild,
+ capisuite-0.4.5-r4.ebuild:
+ Stable on x86. Remove old revision.
+
+*capisuite-0.4.5-r4 (22 Sep 2006)
+
+ 22 Sep 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ +files/capisuite-0.4.5-syntax.patch, +capisuite-0.4.5-r4.ebuild:
+ fixed deprecation syntax errors in incoming.py and as a precaution also
+ idle.py, solving bug #130234 and #147854.
+
+ 22 Sep 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ -files/capisuite-0.4.5-capiv3.patch, -files/capisuite-0.4.5-gentoo.patch,
+ -capisuite-0.4.5.ebuild:
+ removed old version + obsolete patches.
+
+ 22 Apr 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ capisuite-0.4.5-r3.ebuild:
+ stable on x86.
+
+ 11 Apr 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ -capisuite-0.4.5-r1.ebuild, -capisuite-0.4.5-r2.ebuild:
+ removed obsolete revisions.
+
+ 11 Apr 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ capisuite-0.4.5.ebuild:
+ fixed tiff dependency (solving bug #129458).
+
+ 11 Apr 2006; Stefan Briesenick <sbriesen@gentoo.org>
+ capisuite-0.4.5-r3.ebuild:
+ added multi-lib eclass, fixed tiff dependency (solving bug #129458).
+
+ 04 Oct 2005; Sven Wegener <swegener@gentoo.org> capisuite-0.4.5.ebuild,
+ capisuite-0.4.5-r1.ebuild, capisuite-0.4.5-r2.ebuild,
+ capisuite-0.4.5-r3.ebuild:
+ capi4k-utils is needed in DEPEND
+
+ 04 Oct 2005; Alin Nastac <mrness@gentoo.org> capisuite-0.4.5.ebuild,
+ capisuite-0.4.5-r1.ebuild, capisuite-0.4.5-r2.ebuild,
+ capisuite-0.4.5-r3.ebuild:
+ Remove INSTALL from docs.
+
+ 07 Aug 2005; Stefan Briesenick <sbriesen@gentoo.org>
+ -capisuite-0.4.5.3.ebuild:
+ removed obsolete testing ebuild with debian patches
+
+*capisuite-0.4.5-r3 (07 Aug 2005)
+
+ 07 Aug 2005; Stefan Briesenick <sbriesen@gentoo.org>
+ +capisuite-0.4.5-r3.ebuild:
+ added strip-flags (solving bug #90901)
+
+*capisuite-0.4.5-r2 (20 Jun 2005)
+
+ 20 Jun 2005; Stefan Briesenick <sbriesen@gentoo.org>
+ +files/capisuite-0.4.5-date-header.patch, +capisuite-0.4.5-r2.ebuild:
+ Added date-header patch for cs_helpers.py, thanks to Torben Janssen (see bug
+ #96540)
+
+*capisuite-0.4.5-r1 (04 Jun 2005)
+
+ 04 Jun 2005; Stefan Schweizer <genstef@gentoo.org>
+ +files/capisuite-0.4.5-capi4linux_v3.diff, +files/capisuite.logrotated,
+ +capisuite-0.4.5-r1.ebuild:
+ New ebuild compiling the python modules.
+
+*capisuite-0.4.5.3 (16 May 2005)
+
+ 16 May 2005; Stefan Schweizer <genstef@gentoo.org>
+ +capisuite-0.4.5.3.ebuild:
+ Version Bump adding debian patches since the upstream maintainer is dead,
+ ~amd64
+
+ 14 Apr 2005; Alin Nastac <mrness@gentoo.org>
+ -files/capisuite-0.4.4-gentoo.patch, -capisuite-0.4.4.ebuild,
+ -capisuite-0.4.4-r1.ebuild, -capisuite-0.4.4-r2.ebuild:
+ Remove obsolete versions
+
+ 29 Mar 2005; Stefan Schweizer <genstef@gentoo.org>
+ +files/capisuite-0.4.5-capiv3.patch, capisuite-0.4.5.ebuild:
+ Fix capisuite to enable compilation with capi4k-utils-20050322 thanks to
+ Stefan Briesenick
+
+ 06 Feb 2005; Alin Nastac <mrness@gentoo.org> capisuite-0.4.5.ebuild:
+ Mark stable on x86.
+
+*capisuite-0.4.5 (29 Nov 2004)
+
+ 29 Nov 2004; Alin Nastac <mrness@gentoo.org>
+ +files/capisuite-0.4.5-gentoo.patch, capisuite-0.4.4-r2.ebuild,
+ +capisuite-0.4.5.ebuild:
+ Version bump, thanks to tove <bugs@veller.net> (see bug #72778). Fix
+ dependencies.
+
+*capisuite-0.4.4-r2 (18 Nov 2004)
+
+ 18 Nov 2004; Mike Doty <kingtaco@gentoo.org>
+ +files/capisuite-fax-compatibility.patch, +capisuite-0.4.4-r2.ebuild:
+ patched src/backend/connection.cpp for bug #69522.
+
+ 15 Nov 2004; Alin Nastac <mrness@gentoo.org> capisuite-0.4.4-r1.ebuild:
+ Solve bug #71187, unblocked by #53889.
+
+*capisuite-0.4.4-r1 (14 Nov 2004)
+
+ 14 Nov 2004; Alin Nastac <mrness@gentoo.org> +capisuite-0.4.4-r1.ebuild:
+ Correct dependencies, thanks to tove <bugs@veller.net>.
+ Partially solve bug #71187, blocked by #53889.
+
+ 14 Nov 2004; Alin Nastac <mrness@gentoo.org>
+ -files/capisuite-0.4.3-gentoo.patch, -capisuite-0.4.3.ebuild,
+ capisuite-0.4.4.ebuild:
+ Remove 0.4.3 version, dependent on an inxexistent capi4k-utils. Correct
+ DEPEND/RDEPEND. Mark 0.4.4 stable on x86.
+
+ 14 Oct 2004; David Holm <dholm@gentoo.org> capisuite-0.4.4.ebuild:
+ Added to ~ppc.
+
+*capisuite-0.4.4 (02 Oct 2004)
+
+ 02 Oct 2004; Daniel Black <dragonheart@gentoo.org>
+ +files/capisuite-0.4.4-gentoo.patch, capisuite-0.4.3.ebuild,
+ +capisuite-0.4.4.ebuild:
+ version bump as per bug #37311. ebuild thanks to Kai Leibrandt
+ <k_leibrandt@hotmail.com>. x86 stable on 0.4.3. Depandancies fixed.
+
+ 22 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> capisuite-0.4.3.ebuild:
+ fix DESCRIPTION, HOMEPAGE, SRC_URI (bug #54714)
+
+ 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> capisuite-0.4.3.ebuild:
+ Add inherit eutils
+
+ 12 Feb 2004; Heinrich Wendel <lanius@gentoo.org> capisuite-0.4.3.ebuild:
+ added missing deps
+
+*capisuite-0.4.3 (28 Nov 2003)
+
+ 28 Nov 2003; Brandy Westcott brandy@gentoo.org capisuite-0.4.3.ebuild:
+ Initial import. Thanks to Bernd Wurst <mail@bernd-wurst.de> & marco
+ <marco@md2.ath.cx> for providing ebuilds. Closes bug #23456.
+
diff --git a/net-dialup/capisuite/Manifest b/net-dialup/capisuite/Manifest
new file mode 100644
index 0000000..3e04bb0
--- /dev/null
+++ b/net-dialup/capisuite/Manifest
@@ -0,0 +1,15 @@
+AUX capisuite-0.4.5-Makefile.patch 473 SHA256 d972814a385e70aba1848cf5341e57aaf1f544077841b2a05621be8c5dc8af34 SHA512 b415f2f04d5ffa98d044e4fe3ebcc1c25df70bea4b5f8dc65426ec192030d0b61237f3639f17694ba90fe74c0c0e5e381d78ab714d3d6430d9bb1b5951e49f86 WHIRLPOOL 32eec84cadd033a2c514a5da6411071b8d04b0e7ecb7d07f97b1100871e09b5a6c546505eb54b056399b21ea9153db6cc1303f539a7d80920402676d276fde2e
+AUX capisuite-0.4.5-as-needed.patch 761 SHA256 53751ba6c6a2cbc99b250ba2e089642c73d2f6235babcee05f43cdc36eaf8001 SHA512 b105adea33cb10b590c916548cdeffec042c60e36abfa1e02354a0d022072732e464564e6c6a583d2ab5bfbc1bd1e4f4dc02e97e027e755cace8fbcf6df11eaa WHIRLPOOL c0a703dd645d6b21dc68366c56e7f39ae4ef67490bc4d380582baa019368d2dac4c0f3a223e528c7ae037c15947eeb59de6e6f0f25f1a704ea6a214af912e785
+AUX capisuite-0.4.5-capi4linux_v3.diff 4395 SHA256 69d1e2ea6668bb237b0b4bbfb4058ebb9c53b4c3b4e676c7ce1cb422031b1693 SHA512 80dbbda4469197b0f0f45b0f16a3c13f0e74ffd6d8ba04d18a8970a1fbeabda47a96003a314173fb584c4104e7483c2bca0ed4efc729bdfbb96e8dc8d515e415 WHIRLPOOL 53d5e5a415edee96221cbf37def4408a0451c5c4d70715ebb0397217c62d783732578979f238ae84bea4b6984240b4007f9f9324ddc552c50fdda242bceee96e
+AUX capisuite-0.4.5-date-header.patch 821 SHA256 36d7388c9fb3700718cf2df6124d9343a0494c1b802570afa7cc95a44264cc18 SHA512 e06cc4d146f9c751034c06c90b217d468819cba643cddd6c90b7c1880ce50e5ef7ecdd96db6399bed3d38c0d396269532b1b4c9b9c1cee713c17a045488f209f WHIRLPOOL 6a3327036467eed15b74960773287b7fc4735ff16836803be7d6fde288c66c406bde6a803ec04d339284bf445a9abaa5a0763347a2715ee005b2bcdffb55afdd
+AUX capisuite-0.4.5-gcc43.patch 656 SHA256 a177c318ea08d199129f39f5fb1236cfb51d2186374451d52c58b5fdd0f20764 SHA512 c97e044bdc482215c25adf572ce5d39825d5631af0c35ea751d06c902c6c11404ac2376ccad506f4a337cb62c100ed79f8bf7339271e38f22e09f7e79b3b34b4 WHIRLPOOL ef0e16c1f9910afb90e2c34f8dc4c7c5c21bc0eb1b4d63bf8f1bbeaadf13a9bcfe1c89a52e33ba1277157a515e9448074da37df67bc28c554d03ec1f3475f5fb
+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-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
+EBUILD capisuite-0.4.5-r7.ebuild 2442 SHA256 f4b76520096d4989a1968b3bae301226db8b6ed9419be17d7958f78d63dd0b11 SHA512 cae166bfc4f29022053de0d951ae20eec87752d6a7d317f2b243230e726693ba22d506c07c7907c9fbaec5f2b934a1f1b6a590a9c596fb789439d458673e6631 WHIRLPOOL ab7be374b40336cb65b6e7ccdf9a2503dd421d95a65494824690275dee3c45027a42494629728654e4ec4ebabcbf54b71b7061f6f754764dab500ef78826b769
+MISC ChangeLog 7126 SHA256 fb26d9f76a79d13f4cf0c3281405ee86439d6063236fdd9d77b632efeb29c7d5 SHA512 e7ad7681e3c87575f350f222743d7f6cdd48d079134da5d0cbd6064e8c1785632610d645ab854945a6f7911e534237c7be2b8d184eca1ce2a23adb705cac0905 WHIRLPOOL 77bf1c581b49a57ecf88caf46ae541394f9a2c272460e4bca20ffceddd3e4396bcd891023105ec662e35f3f79ef93a5f3cf944dd9eda49984c0249e1b4ccb15b
+MISC metadata.xml 163 SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 SHA512 275566c067e365604d523694db8e2417e0ccf91227d1204a104912d46841d193d1cb0a39e31663f30bfb92bda09523277b61661093bfb80ca9a9e70b20ea91f0 WHIRLPOOL f02b3040d2c474daa9d38e7d17ee7d138245e06be8c26403efd656d03f54495e344157c23245bc925a0f5319f507d30a68924997ac9880e32593855d0ac0fad7
diff --git a/net-dialup/capisuite/capisuite-0.4.5-r7.ebuild b/net-dialup/capisuite/capisuite-0.4.5-r7.ebuild
new file mode 100644
index 0000000..92b084e
--- /dev/null
+++ b/net-dialup/capisuite/capisuite-0.4.5-r7.ebuild
@@ -0,0 +1,103 @@
+# 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.capisuite.de/${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"
+
+ # taken from capisuite-0.4.5-5.src.rpm (SuSE-9.3)
+ epatch "${FILESDIR}/${P}-capi4linux_v3.diff"
+
+ # patched scripts/cs_helpers.pyin (bug #96540)
+ epatch "${FILESDIR}/${P}-date-header.patch"
+
+ # patched src/backend/connection.cpp (bug #69522)
+ epatch "${FILESDIR}/${PN}-fax-compatibility.patch"
+
+ # patched scripts/{incoming,idle}.py (bug #147854)
+ epatch "${FILESDIR}/${P}-syntax.patch"
+
+ # GCC 4.3 patches (bug #236777)
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+
+ # Python 2.5 patches (bug #232734)
+ epatch "${FILESDIR}/${P}-python25.patch"
+
+ # Compability with current SOX (bug #250320)
+ epatch "${FILESDIR}/${P}-sox.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.4.5-Makefile.patch b/net-dialup/capisuite/files/capisuite-0.4.5-Makefile.patch
new file mode 100644
index 0000000..4abd326
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-Makefile.patch
@@ -0,0 +1,12 @@
+--- scripts/Makefile.am.orig 2012-07-05 14:10:56.725746439 +0200
++++ scripts/Makefile.am 2012-07-05 14:12:00.840861325 +0200
+@@ -1,7 +1,8 @@
+ spooldir = @localstatedir@/spool/capisuite
+ pkgsysconfdir = @sysconfdir@/capisuite
+
+-dist_pkglib_DATA = idle.py incoming.py README
++scriptdatadir=$(pkglibdir)
++dist_scriptdata_DATA = idle.py incoming.py README
+ python_module_DATA = cs_helpers.py
+ EXTRA_DIST = cs_helpers.pyin fax.confin answering_machine.confin capisuitefax.in
+
diff --git a/net-dialup/capisuite/files/capisuite-0.4.5-as-needed.patch b/net-dialup/capisuite/files/capisuite-0.4.5-as-needed.patch
new file mode 100644
index 0000000..d740366
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-as-needed.patch
@@ -0,0 +1,11 @@
+--- acinclude.m4.old 2007-08-02 21:34:26.000000000 +0200
++++ acinclude.m4 2007-08-02 21:42:36.000000000 +0200
+@@ -155,7 +155,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.4.5-capi4linux_v3.diff b/net-dialup/capisuite/files/capisuite-0.4.5-capi4linux_v3.diff
new file mode 100644
index 0000000..1f4e501
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-capi4linux_v3.diff
@@ -0,0 +1,103 @@
+diff -urN capisuite-0.4.5.org/acinclude.m4 capisuite-0.4.5/acinclude.m4
+--- capisuite-0.4.5.org/acinclude.m4 2004-11-28 14:35:28.000000000 +0100
++++ capisuite-0.4.5/acinclude.m4 2005-03-08 07:31:42.130970593 +0100
+@@ -72,6 +72,21 @@
+ )
+ ]) dnl CS_TEST_CAPI4LINUX
+
++#
++# old capiutils.h missed the Globalconfiguration in BProtocol
++# in library version 3 this was added to the API
++#
++AC_DEFUN([CS_TEST_CAPI4LINUX_V3],
++[AC_MSG_CHECKING([for capi20 ALERT with sending complete])
++AC_TRY_COMPILE([#include <capiutils.h>],
++ [_cmsg cm;void *p; p=CONNECT_REQ_GLOBALCONFIGURATION(&cm);],
++ [
++ AC_DEFINE([HAVE_CAPI4LINUX_V3],1,[we have GLOBALCONFIGURATION in BProtocol])
++ AC_MSG_RESULT([yes])
++ ],
++ [AC_MSG_RESULT([no])]
++)]) dnl CS_TEST_CAPI4LINUX_V3
++
+ # PGAC_CHECK_PYTHON_DIRS
+ # -----------------------
+ # Determine the name of various directory of a given Python installation.
+diff -urN capisuite-0.4.5.org/config.h.in capisuite-0.4.5/config.h.in
+--- capisuite-0.4.5.org/config.h.in 2004-11-28 14:36:20.000000000 +0100
++++ capisuite-0.4.5/config.h.in 2005-03-08 07:31:42.135969715 +0100
+@@ -18,6 +18,9 @@
+ /* we have new ALERT_REQ implementation */
+ #undef HAVE_NEW_CAPI4LINUX
+
++/* we have GLOBALCONFIGURATION in BProtocol */
++#undef HAVE_CAPI4LINUX_V3
++
+ /* we can #include<ostream> instead of ostream.h - new gcc3 feature */
+ #undef HAVE_OSTREAM
+
+diff -urN capisuite-0.4.5.org/configure.in capisuite-0.4.5/configure.in
+--- capisuite-0.4.5.org/configure.in 2004-11-28 14:35:16.000000000 +0100
++++ capisuite-0.4.5/configure.in 2005-03-08 07:31:42.141968662 +0100
+@@ -18,6 +18,7 @@
+ CS_TEST_GCC3
+ CS_TEST_SFFTOBMP
+ CS_TEST_CAPI4LINUX
++CS_TEST_CAPI4LINUX_V3
+
+ CS_SET_DOCDIR
+
+diff -urN capisuite-0.4.5.org/src/backend/capi.cpp capisuite-0.4.5/src/backend/capi.cpp
+--- capisuite-0.4.5.org/src/backend/capi.cpp 2004-11-28 14:35:25.000000000 +0100
++++ capisuite-0.4.5/src/backend/capi.cpp 2005-03-08 07:35:02.553782154 +0100
+@@ -148,7 +148,15 @@
+ << " CIPValue 0x" << CIPValue << ", B1proto 0x" << B1protocol << ", B2proto 0x" << B2protocol <<", B3proto 0x" << B3protocol << endl;
+ }
+ unsigned info=CONNECT_REQ(&CMSG, applId, messageNumber, controller, CIPValue, calledPartyNumber, callingPartyNumber, NULL, NULL,
+- B1protocol, B2protocol, B3protocol, B1configuration, B2configuration, B3configuration, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
++ B1protocol, B2protocol, B3protocol, B1configuration, B2configuration, B3configuration,
++ #ifdef HAVE_CAPI4LINUX_V3
++ NULL,
++ #endif
++ NULL, NULL, NULL, NULL, NULL, NULL, NULL
++ #ifdef HAVE_CAPI4LINUX_V3
++ ,NULL
++ #endif
++ );
+ if (debug_level >= 2) {
+ debug << prefix() << "info: " << info << endl;
+ }
+@@ -181,7 +189,12 @@
+
+ if (debug_level >= 2) debug << prefix() << ">SELECT_B_PROTOCOL_REQ: ApplId 0x" << hex << applId << ", MsgNr 0x" << messageNumber << ", PLCI 0x" << plci
+ << ", B1protocol " << B1protocol << ", B2protocol " << B2protocol << ", B3protocol " << B3protocol << endl;
+- unsigned info=SELECT_B_PROTOCOL_REQ(&CMSG, applId, messageNumber++, plci, B1protocol, B2protocol, B3protocol, B1configuration, B2configuration, B3configuration);
++ unsigned info=SELECT_B_PROTOCOL_REQ(&CMSG, applId, messageNumber++, plci, B1protocol, B2protocol, B3protocol,
++ B1configuration, B2configuration, B3configuration
++ #ifdef HAVE_CAPI4LINUX_V3
++ ,NULL
++ #endif
++ );
+ if (debug_level >= 2)
+ debug << prefix() << "info: " << info << endl;
+
+@@ -295,12 +308,17 @@
+ << reject << ", B1proto 0x" << B1protocol << ", B2proto 0x" << B2protocol << ", B3proto 0x" << B3protocol << endl;
+
+ _cmsg new_message;
+- unsigned info=CONNECT_RESP(&new_message, applId, messageNumber, plci, reject, B1protocol, B2protocol, B3protocol, B1configuration, B2configuration, B3configuration, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
++ unsigned info=CONNECT_RESP(&new_message, applId, messageNumber, plci, reject, B1protocol, B2protocol, B3protocol,
++ B1configuration, B2configuration, B3configuration,
++ #ifdef HAVE_CAPI4LINUX_V3
++ NULL,
++ #endif
++ NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ if (debug_level >= 2)
+ debug << prefix() << "info: " << info << endl;
+
+ if (info != 0)
+- throw(CapiMsgError(info,"Error while CONNECT_REQ: "+Capi::describeParamInfo(info),"Capi::connect_resp()"));
++ throw(CapiMsgError(info,"Error while CONNECT_RESP: "+Capi::describeParamInfo(info),"Capi::connect_resp()"));
+
+ }
+
diff --git a/net-dialup/capisuite/files/capisuite-0.4.5-date-header.patch b/net-dialup/capisuite/files/capisuite-0.4.5-date-header.patch
new file mode 100644
index 0000000..76738fb
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-date-header.patch
@@ -0,0 +1,26 @@
+--- scripts/cs_helpers.pyin.orig 2004-11-28 14:35:23.000000000 +0100
++++ scripts/cs_helpers.pyin 2005-06-19 20:55:49.000000000 +0200
+@@ -10,6 +10,7 @@
+ # (at your option) any later version.
+
+ import os
++import time
+
+ # the name of the config file read by the scripts; see there for options and
+ # descriptions
+@@ -170,6 +171,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
+@@ -267,6 +269,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')
+
+ try:
+ server = smtplib.SMTP('localhost')
diff --git a/net-dialup/capisuite/files/capisuite-0.4.5-gcc43.patch b/net-dialup/capisuite/files/capisuite-0.4.5-gcc43.patch
new file mode 100644
index 0000000..51326c3
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-gcc43.patch
@@ -0,0 +1,21 @@
+--- src/backend/connection.cpp.orig 2008-09-05 08:53:19.000000000 +0200
++++ src/backend/connection.cpp 2008-09-05 08:54:08.000000000 +0200
+@@ -20,6 +20,7 @@
+ #include <pthread.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 2008-09-05 09:01:18.000000000 +0200
++++ src/backend/capi.cpp 2008-09-05 09:01:38.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.4.5-python25.patch b/net-dialup/capisuite/files/capisuite-0.4.5-python25.patch
new file mode 100644
index 0000000..e86919a
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-python25.patch
@@ -0,0 +1,49 @@
+--- src/application/pythonscript.cpp.orig 2004-11-28 14:35:24.000000000 +0100
++++ src/application/pythonscript.cpp 2008-08-03 17:12:45.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 2004-11-28 14:35:24.000000000 +0100
++++ src/application/idlescript.cpp 2008-08-03 17:13:55.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 2004-11-28 14:35:24.000000000 +0100
++++ src/application/incomingscript.cpp 2008-08-03 17:14:36.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 2008-08-03 17:10:41.000000000 +0200
++++ src/backend/capi.cpp 2008-08-03 17:21:37.000000000 +0200
+@@ -30,6 +30,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.4.5-sox.patch b/net-dialup/capisuite/files/capisuite-0.4.5-sox.patch
new file mode 100644
index 0000000..ef58325
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-sox.patch
@@ -0,0 +1,12 @@
+diff -ur capisuite-0.4.5.orig/scripts/cs_helpers.pyin capisuite-0.4.5/scripts/cs_helpers.pyin
+--- capisuite-0.4.5.orig/scripts/cs_helpers.pyin 2004-11-28 15:35:23.000000000 +0200
++++ capisuite-0.4.5/scripts/cs_helpers.pyin 2009-05-12 20:58:34.000000000 +0300
+@@ -227,7 +227,7 @@
+ elif (mail_type=="la"): # voice file
+ # la -> wav
+ # don't use stdout as sox needs a file to be able to seek in it otherwise the header will be incomplete
+- ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-w",basename+"wav")
++ ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-2",basename+"wav")
+ if (ret or not os.access(basename+"wav",os.R_OK)):
+ raise "conv-error","Error while calling sox. Not installed?"
+ filepart = email.MIMEAudio.MIMEAudio(open(basename+"wav").read(),"x-wav",email.Encoders.encode_base64,name=os.path.basename(basename)+"wav")
diff --git a/net-dialup/capisuite/files/capisuite-0.4.5-syntax.patch b/net-dialup/capisuite/files/capisuite-0.4.5-syntax.patch
new file mode 100644
index 0000000..0a0725f
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.4.5-syntax.patch
@@ -0,0 +1,133 @@
+--- scripts/incoming.py.orig 2004-11-28 14:35:23.000000000 +0100
++++ scripts/incoming.py 2006-09-22 15:17:28.000000000 +0200
+@@ -1,3 +1,4 @@
++# -*- coding: UTF-8 -*-
+ # incoming.py - standard incoming script for capisuite
+ # ----------------------------------------------------
+ # copyright : (C) 2002 by Gernot Hillier
+@@ -48,7 +49,7 @@
+ if config.has_option(u,'fax_numbers'):
+ numbers=config.get(u,'fax_numbers')
+ if (call_to in numbers.split(',') or numbers=="*"):
+- if (service in (capisuite.SERVICE_FAXG3,capisuite.SERVICE_VOICE)):
++ if (service in (capisuite.SERVICE_FAXG3,capisuite.SERVICE_VOICE)):
+ curr_user=u
+ curr_service=capisuite.SERVICE_FAXG3
+ break
+@@ -133,8 +134,8 @@
+
+ if (os.access(filename,os.R_OK)):
+ cs_helpers.writeDescription(filename,
+- "call_from=\""+call_from+"\"\ncall_to=\""+call_to+"\"\ntime=\""
+- +time.ctime()+"\"\ncause=\"0x%x/0x%x\"\n" % (cause,causeB3))
++ "call_from=\""+call_from+"\"\ncall_to=\""+call_to+"\"\ntime=\""
++ +time.ctime()+"\"\ncause=\"0x%x/0x%x\"\n" % (cause,causeB3))
+ userdata=pwd.getpwnam(curr_user)
+ os.chmod(filename,0600)
+ os.chown(filename,userdata[2],userdata[3])
+@@ -153,8 +154,8 @@
+ action="saveonly"
+ if (action=="mailandsave"):
+ cs_helpers.sendMIMEMail(fromaddress, mailaddress, "Fax received from "+call_from+" to "+call_to, faxFormat,
+- "You got a fax from "+call_from+" to "+call_to+"\nDate: "+time.ctime()+"\n\n"
+- +"See attached file.\nThe original file was saved to file://"+filename+"\n\n", filename)
++ "You got a fax from "+call_from+" to "+call_to+"\nDate: "+time.ctime()+"\n\n"
++ +"See attached file.\nThe original file was saved to file://"+filename+"\n\n", filename)
+
+ # @brief called by callIncoming when an incoming voice call is received
+ #
+@@ -234,8 +235,8 @@
+
+ if (os.access(filename,os.R_OK)):
+ cs_helpers.writeDescription(filename,
+- "call_from=\""+call_from+"\"\ncall_to=\""+call_to+"\"\ntime=\""
+- +time.ctime()+"\"\ncause=\"0x%x/0x%x\"\n" % (cause,causeB3))
++ "call_from=\""+call_from+"\"\ncall_to=\""+call_to+"\"\ntime=\""
++ +time.ctime()+"\"\ncause=\"0x%x/0x%x\"\n" % (cause,causeB3))
+ userdata=pwd.getpwnam(curr_user)
+ os.chmod(filename,0600)
+ os.chown(filename,userdata[2],userdata[3])
+@@ -250,8 +251,8 @@
+ mailaddress=curr_user
+ if (action=="mailandsave"):
+ cs_helpers.sendMIMEMail(fromaddress, mailaddress, "Voice call received from "+call_from+" to "+call_to, "la",
+- "You got a voice call from "+call_from+" to "+call_to+"\nDate: "+time.ctime()+"\n\n"
+- +"See attached file.\nThe original file was saved to file://"+filename+"\n\n", filename)
++ "You got a voice call from "+call_from+" to "+call_to+"\nDate: "+time.ctime()+"\n\n"
++ +"See attached file.\nThe original file was saved to file://"+filename+"\n\n", filename)
+
+
+ # @brief remote inquiry function (uses german wave snippets!)
+@@ -418,7 +419,7 @@
+ #
+ # Revision 1.9 2003/06/27 07:51:09 gernot
+ # - replaced german umlaut in filename "nachricht-gelscht.la", can cause
+-# problems on Redhat, thx to Herbert Hübner for reporting
++# problems on Redhat, thx to Herbert Hübner for reporting
+ #
+ # Revision 1.8 2003/06/16 10:21:05 gernot
+ # - define filename in any case (thx to Axel Schneck for reporting and
+--- scripts/idle.py.orig 2004-11-28 14:35:16.000000000 +0100
++++ scripts/idle.py 2006-09-22 15:33:50.000000000 +0200
+@@ -1,3 +1,4 @@
++# -*- coding: UTF-8 -*-
+ # idle.py - default script for capisuite
+ # ---------------------------------------------
+ # copyright : (C) 2002 by Gernot Hillier
+@@ -105,13 +106,13 @@
+ movejob(job_fax,sendq,done,user)
+ capisuite.log("job "+job_fax+": finished successfully",1)
+ mailtext="Your fax job to "+addressee+" ("+dialstring+") was sent successfully.\n\n" \
+- +"Subject: "+subject+"\nFilename: "+job_fax \
+- +"\nNeeded tries: "+str(tries) \
+- +("\nLast result: 0x%x/0x%x" % (result,resultB3)) \
+- +"\n\nIt was moved to file://"+done+user+"-"+job_fax
++ +"Subject: "+subject+"\nFilename: "+job_fax \
++ +"\nNeeded tries: "+str(tries) \
++ +("\nLast result: 0x%x/0x%x" % (result,resultB3)) \
++ +"\n\nIt was moved to file://"+done+user+"-"+job_fax
+ cs_helpers.sendSimpleMail(fromaddress,mailaddress,
+- "Fax to "+addressee+" ("+dialstring+") sent successfully.",
+- mailtext)
++ "Fax to "+addressee+" ("+dialstring+") sent successfully.",
++ mailtext)
+ else:
+ max_tries=int(cs_helpers.getOption(config,"","send_tries","10"))
+ delays=cs_helpers.getOption(config,"","send_delays","60,60,60,300,300,3600,3600,18000,36000").split(",")
+@@ -123,19 +124,19 @@
+ starttime=time.time()+next_delay
+ capisuite.log("job "+job_fax+": delayed for "+str(next_delay)+" seconds",2)
+ cs_helpers.writeDescription(sendq+job_fax,"dialstring=\""+dialstring+"\"\n"
+- +"starttime=\""+time.ctime(starttime)+"\"\ntries=\""+str(tries)+"\"\n"
+- +"user=\""+user+"\"\naddressee=\""+addressee+"\"\nsubject=\""+subject+"\"\n")
++ +"starttime=\""+time.ctime(starttime)+"\"\ntries=\""+str(tries)+"\"\n"
++ +"user=\""+user+"\"\naddressee=\""+addressee+"\"\nsubject=\""+subject+"\"\n")
+ if (tries>=max_tries):
+ movejob(job_fax,sendq,failed,user)
+ capisuite.log("job "+job_fax+": failed finally",1)
+ mailtext="I'm sorry, but your fax job to "+addressee+" ("+dialstring \
+- +") failed finally.\n\nSubject: "+subject \
+- +"\nFilename: "+job_fax+"\nTries: "+str(tries) \
+- +"\nLast result: 0x%x/0x%x" % (result,resultB3) \
+- +"\n\nIt was moved to file://"+failed+user+"-"+job_fax
++ +") failed finally.\n\nSubject: "+subject \
++ +"\nFilename: "+job_fax+"\nTries: "+str(tries) \
++ +"\nLast result: 0x%x/0x%x" % (result,resultB3) \
++ +"\n\nIt was moved to file://"+failed+user+"-"+job_fax
+ cs_helpers.sendSimpleMail(fromaddress,mailaddress,
+- "Fax to "+addressee+" ("+dialstring+") FAILED.",
+- mailtext)
++ "Fax to "+addressee+" ("+dialstring+") FAILED.",
++ mailtext)
+
+ fcntl.lockf(lockfile,fcntl.LOCK_UN)
+ lockfile.close()
+@@ -149,7 +150,7 @@
+ if (stationID==None):
+ capisuite.error("Warning: fax_stationID for user "+user+" not set")
+ stationID=""
+- headline=cs_helpers.getOption(config,user,"fax_headline","")
++ headline=cs_helpers.getOption(config,user,"fax_headline","")
+ (call,result)=capisuite.call_faxG3(capi,controller,outgoing_nr,dialstring,timeout,stationID,headline)
+ if (result!=0):
+ return(result,0)
diff --git a/net-dialup/capisuite/files/capisuite-fax-compatibility.patch b/net-dialup/capisuite/files/capisuite-fax-compatibility.patch
new file mode 100644
index 0000000..859ca88
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-fax-compatibility.patch
@@ -0,0 +1,12 @@
+diff -r -u -b -B src.orig/backend/connection.cpp src/backend/connection.cpp
+--- src.orig/backend/connection.cpp 2003-07-20 14:08:44.000000000 -0500
++++ src/backend/connection.cpp 2004-11-12 20:35:22.035045216 -0600
+@@ -85,7 +85,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.initd b/net-dialup/capisuite/files/capisuite.initd
new file mode 100644
index 0000000..1b9af8a
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite.initd
@@ -0,0 +1,58 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/files/capisuite.initd,v 1.1 2005/05/16 08:46:39 genstef Exp $
+
+opts="reload"
+
+depend() {
+ need capi
+}
+
+checkconfig() {
+ local conf_fax conf_voice sec rest
+ # Check if there are configured users for fax or
+ # answering machine. Otherwise exit.
+ # IMPORTANT: Change this or comment it out if you want to use
+ # your own CapiSuite scripts.
+ while read -r sec rest; do
+ if [ "${sec:0:1}" = "[" -a "$sec" != "[GLOBAL]" ]; then
+ conf_fax=yes
+ break
+ fi
+ done < /etc/capisuite/fax.conf
+ while read -r sec rest; do
+ if [ "${sec:0:1}" = "[" -a "$sec" != "[GLOBAL]" ]; then
+ conf_voice=yes
+ break
+ fi
+ done < /etc/capisuite/answering_machine.conf
+ # end check for configured users
+
+ if ! [ "$conf_fax" -o "$conf_voice" ]; then
+ eerror "Please configure CapiSuite first!"
+ return 1
+ fi
+
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting CapiSuite"
+ start-stop-daemon --start --quiet --exec /usr/sbin/capisuite -- -d
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping CapiSuite"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/capisuite --retry 10 --signal TERM >/dev/null
+ eend $?
+}
+
+reload() {
+ ebegin "Reload CapiSuite"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/capisuite --signal HUP
+ eend $?
+}
diff --git a/net-dialup/capisuite/files/capisuite.logrotated b/net-dialup/capisuite/files/capisuite.logrotated
new file mode 100644
index 0000000..9298cc5
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite.logrotated
@@ -0,0 +1,39 @@
+/var/log/capisuite.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ create 640 root adm
+ sharedscripts
+ postrotate
+ if [ -f /var/run/capisuite.pid ]; then \
+ if [ -x /usr/sbin/invoke-rc.d ]; then \
+ invoke-rc.d capisuite restart > /dev/null; \
+ else \
+ /etc/init.d/capisuite restart > /dev/null; \
+ fi; \
+ fi;
+ endscript
+}
+
+/var/log/capisuite.error {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ create 640 root adm
+ sharedscripts
+ postrotate
+ if [ -f /var/run/capisuite.pid ]; then \
+ if [ -x /usr/sbin/invoke-rc.d ]; then \
+ invoke-rc.d capisuite restart > /dev/null; \
+ else \
+ /etc/init.d/capisuite restart > /dev/null; \
+ fi; \
+ fi;
+ endscript
+}
diff --git a/net-dialup/capisuite/metadata.xml b/net-dialup/capisuite/metadata.xml
new file mode 100644
index 0000000..1e11e7b
--- /dev/null
+++ b/net-dialup/capisuite/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-dialup</herd>
+</pkgmetadata>