# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-x86/net-libs/libnet/libnet-1.0.2a-r1.ebuild,v 1.5 2002/08/16 02:57:06 murphy Exp $ S=${WORKDIR}/Libnet-1.0.2a DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection). Used by packet scrubbers and the like, not to be confused with the perl libnet" SRC_URI="http://www.packetfactory.net/${PN}/dist/${PN}.tar.gz" HOMEPAGE="http://www.packefactory.net/${PN}/" DEPEND="" SLOT="0" LICENSE="LGPL-2" KEYWORDS="x86 ppc sparc sparc64" src_compile(){ econf # Tweaking Makefile to use our CFLAGS and the right manpath sed -e "s/^\(CFLAGS[[:blank:]]\+=\).*$/\1 $CFLAGS/" \ -e "s:^\(MAN_PREFIX[[:blank:]]\+=\).*$:\1 ${D}/usr/share/man/man3/:p" < Makefile > Makefile.new mv --force Makefile.new Makefile emake || die "Failed to compile" } src_install () { einstall dodoc VERSION doc/{README,TODO*,CHANGELOG*,COPYING} newdoc README README.1st docinto example ; dodoc example/libnet* docinto Ancillary ; dodoc doc/Ancillary/* }