summaryrefslogtreecommitdiff
blob: 349deb2af3ff0c9d324691038365d6501e58f35d (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
# Copyright 2002 Alexander Holler
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dialup/capi4k-utils/capi4k-utils-20020701.ebuild,v 1.2 2002/08/09 12:53:03 verwilst Exp $

MY_P=capi4k-utils-2002-07-01
S=${WORKDIR}/${PN}
DESCRIPTION="Capi4Linux Utils"
SRC_URI="ftp://ftp.in-berlin.de/pub/capi4linux/${MY_P}.tar.gz"
HOMEPAGE="ftp://ftp.in-berlin.de/pub/capi4linux.de/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND="virtual/linux-sources
        sys-devel/automake"
# autoconf is a dependency of automake

src_compile() {

        emake subconfig || die
        emake || die

}

src_install() {                                                                                                                  

        dodir /dev
        make install DESTDIR=${D} || die
        rm -rf ${D}/dev
        newdoc rcapid/README README.rcapid
        newdoc pppdcapiplugin/README README.pppdcapiplugin
        docinto examples.pppdcapiplugin; dodoc pppdcapiplugin/examples/*
        exeinto /etc/init.d
        doexe ${FILESDIR}/capi

}

pkg_postinst() {

        einfo "*************************************************"
        einfo "* NOTE: To use isdn4linux with CAPI replace     *"
        einfo "* I4L_MODULE=\"hisax\" with I4L_MODULE=\"capidrv\", *"
        einfo "* start /etc/init.d/capi and load the module    *"
        einfo "* capidrv.                                      *"
        einfo "*************************************************"

}