blob: cab0bbec1b6c5a062c88ad400afc2879d0ef5f1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 1999-2007 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-r4.ebuild,v 1.2 2007/07/13 08:24:48 mrness Exp $
inherit eutils 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="virtual/python
sys-devel/automake
>=sys-devel/autoconf-2.50
media-sound/sox
>=media-libs/tiff-3.7.1
media-gfx/jpeg2ps
media-gfx/sfftobmp
virtual/ghostscript
net-dialup/capi4k-utils"
RDEPEND="${DEPEND}
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 scripts/cs_helpers.pyin for bug #96540
epatch "${FILESDIR}/${P}-date-header.patch"
# patched src/backend/connection.cpp for bug #69522
epatch "${FILESDIR}/${PN}-fax-compatibility.patch"
# patched scripts/{incoming,idle}.py for bug #147854
epatch "${FILESDIR}/${P}-syntax.patch"
}
src_compile() {
strip-flags # see bug #90901
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 "emake 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 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/$(get_libdir)/python${PYVER}/site-packages/cs_helpers.py
}
pkg_postrm() {
python_mod_cleanup ${ROOT}usr/$(get_libdir)/python*/site-packages
}
|