diff options
author | Matthieu Sozeau <mattam@gentoo.org> | 2005-06-02 15:11:54 +0000 |
---|---|---|
committer | Matthieu Sozeau <mattam@gentoo.org> | 2005-06-02 15:11:54 +0000 |
commit | 88ac4b969ff3a029631403cae6c6335cd6d87b09 (patch) | |
tree | 41a8cc8c83e6a7540eff50ba70e0d85bd590bb2c /dev-ml | |
parent | Marked ppc stable. (diff) | |
download | gentoo-2-88ac4b969ff3a029631403cae6c6335cd6d87b09.tar.gz gentoo-2-88ac4b969ff3a029631403cae6c6335cd6d87b09.tar.bz2 gentoo-2-88ac4b969ff3a029631403cae6c6335cd6d87b09.zip |
Fixes bug #93784
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/ocaml-mysql/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/Manifest | 3 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3-r1 | 1 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-shtool.patch | 26 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/ocaml-mysql-1.0.3-r1.ebuild | 38 |
5 files changed, 75 insertions, 1 deletions
diff --git a/dev-ml/ocaml-mysql/ChangeLog b/dev-ml/ocaml-mysql/ChangeLog index 0fd779ace74f..7a45cf411d72 100644 --- a/dev-ml/ocaml-mysql/ChangeLog +++ b/dev-ml/ocaml-mysql/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ml/ocaml-mysql # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v 1.1 2005/02/06 16:20:11 mattam Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v 1.2 2005/06/02 15:11:54 mattam Exp $ + +*ocaml-mysql-1.0.3-r1 (02 Jun 2005) + + 02 Jun 2005; Matthieu Sozeau <mattam@gentoo.org> + +files/ocaml-mysql-1.0.3-shtool.patch, +ocaml-mysql-1.0.3-r1.ebuild: + Fixes security bug in shtool (see bug #93784). *ocaml-mysql-1.0.3 (06 Feb 2005) diff --git a/dev-ml/ocaml-mysql/Manifest b/dev-ml/ocaml-mysql/Manifest index ad8995676e58..bfea06bc2c81 100644 --- a/dev-ml/ocaml-mysql/Manifest +++ b/dev-ml/ocaml-mysql/Manifest @@ -1,5 +1,8 @@ +MD5 8d8a4668d3a5bcf4b6c79a95c2f14eac ocaml-mysql-1.0.3-r1.ebuild 894 MD5 53f858c3c552a4aaaab3c9a82ab1031b ocaml-mysql-1.0.3.ebuild 849 MD5 b0ec731acc9640762319f5d7316f548f ChangeLog 467 MD5 648a541494aceee26dbcfd76164f37ea metadata.xml 157 +MD5 d136e53521c22eb8b9f2987dfd19163d files/ocaml-mysql-1.0.3-shtool.patch 744 MD5 000615b1a5a0999a580efdd6dadad829 files/ocaml-mysql-1.0.3-head.patch 1635 MD5 d6862e23b576fefef089e739a132cd16 files/digest-ocaml-mysql-1.0.3 69 +MD5 d6862e23b576fefef089e739a132cd16 files/digest-ocaml-mysql-1.0.3-r1 69 diff --git a/dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3-r1 b/dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3-r1 new file mode 100644 index 000000000000..b6a1e1190087 --- /dev/null +++ b/dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3-r1 @@ -0,0 +1 @@ +MD5 3254be1cb6ef8801701a5628e60cfee4 ocaml-mysql-1.0.3.tar.gz 111574 diff --git a/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-shtool.patch b/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-shtool.patch new file mode 100644 index 000000000000..115629468bc2 --- /dev/null +++ b/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-shtool.patch @@ -0,0 +1,26 @@ +--- sh.common.orig 2004-04-07 08:50:21.000000000 +0100 ++++ sh.common 2005-05-29 20:39:20.854878600 +0100 +@@ -168,7 +168,13 @@ + else + tmpdir="/tmp" + fi +- tmpfile="$tmpdir/.shtool.$$" ++ if mkdir "$tmpdir/.shtool.$$"; then ++ tmpfile="$tmpdir/.shtool.$$/shtool.tmp" ++ else ++ echo "$msgprefix:Error: failed to create temporary file" 1>&2 ++ exit 1 ++ fi ++ tmpfile="$tmpdir/.shtool.$$/shtool.tmp" + rm -f $tmpfile >/dev/null 2>&1 + touch $tmpfile + chmod 600 $tmpfile +@@ -188,7 +194,7 @@ + shtool_exit () { + rc="$1" + if [ ".$gen_tmpfile" = .yes ]; then +- rm -f $tmpfile >/dev/null 2>&1 || true ++ rm -fr "$tmpdir/.shtool.$$" >/dev/null 2>&1 || true + fi + exit $rc + } diff --git a/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3-r1.ebuild b/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3-r1.ebuild new file mode 100644 index 000000000000..d665deaff73a --- /dev/null +++ b/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3-r1.ebuild,v 1.1 2005/06/02 15:11:54 mattam Exp $ + +inherit findlib eutils + +IUSE="doc" + +DESCRIPTION="A package for ocaml that provides access to mysql databases." +SRC_URI="http://raevnos.pennmush.org/code/${PN}/${P}.tar.gz" +HOMEPAGE="http://raevnos.pennmush.org/code/ocaml-mysql/index.html" + +DEPEND=">=dev-lang/ocaml-3.06 + >=dev-db/mysql-4.0.12" + +RDEPEND="$DEPEND" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="x86 ppc" + +src_compile() +{ + epatch ${FILESDIR}/${P}-head.patch + epatch ${FILESDIR}/${P}-shtool.patch + econf || die "configure failed" + make all || die "make failed" + make opt +} + +src_install() +{ + findlib_src_preinst + make install || die + + ( use doc ) && dohtml -r doc/html/* + dodoc META COPYING CHANGES README VERSION +} |