Mercurial > hg > portage
changeset 174:3b3ba42f2f0e
pigz-2.1.5 symlink bugfix & support for gzip symlink
author | holger |
---|---|
date | Sat, 14 Nov 2009 03:27:58 +0100 |
parents | a34dd751aba9 |
children | 9839e927aee2 |
files | app-arch/pigz/Manifest app-arch/pigz/files/pigz-2.1.5-decode-symlinks-to-stdout.patch app-arch/pigz/files/pigz-2.1.5-respect-flags.patch app-arch/pigz/metadata.xml app-arch/pigz/pigz-2.1.5.ebuild |
diffstat | 5 files changed, 82 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-arch/pigz/Manifest Sat Nov 14 03:27:58 2009 +0100 @@ -0,0 +1,5 @@ +AUX pigz-2.1.5-decode-symlinks-to-stdout.patch 512 RMD160 115ae0cdc4187b8cbc2282c3b36aca5f0b8ea5b1 SHA1 158f21fa736d9034b608d5b6fd452919f7d73e51 SHA256 067acf2075e80ef083dd730a557bff87efb39a80b49be760c84bfa4cd73047ce +AUX pigz-2.1.5-respect-flags.patch 404 RMD160 e444679d43a33f44c684d99ec782f825bef66bab SHA1 8557dea8496682fa9525278b314178f5c100c9b2 SHA256 8806680b9d1f4099f7f2caa803957b104f2df24bed49b0a41f696060b43b69c4 +DIST pigz-2.1.5.tar.gz 93788 RMD160 b02f012e9f87f9f69309574ef7000bf6242b2114 SHA1 9e169aa2f1b08be057760c03c480e64651fa3299 SHA256 ae1f16f1f84c963df512a24f5b676a776ffd95f059291547672917b2f818e53b +EBUILD pigz-2.1.5.ebuild 902 RMD160 3e5bcda1ef72744533194d823b8c0aca45b916f7 SHA1 ebc510d0f31bdab6da56bb8bf869149ce6f61726 SHA256 711f44533d49c7d3d0108f57ae2d6c7ccb5620e9d2310b2395c1a71b47591f12 +MISC metadata.xml 361 RMD160 c0face66fc5d9ebb04354159f4d74ca56a891ad6 SHA1 317ab8a1c421a64a5e0058fcf5a1c22ce3db5b09 SHA256 3fbe8d1af9f434bd66b190c41bd49be8d78aa8e591468866244ba7899f0f75e6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-arch/pigz/files/pigz-2.1.5-decode-symlinks-to-stdout.patch Sat Nov 14 03:27:58 2009 +0100 @@ -0,0 +1,12 @@ +diff -u pigz-2.1.5/pigz.c pigz-2.1.5-fix/pigz.c +--- pigz-2.1.5/pigz.c 2009-07-20 04:42:00.000000000 +0200 ++++ pigz-2.1.5-fix/pigz.c 2009-10-25 15:52:22.000000000 +0100 +@@ -2498,7 +2498,7 @@ + in); + return; + } +- if ((st.st_mode & S_IFMT) == S_IFLNK && !force) { ++ if ((st.st_mode & S_IFMT) == S_IFLNK && !force && !pipeout) { + if (verbosity > 0) + fprintf(stderr, "%s is a symbolic link -- skipping\n", in); + return;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-arch/pigz/files/pigz-2.1.5-respect-flags.patch Sat Nov 14 03:27:58 2009 +0100 @@ -0,0 +1,14 @@ +diff -U5 pigz-2.1.5.original/Makefile pigz-2.1.5/Makefile +--- pigz-2.1.5.original/Makefile 2009-10-27 22:41:31.000000000 -0600 ++++ pigz-2.1.5/Makefile 2009-10-27 22:42:45.000000000 -0600 +@@ -1,9 +1,7 @@ +-CFLAGS=-O2 +- + pigz: pigz.o yarn.o +- cc -o pigz pigz.o yarn.o -lpthread -lz ++ $(CC) $(LDFLAGS) -o pigz pigz.o yarn.o -lpthread -lz + ln -f pigz unpigz + + pigz.o: pigz.c yarn.h + + yarn.o: yarn.c yarn.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-arch/pigz/metadata.xml Sat Nov 14 03:27:58 2009 +0100 @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>maintainer-needed@gentoo.org</email> +</maintainer> +<longdescription lang="en"> +A parallel implementation of gzip for modern +multi-processor, multi-core machines. +</longdescription> +</pkgmetadata>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-arch/pigz/pigz-2.1.5.ebuild Sat Nov 14 03:27:58 2009 +0100 @@ -0,0 +1,39 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.1.5.ebuild,v 1.2 2009/11/02 17:58:48 vostorga Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="A parallel implementation of gzip." +HOMEPAGE="http://www.zlib.net/pigz/" +SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz" + +LICENSE="PIGZ" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="test symlink" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + test? ( app-arch/ncompress )" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/${P}-respect-flags.patch + epatch "${FILESDIR}"/${P}-decode-symlinks-to-stdout.patch +} + +src_compile() { + tc-export CC + emake || die "make failed" +} + +src_install() { + dobin ${PN} || die "Failed to install" + dosym /usr/bin/pigz /usr/bin/unpigz + dodoc README + + if use symlink; then + dosym /usr/bin/pigz /usr/bin/gzip + fi +}