# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Ferrets out everything it can about the environment" HOMEPAGE="http://www.web-insights.net/${PN}/" SRC_URI="${HOMEPAGE}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="sys-libs/libcap" RDEPEND="" S=${WORKDIR}/${P} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-destdir.patch } src_compile() { emake CC="${CC}" CFLAGS="${CFLAGS}" || die } src_install() { dodir /lib /usr/bin # libsafe stuff make install DESTDIR=${D} # dodir /lib dosym lib${PN}.so.${PV}.0 /lib/lib${PN}.so || die dosym lib${PN}.so.${PV}.0 /lib/lib${PN}.so.${PV%%.*} || die dodoc AUTHORS COPYING DOWNLOAD INSTALL cp -r ${S}/examples/ ${D}/usr/share/doc/${PF}/ prepalldocs } pkg_postinst() { einfo einfo "To use this you have to put the library as one of the variables" einfo "in LD_PRELOAD." einfo "Example in bash:" einfo "export LD_PRELOAD=/lib/lib${PN}.so.${PV%%.*}" einfo }