summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDror Levin <spatz@gentoo.org>2009-12-31 16:22:52 +0000
committerDror Levin <spatz@gentoo.org>2009-12-31 16:22:52 +0000
commit4c4934f45d355e25d0df82709495e1b73f6f9d37 (patch)
treed2130b66280fb4c74f199c2b290c69ea816d89af /app-arch
parentstable x86, bug 297186 (diff)
downloadhistorical-4c4934f45d355e25d0df82709495e1b73f6f9d37.tar.gz
historical-4c4934f45d355e25d0df82709495e1b73f6f9d37.tar.bz2
historical-4c4934f45d355e25d0df82709495e1b73f6f9d37.zip
Apply patches to decode symlinks to stdout and decompress when called as gunzip, add symlink USE flag to replace g{,un}zip. Thanks to Holger Hoffstätte <holger.hoffstaette@googlemail.com>, bug 294752.
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/pigz/ChangeLog11
-rw-r--r--app-arch/pigz/Manifest21
-rw-r--r--app-arch/pigz/files/pigz-2.1.5-decode-symlinks-to-stdout.patch12
-rw-r--r--app-arch/pigz/files/pigz-2.1.5-gunzip-compat.patch22
-rw-r--r--app-arch/pigz/metadata.xml17
-rw-r--r--app-arch/pigz/pigz-2.1.5-r1.ebuild42
6 files changed, 114 insertions, 11 deletions
diff --git a/app-arch/pigz/ChangeLog b/app-arch/pigz/ChangeLog
index 4796ed8f51d4..836182b5c9cf 100644
--- a/app-arch/pigz/ChangeLog
+++ b/app-arch/pigz/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-arch/pigz
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/ChangeLog,v 1.6 2009/11/02 17:58:48 vostorga Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/ChangeLog,v 1.7 2009/12/31 16:22:52 spatz Exp $
+
+*pigz-2.1.5-r1 (31 Dec 2009)
+
+ 31 Dec 2009; Dror Levin <spatz@gentoo.org> +pigz-2.1.5-r1.ebuild,
+ +files/pigz-2.1.5-decode-symlinks-to-stdout.patch,
+ +files/pigz-2.1.5-gunzip-compat.patch, metadata.xml:
+ Apply patches to decode symlinks to stdout and decompress when called as
+ gunzip, add symlink USE flag to replace g{,un}zip. Thanks to Holger
+ Hoffstätte <holger.hoffstaette@googlemail.com>, bug 294752.
02 Nov 2009; Víctor Ostorga <vostorga@gentoo.org> -pigz-2.1.4.ebuild,
-files/pigz-2.1.4-respect-flags.patch, pigz-2.1.5.ebuild:
diff --git a/app-arch/pigz/Manifest b/app-arch/pigz/Manifest
index 65001bf8ea00..9bc58f675bc2 100644
--- a/app-arch/pigz/Manifest
+++ b/app-arch/pigz/Manifest
@@ -1,5 +1,22 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX pigz-2.1.5-decode-symlinks-to-stdout.patch 512 RMD160 115ae0cdc4187b8cbc2282c3b36aca5f0b8ea5b1 SHA1 158f21fa736d9034b608d5b6fd452919f7d73e51 SHA256 067acf2075e80ef083dd730a557bff87efb39a80b49be760c84bfa4cd73047ce
+AUX pigz-2.1.5-gunzip-compat.patch 630 RMD160 eb1ac6a99fe17fb6c9d7029912109630e5ec984b SHA1 98c4132001d2ab808e70a728c87c9afe2d549f42 SHA256 4a2b6acde824b15453a0647c7830f7444247606aece3979b6b85b90eeb7adef1
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-r1.ebuild 1042 RMD160 bc799b57596d1079c228ab4b802367f9b66693ef SHA1 7727731adf558af76d56405290e467336e63d19d SHA256 aa7098c092f58ec9b0d7f57a98b3fd47ea66c6c0ed650781833d07e58fe81322
EBUILD pigz-2.1.5.ebuild 735 RMD160 55821215bdd3213d6bfa99ad8dcc6f1f89e5c95e SHA1 22d6151a02ff4a37d764f2c6e66a338626c9129a SHA256 4b0fc8d2ff5946bb473d858d61f44eb6d53cbbb5c11f3343c9acc9ccc20efa35
-MISC ChangeLog 1098 RMD160 297ab4219726bdac069b97c6b7756dba20614a5e SHA1 dc44dba60b8faa80f61466fb5c5c6b79c33c2269 SHA256 23e2a86a414194ef8d8b80d94c82598b05e1732b678ae3da21a39a9a9633c520
-MISC metadata.xml 361 RMD160 c0face66fc5d9ebb04354159f4d74ca56a891ad6 SHA1 317ab8a1c421a64a5e0058fcf5a1c22ce3db5b09 SHA256 3fbe8d1af9f434bd66b190c41bd49be8d78aa8e591468866244ba7899f0f75e6
+MISC ChangeLog 1510 RMD160 23071e8d2046656a8317e2c24e9a0c7c9e9da771 SHA1 3fc4757e801368d8bde587b60a273ab72922104c SHA256 ad44b2d946692a73e0437c09ba7ce9f7d1c6565b0e313e43e4911232874990f8
+MISC metadata.xml 386 RMD160 1b2bceb5f7521d8045a72397c020b04bbc3c514a SHA1 523a38ddc2ab640c10973890075ee12e7719005e SHA256 c4afad64c3a04653e2de92884963c97f961ba79a2bd4c46964d138d49b50f645
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iQEcBAEBCgAGBQJLPM/lAAoJEAWF714uGAc6M3wH/A5rE6DUmDuZC1uoymJPw8Q6
+Rn0oogCMlUtGyQqLbJRaeo3iZlzRWOCKgW/wbpbZppC5YsR2J/UoUDQgznsilNQ9
+GlqBv137ZCR1bxnRUgEsQ4yJAcZZGWLXjhQPL+RDxx45ScKCUrzc3cjRMJcFTsBV
+brsDq3PoNlFJ28X/xGHlZm10054fykANWY/N+NH6rkay/swSbxP5M6pCu2GDaNKr
+LLvRu41kdS3K8y/bj11hWuHmfelyb1yei/8o+ivhGDVyJH/gbBXl2nKLA27Ivc9T
+o5tnlYjmzipyqRClALT6vFGmn1jwTeFC5K5lInjuyaaNn18YoKyeo2hHGYkA1GM=
+=KEPC
+-----END PGP SIGNATURE-----
diff --git a/app-arch/pigz/files/pigz-2.1.5-decode-symlinks-to-stdout.patch b/app-arch/pigz/files/pigz-2.1.5-decode-symlinks-to-stdout.patch
new file mode 100644
index 000000000000..d39b7e01f569
--- /dev/null
+++ b/app-arch/pigz/files/pigz-2.1.5-decode-symlinks-to-stdout.patch
@@ -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;
diff --git a/app-arch/pigz/files/pigz-2.1.5-gunzip-compat.patch b/app-arch/pigz/files/pigz-2.1.5-gunzip-compat.patch
new file mode 100644
index 000000000000..884854fe1d30
--- /dev/null
+++ b/app-arch/pigz/files/pigz-2.1.5-gunzip-compat.patch
@@ -0,0 +1,22 @@
+--- ../pigz-2.1.5/pigz.c 2009-07-20 04:42:00.000000000 +0200
++++ pigz.c 2009-11-24 10:50:13.000000000 +0100
+@@ -3075,9 +3075,17 @@
+ if (argc < 2 && isatty(1))
+ help();
+
+- /* decompress if named "unpigz" */
++ /* find program name */
+ p = strrchr(argv[0], '/');
+- if (strcmp(p == NULL ? argv[0] : p + 1, "unpigz") == 0)
++ if (p == NULL) {
++ p = argv[0];
++ }
++ else {
++ ++p;
++ }
++
++ /* decompress if named "unpigz" or "gunzip" */
++ if ((strcmp(p, "unpigz") == 0) || (strcmp(p, "gunzip") == 0))
+ decode = 1, headis = 0;
+
+ /* process command-line arguments */
diff --git a/app-arch/pigz/metadata.xml b/app-arch/pigz/metadata.xml
index 545097ac8950..77e8131fcfef 100644
--- a/app-arch/pigz/metadata.xml
+++ b/app-arch/pigz/metadata.xml
@@ -1,12 +1,13 @@
<?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>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>spatz@gentoo.org</email>
+ <name>Dror Levin</name>
+ </maintainer>
+ <longdescription lang="en">
+ A parallel implementation of gzip for modern
+ multi-processor, multi-core machines.
+ </longdescription>
</pkgmetadata>
diff --git a/app-arch/pigz/pigz-2.1.5-r1.ebuild b/app-arch/pigz/pigz-2.1.5-r1.ebuild
new file mode 100644
index 000000000000..0606feee86ed
--- /dev/null
+++ b/app-arch/pigz/pigz-2.1.5-r1.ebuild
@@ -0,0 +1,42 @@
+# 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-r1.ebuild,v 1.1 2009/12/31 16:22:52 spatz 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="symlink test"
+
+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
+ epatch "${FILESDIR}"/${P}-gunzip-compat.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "make failed"
+}
+
+src_install() {
+ dobin ${PN} || die "Failed to install"
+ dosym /usr/bin/${PN} /usr/bin/un${PN} || die
+ dodoc README || die
+ doman ${PN}.1 || die
+
+ if use symlink; then
+ dosym /usr/bin/${PN} /usr/bin/gzip || die
+ dosym /usr/bin/un${PN} /usr/bin/gunzip || die
+ fi
+}