2012-11-22 22:12:58 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-11-22 22:12:58 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-util/injectso/injectso-0.2-r1.ebuild,v 1.2 2012/11/22 10:06:26 ago Exp $
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="Inject shared libraries into running processes under Solaris and Linux"
|
|
|
|
HOMEPAGE="http://www.securereality.com.au/"
|
|
|
|
SRC_URI="http://www.securereality.com.au/archives/${P}.tar.gz"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
LICENSE="GPL-2"
|
2012-11-22 22:12:58 +04:00
|
|
|
KEYWORDS="x86"
|
2011-11-09 11:33:19 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}/${P}-gcc4.patch"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
tc-export CC
|
|
|
|
default_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin injectso
|
|
|
|
|
|
|
|
dodir /usr/lib/injectso
|
|
|
|
insinto /usr/lib/injectso
|
|
|
|
doins libtest.so libtest.c
|
|
|
|
|
|
|
|
dodoc ChangeLog README.txt
|
|
|
|
dohtml README.html
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
echo
|
|
|
|
elog "Read the documentation for instructions on how to use this tool."
|
|
|
|
elog "The sample library \"libtest.so\" and its source file \"libtest.c\""
|
|
|
|
elog "be found in /usr/lib/injectso."
|
|
|
|
echo
|
|
|
|
}
|