# Copyright 1999-2005 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.10 2005/01/01 21:05:25 aliz Exp $ inherit eutils 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 ~amd64" IUSE="" DEPEND="virtual/libc sys-devel/flex sys-devel/bison dev-lang/perl dev-lang/tcl dev-lang/tk sys-devel/autoconf" src_unpack() { unpack ${A} ; cd ${S} epatch ${FILESDIR}/${P}-suse.patch epatch ${FILESDIR}/${P}-Makefile.patch cd ${S}/unix ; autoconf } src_compile() { cd ${S}/unix econf || die make "CFLAGS=${CFLAGS}" || die } src_install() { cd ${S}/unix dodir /usr/share/man make DESTDIR=${D} install make DESTDIR=${D} 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 } pkg_postinst() { echo einfo "To create condensed versions of mib definitions that load faster, run" einfo " echo 'foreach f \$tnm(mibs) {puts \"Parsing \$f\"; mib load \$f}; exit' | scotty" einfo "as root." echo einfo "Note that these files will require manual removal. They reside in:" einfo "/usr/lib/tnm2.1.1/`uname -m`-`uname -s`-`uname -r`" echo }