summaryrefslogtreecommitdiff
blob: af6cf22d753bc7b9e9a08a841c79257b34866b30 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/isdn4k-utils-3.1_p1-r2.ebuild,v 1.3 2002/07/11 06:30:45 drobbins Exp $

A=isdn4k-utils.v3.1pre1.tar.gz   
S=${WORKDIR}/isdn4k-utils
DESCRIPTION="ISDN-4-Linux Utils"
SRC_URI="ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/"${A}
HOMEPAGE="http://www.isdn4linux.de/"

DEPEND="virtual/glibc
	>=virtual/linux-sources-2.4
	>=sys-libs/ncurses-5.1
	>=sys-libs/gdbm-1.8.0
	mysql? ( >=dev-db/mysql-3.23.26 )
	>=dev-lang/tcl-tk-8.1"

src_unpack() {
  unpack ${A}
  cd ${S}
 # sed -e "s:CONFIG_KERNELDIR=.*:CONFIG_KERNELDIR='${WORKDIR}/../../linux-2\.4\.0_rc103/work/linux':" ${O}/files/${P}.config > .config
  cp ${FILESDIR}/${P}.config .config
}

src_compile() {                           
  cd ${S}
  try make subconfig
  try make
}

src_install() {                               
  cd ${S}
  dodir /dev
  dodir /usr/sbin
  dodir /usr/bin
  try make install DESTDIR=${D}
  
  dodoc COPYING NEWS README Mini-FAQ/isdn-faq.txt
  mv ${D}/usr/doc/vbox ${D}/usr/doc/isdn4k-utils-3.1_p1-r1
  
  
}