diff options
author | 2004-03-02 17:03:10 +0000 | |
---|---|---|
committer | 2004-03-02 17:03:10 +0000 | |
commit | f89435f3ea8b5fedaa2719236018e77da2908251 (patch) | |
tree | 3e43bbd754cdc2849704eea10db1846ffd590764 /sys-libs/libsafe | |
parent | adding initial support for s390 (diff) | |
download | historical-f89435f3ea8b5fedaa2719236018e77da2908251.tar.gz historical-f89435f3ea8b5fedaa2719236018e77da2908251.tar.bz2 historical-f89435f3ea8b5fedaa2719236018e77da2908251.zip |
Initial import.
Diffstat (limited to 'sys-libs/libsafe')
-rw-r--r-- | sys-libs/libsafe/ChangeLog | 10 | ||||
-rw-r--r-- | sys-libs/libsafe/files/digest-libsafe-2.0_p16 | 1 | ||||
-rw-r--r-- | sys-libs/libsafe/libsafe-2.0_p16.ebuild | 60 | ||||
-rw-r--r-- | sys-libs/libsafe/metadata.xml | 8 |
4 files changed, 79 insertions, 0 deletions
diff --git a/sys-libs/libsafe/ChangeLog b/sys-libs/libsafe/ChangeLog new file mode 100644 index 000000000000..955435ab6aba --- /dev/null +++ b/sys-libs/libsafe/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-libs/libsafe +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsafe/ChangeLog,v 1.1 2004/03/02 17:03:10 matsuu Exp $ + +*libsafe-2.0_p16 (03 Mar 2004) + + 03 Mar 2004; <matsuu@gentoo.org> libsafe-2.0_p16.ebuild: + Initial import. Ebuild submitted by Daniel Black <groover@playful.com>. + Bug #14720. + diff --git a/sys-libs/libsafe/files/digest-libsafe-2.0_p16 b/sys-libs/libsafe/files/digest-libsafe-2.0_p16 new file mode 100644 index 000000000000..fdd539b81368 --- /dev/null +++ b/sys-libs/libsafe/files/digest-libsafe-2.0_p16 @@ -0,0 +1 @@ +MD5 6b7b6e6df84d4afb469ccc66d04fc24d libsafe-2.0-16.tgz 360508 diff --git a/sys-libs/libsafe/libsafe-2.0_p16.ebuild b/sys-libs/libsafe/libsafe-2.0_p16.ebuild new file mode 100644 index 000000000000..933e6f10f5c9 --- /dev/null +++ b/sys-libs/libsafe/libsafe-2.0_p16.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsafe/libsafe-2.0_p16.ebuild,v 1.1 2004/03/02 17:03:10 matsuu Exp $ + +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" +IUSE="prelude" + +DEPEND="virtual/glibc + 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="${CC}" 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 +} diff --git a/sys-libs/libsafe/metadata.xml b/sys-libs/libsafe/metadata.xml new file mode 100644 index 000000000000..e8268537c302 --- /dev/null +++ b/sys-libs/libsafe/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>matsuu@gentoo.org</email> +</maintainer> +<longdescription>The libsafe library protects a process against the exploitation of buffer overflow vulnerabilities in process stacks. Libsafe works with any existing pre-compiled executable (but is incompatible with libc5-linked processes) and can be used transparently, even on a system-wide basis.</longdescription> +</pkgmetadata> |