diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:58:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:58:29 +0100 |
commit | 0cf2f20608308acdf3cb922c3736446bbd8f3388 (patch) | |
tree | 07815070629c7c11000a7f51ceb8ccbccb49a809 /games-util/dzip | |
parent | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-util/dzip')
-rw-r--r-- | games-util/dzip/Manifest | 6 | ||||
-rw-r--r-- | games-util/dzip/dzip-2.9-r3.ebuild | 30 | ||||
-rw-r--r-- | games-util/dzip/files/dzip-2.9-scrub-names.patch | 88 | ||||
-rw-r--r-- | games-util/dzip/files/dzip-2.9-system-zlib-r2.patch | 72 | ||||
-rw-r--r-- | games-util/dzip/files/dzip-amd64.diff | 30 | ||||
-rw-r--r-- | games-util/dzip/metadata.xml | 11 |
6 files changed, 0 insertions, 237 deletions
diff --git a/games-util/dzip/Manifest b/games-util/dzip/Manifest deleted file mode 100644 index 2bb02e7a6b5b..000000000000 --- a/games-util/dzip/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX dzip-2.9-scrub-names.patch 1816 BLAKE2B e56b4086e70ff682e8163dc8f6c7620882f7b4ee9245111da93faca8a5cee1fb0aa9422dc03451ff1c147664adc6dec34da0a1a99ec31c4f56179b37fcd6ea10 SHA512 94fceecee4538bb0d0aac460d864ebb4bbbb3ad3aa6be7593115bc850e19b1630bceb2df9268e569a30457e8b2483b3678199629b78d192dcdf3bee0b00178c8 -AUX dzip-2.9-system-zlib-r2.patch 1844 BLAKE2B ebaa30eb9100cd616c4986240d6ba2c360a2cbd17d16aa67172bbae41da1be92aeb77ec3af942a8f0c86029c29ad92900ba991020388a43eab050ca28d799a5f SHA512 04e95334b03b1590bfd73cd5905186a8ba28a36655b9c829dcd913842c0f2c2802133d453134080f3a4664ec106e7693482b43981c5849ecc1a781a7f37b0625 -AUX dzip-amd64.diff 643 BLAKE2B 6752ccdab94f080cc0905bceabfe4d49fdd007c366fb10f833e5d85935ce1f206c5ba39be7f7414ed1dd0f01f16995ed17e36c341e8accc4530ff75a5c88f43f SHA512 30a381f95807cc61b8c393f3e5fb5c1f250e4578b1601f5ee8944c7b94a3d3f983478075cee3c76858b5d0df768b6bd3e91578e6679f443fb8d6f7fa30b48f18 -DIST dz29src.zip 100354 BLAKE2B 1b0ab969daa030c135dab049f9950079f0337ca64636765298316e699614dfe3c139b0b88321c29278aadbe6b93ca75f2d656e82ae2dbf54b98f19d9fd3053d9 SHA512 3e1071da6ae5c9064b7222f1bb553b787ded4acbfe8463a7a94f17e60748b68cdfc17672ef7220deddd394c6709efe632e53e61508fd48bfa9001e43a37e788f -EBUILD dzip-2.9-r3.ebuild 648 BLAKE2B 98bb809f8fc9e6232aa3ae0ff43af43c2661e0d523db63bc7f42f36af5059817362dc8a188833b262fbe9f08547c2830969dbd495658adf7ff381b559bd90fca SHA512 44cc75228481fabec5366375bb2418624fc26784df93894e42f1a28195109ab2a112b70cc3fcd29578c22ab2065f247425117a49d80839319411d079d8f8596c -MISC metadata.xml 326 BLAKE2B 24ee80a289a9dc670ba0592e623568a083bff065c740db1dfeb877329aa2f12b59eb20491f488f6311afd3e8df849c123013503fdf2ef739ee9c357f965e5797 SHA512 a1550e2953010f4593e3c7cbe54783f4e0a5859f58e756b6cde50c0d404ca10f8eb0f43df223c6f7df454429d90f496a99aee08f68c8830a1aa396e1febcbe7c diff --git a/games-util/dzip/dzip-2.9-r3.ebuild b/games-util/dzip/dzip-2.9-r3.ebuild deleted file mode 100644 index a58b74eb99b2..000000000000 --- a/games-util/dzip/dzip-2.9-r3.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils - -DESCRIPTION="compressor/uncompressor for demo recordings from id's Quake" -HOMEPAGE="http://speeddemosarchive.com/dzip/" -SRC_URI="http://speeddemosarchive.com/dzip/dz${PV/./}src.zip" - -LICENSE="ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -DEPEND="app-arch/unzip" -RDEPEND="" - -S="${WORKDIR}" - -src_prepare() { - epatch "${FILESDIR}"/${P}-system-zlib-r2.patch - epatch "${FILESDIR}"/${P}-scrub-names.patch #93079 - epatch "${FILESDIR}/dzip-amd64.diff" - mv -f Makefile{.linux,} -} - -src_install () { - dobin dzip - dodoc Readme -} diff --git a/games-util/dzip/files/dzip-2.9-scrub-names.patch b/games-util/dzip/files/dzip-2.9-scrub-names.patch deleted file mode 100644 index 079fae3fd070..000000000000 --- a/games-util/dzip/files/dzip-2.9-scrub-names.patch +++ /dev/null @@ -1,88 +0,0 @@ -Fix directory traversals issues. - -Since .dz files normally just have relative directory trees: -pak/ -pak/file -pak/subdir/file - -we strip out all the components which ascend in the directory tree - -http://bugs.gentoo.org/93079 - ---- main.c -+++ main.c -@@ -77,6 +77,48 @@ int dzRead (int inlen) - return 1;
- } -
-+#define IS_SEP(c) (c == '/' || c == ':' || c == '\\') -+void scrub_name(char *smee) -+{ -+ char *paths[] = { "../", "..\\", "..:", NULL}; -+ size_t p, i, len; -+ char scrubit, scrubbed; -+ -+ scrubbed = 0; -+ len = strlen(smee); -+ i = 0; -+ scrubit = 1; -+ -+ /* search the path and scrub out all relative paths */ -+ while (i + 3 < len) { -+ for (p = 0; paths[p]; ++p) { -+ if (scrubit && !strncmp(paths[p], smee+i, 3)) { -+ scrubbed = 1; -+ memset(smee+i, '\0', 3); -+ i += 2; -+ break; -+ } -+ } -+ scrubit = IS_SEP(smee[i]) || smee[i] == '\0'; -+ ++i; -+ } -+ -+ if (!scrubbed) -+ return; -+ -+ /* condense the string over all the scrubbed bits */ -+ p = 0; -+ for (i = 0; i < len; ++i) { -+ while (p < len && smee[p] == '\0') -+ ++p; -+ if (p == len) { -+ smee[i] = '\0'; -+ break; -+ } -+ smee[i] = smee[p++]; -+ } -+} -+
- int dzReadDirectoryEntry (direntry_t *de) - { - char *s; -@@ -102,6 +144,7 @@ int dzReadDirectoryEntry (direntry_t *de - s = Dzip_malloc(de->len);
- dzFile_Read(s, de->len);
- de->name = s; -+ scrub_name(de->name); - if (de->pak && de->type != TYPE_PAK) - return 1; /* dont mess with dirchar inside pakfiles */ - do ---- v1code.c -+++ v1code.c -@@ -201,6 +201,7 @@ void demv1_dxentities(void) - - } -
-+extern void scrub_name(char *smee); - void dzUncompressV1 (int testing)
- {
- int i, inlen = 0;
-@@ -221,6 +222,7 @@ void dzUncompressV1 (int testing)
- {
- de = directory + i;
- crcval = INITCRC;
-+ scrub_name(de->name); - printf("%s %s",action,de->name);
- fflush(stdout);
-
diff --git a/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch b/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch deleted file mode 100644 index 4bf10f8b98f6..000000000000 --- a/games-util/dzip/files/dzip-2.9-system-zlib-r2.patch +++ /dev/null @@ -1,72 +0,0 @@ ---- dzip.h -+++ dzip.h -@@ -2,7 +2,7 @@ - #include <stdlib.h>
- #include <string.h>
-
--#include "zlib/zlib.h"
-+#include <zlib.h>
-
- typedef unsigned char uchar;
-
-@@ -177,4 +177,4 @@ - #else
- #define DIRCHAR '/'
- #define WRONGCHAR '\\'
--#endif -\ No newline at end of file -+#endif
---- Makefile.linux -+++ Makefile.linux -@@ -1,18 +1,17 @@ - # Makefile for linux
-
--CC = gcc
--CFLAGS = -Wall -O3
-+CC ?= gcc
-+CFLAGS ?= -O3
-+CFLAGS += -Wall
- TARGET = dzip
- OBJECTS = main.o compress.o uncompress.o list.o crc32.o \
-- encode.o decode.o v1code.o conmain.o delete.o \
-- zlib/adler32.o zlib/deflate.o zlib/trees.o \
-- zlib/inflate.o zlib/infblock.o zlib/inftrees.o zlib/infcodes.o \
-- zlib/infutil.o zlib/inffast.o
-+ encode.o decode.o v1code.o conmain.o delete.o
-+LIBS = -lz
-
- TMPFILES = gmon.out frag*
-
- $(TARGET): $(OBJECTS)
-- $(CC) $(CFLAGS) $(OBJECTS) -o $(TARGET) $(LDFLAGS)
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
-
- clean:
- rm -f $(TARGET) $(OBJECTS) $(TMPFILES)
-@@ -24,4 +23,4 @@ - encode.o: encode.c dzip.h
- list.o: list.c dzip.h dzipcon.h
- decode.o: decode.c dzip.h dzipcon.h
--v1code.o: v1code.c dzip.h dzipcon.h -\ No newline at end of file -+v1code.o: v1code.c dzip.h dzipcon.h
---- conmain.c.orig 2010-01-17 15:10:20.938605770 +0000 -+++ conmain.c 2010-01-17 15:10:34.180603846 +0000 -@@ -507,8 +507,8 @@ - if (!strcmp(argv[i],"-o")) i++;
- }
-
-- zs.zalloc = Dzip_calloc;
-- zs.zfree = free;
-+ zs.zalloc = Z_NULL; // Dzip_calloc; <- wrong number of arguments, reverting to default
-+ zs.zfree = Z_NULL; // free; <- wrong number of arguments, reverting to default
-
- if (flag[SW_LIST] || flag[SW_EXTRACT] || flag[SW_VERIFY])
- {
-@@ -618,4 +618,4 @@ - dzDeleteFiles_MakeList(files + 1, fileargs - 1);
- free(files);
- exit(0);
--} -\ No newline at end of file -+}
diff --git a/games-util/dzip/files/dzip-amd64.diff b/games-util/dzip/files/dzip-amd64.diff deleted file mode 100644 index ef49ff330570..000000000000 --- a/games-util/dzip/files/dzip-amd64.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- dzip/crc32.c 2002-07-12 06:07:54.000000000 +0200 -+++ dz/crc32.c 2010-01-20 23:23:43.000000000 +0100 -@@ -1,10 +1,12 @@ -+#include <stdint.h> -+ - unsigned long crcval; - unsigned long crctable[256]; - --unsigned long crc_reflect(unsigned long x, int bits) --{
-- int i; -- unsigned long v = 0, b = 1 << (bits - 1); -+unsigned long crc_reflect(uint32_t x, int bits) -+{ -+ uint32_t i; -+ uint32_t v = 0, b = 1 << (bits - 1); - - for (i = 0; i < bits; i++) - { -@@ -16,8 +18,8 @@ - - void crc_init(void) - { -- unsigned long crcpol = 0x04c11db7; -- unsigned long i, j, k; -+ uint32_t crcpol = 0x04c11db7; -+ uint32_t i, j, k; - - for (i = 0; i < 256; i++) - { diff --git a/games-util/dzip/metadata.xml b/games-util/dzip/metadata.xml deleted file mode 100644 index d3c0508f60cd..000000000000 --- a/games-util/dzip/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>hanno@gentoo.org</email> -</maintainer> -<maintainer type="project"> - <email>games@gentoo.org</email> - <name>Gentoo Games Project</name> -</maintainer> -</pkgmetadata> |