summaryrefslogtreecommitdiff
blob: 60ac5e9408184f15f2850ae52df1e0794bcc3004 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/scotty/scotty-2.1.11.ebuild,v 1.8 2004/06/25 22:59:26 vapier Exp $

DESCRIPTION="tcl network management extension"
HOMEPAGE="http://wwwhome.cs.utwente.nl/~schoenw/scotty"
SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined/${P}.tar.gz"

LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="x86 alpha"
IUSE=""

DEPEND="virtual/libc
	sys-devel/flex
	sys-devel/bison
	dev-lang/perl
	dev-lang/tcl
	dev-lang/tk"

src_compile() {
	cd ${S}/unix
	econf || die
	make || die
}

src_install() {
	cd ${S}/unix
	dodir /usr/share/man
	TNM_LIBRARY=${D}/usr/lib/tnm${V} \
		make prefix=${D}/usr \
		MAN_INSTALL_DIR=${D}/usr/share/man install
	make prefix=${D}/usr \
		MAN_INSTALL_DIR=${D}/usr/share/man sinstall
	cd ${D}/usr/bin
	perl -p -i -e 's|/.*/image||' ${D}/usr/lib/tnm2.1.11/pkgIndex.tcl
	perl -p -i -e 's|/.*/image||' ${D}/usr/lib/tkined1.4.11/pkgIndex.tcl
	ln -s scotty2.1.11 scotty
	ln -s tkined1.4.11 tkined
#	mv ${D}/usr/share/man/mann ${D}/usr/share/man/man3
#	cd ${D}/usr/share/man/man3
#	for f in `find ./ -name "*.n"`; do
#		echo ${f} `echo ${f}|cut -d. -f2|cut -d/ -f2`
#		mv ${f} `echo ${f}|cut -d. -f2|cut -d/ -f2`.3tnm
#	done
}