summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2005-06-04 15:53:51 +0000
committerStefan Schweizer <genstef@gentoo.org>2005-06-04 15:53:51 +0000
commit863d8921dc62dddff9e737fa47f4c749f406f526 (patch)
treeb83ea7b4254d258b4c0d72725436580ef96f0a29 /net-dialup/capisuite
parent0.7.0 version bump (diff)
downloadgentoo-2-863d8921dc62dddff9e737fa47f4c749f406f526.tar.gz
gentoo-2-863d8921dc62dddff9e737fa47f4c749f406f526.tar.bz2
gentoo-2-863d8921dc62dddff9e737fa47f4c749f406f526.zip
New ebuild compiling the python modules.
(Portage version: 1.589-cvs)
Diffstat (limited to 'net-dialup/capisuite')
-rw-r--r--net-dialup/capisuite/ChangeLog9
-rw-r--r--net-dialup/capisuite/Manifest6
-rw-r--r--net-dialup/capisuite/capisuite-0.4.5-r1.ebuild84
-rw-r--r--net-dialup/capisuite/files/capisuite-0.4.5-capi4linux_v3.diff103
-rw-r--r--net-dialup/capisuite/files/capisuite.logrotated39
-rw-r--r--net-dialup/capisuite/files/digest-capisuite-0.4.5-r11
6 files changed, 240 insertions, 2 deletions
diff --git a/net-dialup/capisuite/ChangeLog b/net-dialup/capisuite/ChangeLog
index 944c9d447d55..1d126b0dd8cb 100644
--- a/net-dialup/capisuite/ChangeLog
+++ b/net-dialup/capisuite/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dialup/capisuite
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/ChangeLog,v 1.17 2005/05/16 08:37:31 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/ChangeLog,v 1.18 2005/06/04 15:53:51 genstef Exp $
+
+*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)
diff --git a/net-dialup/capisuite/Manifest b/net-dialup/capisuite/Manifest
index 72cfaf9f0039..5c50a1a25acb 100644
--- a/net-dialup/capisuite/Manifest
+++ b/net-dialup/capisuite/Manifest
@@ -1,11 +1,15 @@
+MD5 6bdcf69e9a0263f27f583aee3a5b7165 capisuite-0.4.5-r1.ebuild 1991
MD5 017f50ded5070f5b725deda3ba7d7e9e capisuite-0.4.5.3.ebuild 1796
MD5 9a1a55d18f62b4adcfa40bcf19eefba2 capisuite-0.4.5.ebuild 1357
-MD5 d53569ef63792183e9e272d365418bc5 ChangeLog 2939
+MD5 40c89a2ce91837c347150b0cdc3ba73b ChangeLog 3175
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
MD5 63b5890053139f14a3d3baf78812e0bc files/capisuite-fax-compatibility.patch 423
MD5 a6bdc491a9d9a33c0f41c68f06a320ca files/capisuite 487
MD5 d0b0dd46c8f863d3849ee1ce118da842 files/capisuite-0.4.5-gentoo.patch 1979
+MD5 ae0010a9739f9b1273dd9a679d43d913 files/capisuite-0.4.5-capi4linux_v3.diff 4395
MD5 b6dc0c2a3cd0d7fb36b716a0e6514186 files/digest-capisuite-0.4.5 68
+MD5 bd2ad19acf9244ce2fcfaa06ad5f53e1 files/capisuite.logrotated 1003
MD5 b89c96393c676a2977e9b0b55b553b9f files/capisuite-0.4.5-capiv3.patch 2151
MD5 f8cc369b2ad959cf9f00457f2729d5da files/digest-capisuite-0.4.5.3 137
+MD5 b6dc0c2a3cd0d7fb36b716a0e6514186 files/digest-capisuite-0.4.5-r1 68
MD5 78748205ff049b27b92175e818a06e0d files/capisuite.initd 1417
diff --git a/net-dialup/capisuite/capisuite-0.4.5-r1.ebuild b/net-dialup/capisuite/capisuite-0.4.5-r1.ebuild
new file mode 100644
index 000000000000..1b9aa83c09fc
--- /dev/null
+++ b/net-dialup/capisuite/capisuite-0.4.5-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2005 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-r1.ebuild,v 1.1 2005/06/04 15:53:51 genstef Exp $
+
+inherit eutils 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="~x86 ~amd64 ~ppc"
+IUSE=""
+
+DEPEND="virtual/python
+ virtual/libc
+ sys-devel/automake
+ >=sys-devel/autoconf-2.50
+ media-sound/sox
+ media-libs/tiff
+ media-gfx/jpeg2ps
+ media-gfx/sfftobmp
+ virtual/ghostscript"
+RDEPEND="${DEPEND}
+ net-dialup/capi4k-utils
+ virtual/mta"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # taken from capisuite-0.4.5-5.src.rpm (SuSE-9.3)
+ epatch ${FILESDIR}/${P}-capi4linux_v3.diff
+
+ # patched src/backend/connection.cpp for bug #69522
+ epatch ${FILESDIR}/${PN}-fax-compatibility.patch
+}
+
+src_compile() {
+ ebegin "Updating autotools-generated files"
+ aclocal -I . || die "aclocal failed"
+ automake -a || die "automake failed"
+ autoheader || die "autoheader failed"
+ WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
+ eend $?
+
+ econf --localstatedir=/var \
+ --with-docdir=/usr/share/doc/${PF} || die "econf failed."
+ emake || die "parallel make failed."
+}
+
+src_install() {
+ make 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 INSTALL NEWS README TODO
+
+ exeinto /etc/cron.daily
+ doexe capisuite.cron
+
+ insinto /etc/capisuite
+ doins cronjob.conf
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_compile ${ROOT}usr/lib/python${PYVER}/site-packages/cs_helpers.py
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup ${ROOT}usr/lib/python${PYVER}/site-packages
+}
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 000000000000..1f4e50199ae5
--- /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.logrotated b/net-dialup/capisuite/files/capisuite.logrotated
new file mode 100644
index 000000000000..9298cc5078d4
--- /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/files/digest-capisuite-0.4.5-r1 b/net-dialup/capisuite/files/digest-capisuite-0.4.5-r1
new file mode 100644
index 000000000000..cd9a1796e371
--- /dev/null
+++ b/net-dialup/capisuite/files/digest-capisuite-0.4.5-r1
@@ -0,0 +1 @@
+MD5 2197c8650be74db8904c7e54ff43ab7b capisuite-0.4.5.tar.gz 1184603