diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2004-11-06 04:57:28 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2004-11-06 04:57:28 +0000 |
commit | 9309cc79662eca957557ece89c9664b582d78210 (patch) | |
tree | 91e7186e716f3881de1ead54f8b6309a503588b1 /sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild | |
parent | ~ppc keyworded as per bug #70096 (Manifest recommit) (diff) | |
download | gentoo-2-9309cc79662eca957557ece89c9664b582d78210.tar.gz gentoo-2-9309cc79662eca957557ece89c9664b582d78210.tar.bz2 gentoo-2-9309cc79662eca957557ece89c9664b582d78210.zip |
Fixed ${CC} to $(tc-getCC). bugs 70115.
Diffstat (limited to 'sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild')
-rw-r--r-- | sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild b/sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild new file mode 100644 index 000000000000..b5f3fb587f4c --- /dev/null +++ b/sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsafe/libsafe-2.0_p16-r1.ebuild,v 1.1 2004/11/06 04:57:28 matsuu Exp $ + +inherit toolchain-funcs + +MY_P="${P/_p/-}" +DESCRIPTION="Protection against buffer overflow vulnerabilities" +HOMEPAGE="http://www.research.avayalabs.com/project/libsafe/index.html" +SRC_URI="http://www.research.avayalabs.com/project/libsafe/src/${MY_P}.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="prelude" + +DEPEND="virtual/libc + prelude? ( dev-libs/libprelude )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + local mycflags="" + + mycflags="${mycflags} ${CFLAGS}" + mycflags="${mycflags} -DLIBSAFE_VERSION=\"\$(VERSION)\"" + use prelude && mycflags="${mycflags} \$(LIBPRELUDE_CFLAGS)" + + # Note email notification currently not implimented in this ebuild + # due to I cannot work out if a mta is on localhost:25 for it. + # It safer not too assume it is. Uncomment the following if desired + # use mta && mycflags="${mycflags} -DNOTIFY_WITH_EMAIL" + + emake CC="$(tc-getCC)" CFLAGS="${mycflags}" || die +} + +src_install() { + + # libsafe stuff + into / + dolib.so src/libsafe.so.${PV/_p/.} || die + # dodir /lib + dosym libsafe.so.${PV/_p/.} /lib/libsafe.so || die + dosym libsafe.so.${PV/_p/.} /lib/libsafe.so.${PV%%.*} || die + + # Documentation + doman doc/libsafe.8 + dohtml doc/libsafe.8.html + + dodoc COPYING README INSTALL + use prelude && dodoc LIBPRELUDE + # use mta && dodoc EMAIL_NOTIFICATION +} + +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/libsafe.so.${PV%%.*}" + einfo +} |