From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S2iaY-0003fI-R5 for garchives@archives.gentoo.org; Wed, 29 Feb 2012 12:24:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D142DE08F9; Wed, 29 Feb 2012 12:24:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 90455E08F9 for ; Wed, 29 Feb 2012 12:24:51 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D15911B401F for ; Wed, 29 Feb 2012 12:24:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 99376E53FE for ; Wed, 29 Feb 2012 12:24:49 +0000 (UTC) From: "Marc Schiffbauer" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marc Schiffbauer" Message-ID: <1330518270.b5af286fbf9407d4af1723ab588db8b2b5e0fe1e.mschiff@gentoo> Subject: [gentoo-commits] dev/mschiff:master commit in: app-misc/eatmydata/, app-misc/eatmydata/files/ X-VCS-Repository: dev/mschiff X-VCS-Files: app-misc/eatmydata/Manifest app-misc/eatmydata/eatmydata-28.ebuild app-misc/eatmydata/files/eatmydata app-misc/eatmydata/files/eatmydata.1.gz app-misc/eatmydata/metadata.xml X-VCS-Directories: app-misc/eatmydata/ app-misc/eatmydata/files/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: b5af286fbf9407d4af1723ab588db8b2b5e0fe1e X-VCS-Branch: master Date: Wed, 29 Feb 2012 12:24:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b5814418-c6af-4c76-a467-7f8a95e4f01d X-Archives-Hash: e71c9394aee2533ccb030aa814d28c26 commit: b5af286fbf9407d4af1723ab588db8b2b5e0fe1e Author: Marc Schiffbauer gentoo org> AuthorDate: Wed Feb 29 12:24:30 2012 +0000 Commit: Marc Schiffbauer schiffbauer net> CommitDate: Wed Feb 29 12:24:30 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/mschiff.git;a=3D= commit;h=3Db5af286f Add ebuild eatmydata (Portage version: 2.2.0_alpha88/git/Linux x86_64, signed Manifest commit = with key 0x35A64134) --- app-misc/eatmydata/Manifest | 15 +++++ app-misc/eatmydata/eatmydata-28.ebuild | 32 ++++++++++ app-misc/eatmydata/files/eatmydata | 98 +++++++++++++++++++++++++= ++++++ app-misc/eatmydata/files/eatmydata.1.gz | Bin 0 -> 1093 bytes app-misc/eatmydata/metadata.xml | 8 +++ 5 files changed, 153 insertions(+), 0 deletions(-) diff --git a/app-misc/eatmydata/Manifest b/app-misc/eatmydata/Manifest new file mode 100644 index 0000000..36e89e2 --- /dev/null +++ b/app-misc/eatmydata/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX eatmydata 2511 RMD160 115382fc06a10b6b033035469b35e257eb3bf472 SHA1 = 24f05a08d75661b2d3ff83a09c8bb4ba5939ede9 SHA256 5df9a7145a22cfcfc0a11b04b= 93dac441bae1a2e6431d3bf11da7ae845969268 +AUX eatmydata.1.gz 1093 RMD160 40c0fb1b326e05b352f23033fa35640fb7db41b4 = SHA1 2a2e0d2992ce49ba4f20d7a49e61f1f5e754ee89 SHA256 fdd8720f95266b730527= 79818145d2e6fbc504670d5c39a091a48754d497b9ba +DIST libeatmydata-28.tar.gz 382069 RMD160 b8b8fc9a02413b8fd907569f93b001= 5ecc086a0c SHA1 bd8a26b5e8dc9647ddf70989652e2da55a18b752 SHA256 3b768351a= 1aff21a1201bcbd25635a0f4fbbfc2d4e7e55842403601fdb1859c3 +EBUILD eatmydata-28.ebuild 792 RMD160 7fc0de271d70341373a2fe90ac7df63a1f= e09b1e SHA1 d2a93fd43032f417ad298cd1823b92d122897a2d SHA256 99fb883c60054= 21e1795844c57c3dcc133f532cac3850f9a8d265a8ad9398494 +MISC metadata.xml 236 RMD160 5c57b0291e26469fb522c377d9b6373830889ebb SH= A1 4da113512bdf7f06bde8a17a9332c28da0ecf1b6 SHA256 f55443c9b3d97fcc9437b9= aeba1b3beae39e38599620bd520d0693bb8948b531 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iD8DBQFPThj+KWxsyjWmQTQRAgtcAKCejXQYDMh/o7SDr8y8xKjPdX0+lACcCtzh +r7fiL17pplMofI6MbxX4fgs=3D +=3DWN/u +-----END PGP SIGNATURE----- diff --git a/app-misc/eatmydata/eatmydata-28.ebuild b/app-misc/eatmydata/= eatmydata-28.ebuild new file mode 100644 index 0000000..7a0a4b7 --- /dev/null +++ b/app-misc/eatmydata/eatmydata-28.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D"4" + +DESCRIPTION=3D"Tool with LD_PRELOAD library that disables all forms of w= riting data safely to disk" +HOMEPAGE=3D"https://launchpad.net/libeatmydata" +SRC_URI=3D"http://launchpad.net/lib${PN}/trunk/release-${PV}/+download/l= ib${P}.tar.gz" + +LICENSE=3D"GPL-3" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"" + +DEPEND=3D"" +RDEPEND=3D"${DEPEND}" + +MY_S=3D"${WORKDIR}/lib${P}" +S=3D"${WORKDIR}/lib${P}" + +src_install () { + default + exeinto /usr/bin && doexe ${FILESDIR}/eatmydata + doman ${FILESDIR}/eatmydata.1.gz + find ${D} -name "*.la" -delete +} + +pkg_postinst() { + ewarn "This program is called *eatmydata* on purpose." + ewarn "Use it on your own risk and only if you know what you are doing.= " +} diff --git a/app-misc/eatmydata/files/eatmydata b/app-misc/eatmydata/file= s/eatmydata new file mode 100755 index 0000000..0a72fa7 --- /dev/null +++ b/app-misc/eatmydata/files/eatmydata @@ -0,0 +1,98 @@ +#!/bin/sh + +# Copyright =C2=A9: 2010, Modestas Vainius +# +# Copyright =C2=A9: 2011, Marc Schiffbauer +# (merged shell lib into this file + some small mods for gentoo) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +libeatmydata=3D"/usr/lib/libeatmydata.so" +name=3D"eatmydata" + +eatmydata_error() +{ + echo "$name error: $1" >&2 + exit 1 +} + +eatmydata_exec() +{ + local cmd + cmd=3D"$1" + if [ "${cmd#*/*}" =3D "${cmd}" ]; then + # $cmd does not contain '/'. Look in $PATH avoiding loops with s= elf. + local self save_ifs path exe ok + + self=3D"`readlink -f "$0"`" + save_ifs=3D"$IFS" + IFS=3D":" + ok=3D"" + for path in $PATH; do + exe=3D"${path}/$cmd" + # Avoid loops with self + if [ -x "$exe" ] && [ "`readlink -f "$exe"`" !=3D "$self" ];= then + ok=3D"yes" + break + fi + done + IFS=3D"$save_ifs" + if [ -n "$ok" ]; then + cmd=3D"$exe" + else + eatmydata_error "unable to find '$cmd' in PATH" + fi + fi + + # Preload libeatmydata + if [ -n "$LD_PRELOAD" ]; then + export LD_PRELOAD=3D"$libeatmydata $LD_PRELOAD" + else + export LD_PRELOAD=3D"$libeatmydata" + fi + # Execute requested command + shift + exec "$cmd" "$@" +} + +# Verify environment +if [ ! -f "$libeatmydata" ]; then + eatmydata_error "could not find $name library $libeatmydata" +fi + +usage() +{ + echo "usage: $0 [--] command [ command arguments ... ]" >&2 + exit 2 +} + +# Detect operation mode. If this script is run via symlink, look for bas= ename +# in the PATH and execute it. +if [ -L "$0" ]; then + # Symlink mode. Get command to execute from the basename of $0. + cmd=3D"`basename "$0"`" + set -- "$cmd" "$@" +else + # Normal mode + if [ "$1" =3D "--" ]; then + shift + fi + + if [ "$#" -eq 0 ]; then + usage + fi +fi + +eatmydata_exec "$@" diff --git a/app-misc/eatmydata/files/eatmydata.1.gz b/app-misc/eatmydata= /files/eatmydata.1.gz new file mode 100644 index 0000000..cbf6e9e Binary files /dev/null and b/app-misc/eatmydata/files/eatmydata.1.gz diff= er diff --git a/app-misc/eatmydata/metadata.xml b/app-misc/eatmydata/metadat= a.xml new file mode 100644 index 0000000..ea7bd02 --- /dev/null +++ b/app-misc/eatmydata/metadata.xml @@ -0,0 +1,8 @@ + + + + + mschiff@gentoo.org + Marc Schiffbauer + +