From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-cdr/xdvdfs-tools/Manifest | 4 ++ .../files/xdvdfs-tools-2.1-fnamefix.patch | 17 ++++++++ app-cdr/xdvdfs-tools/metadata.xml | 6 +++ app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild | 47 ++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 app-cdr/xdvdfs-tools/Manifest create mode 100644 app-cdr/xdvdfs-tools/files/xdvdfs-tools-2.1-fnamefix.patch create mode 100644 app-cdr/xdvdfs-tools/metadata.xml create mode 100644 app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild (limited to 'app-cdr/xdvdfs-tools') diff --git a/app-cdr/xdvdfs-tools/Manifest b/app-cdr/xdvdfs-tools/Manifest new file mode 100644 index 000000000000..f3b4b6f4b1f2 --- /dev/null +++ b/app-cdr/xdvdfs-tools/Manifest @@ -0,0 +1,4 @@ +AUX xdvdfs-tools-2.1-fnamefix.patch 677 BLAKE2B bfed8e31e9a521d29b56c51ecf340d862e039d9e25aa97ecba360a61a37d02485669954f8b5c1af4618cc88284fafefc7875a6ecae2bb073be2a65c2ee88cc5c SHA512 c18cd21c071d5bec12ad33c2194dbc6ba358612959dd97a70439565f702cc9a138114aca933e9592dffddb20faa75a6ad1f00bfabc59a0b1da3ef0f4655f9bab +DIST XDVDFSToolsv2.1.rar 211193 BLAKE2B 29190302427d57976e276a2fdffbcd472134148936b01a5e05d71377e5d646b8740f205b0b150d6a0631cdb0d1ca3bb84f36d1e70905c77d3a6e49ede7780af1 SHA512 c3158dc603ac363cadc2dcc99fd112ef66be6ae8fa4f89544cbf4c5a6490cace82cf1d16fa748ede4d206359e2e6752ffd6bfe074ad3c48f9a829e4938f1e99d +EBUILD xdvdfs-tools-2.1-r1.ebuild 1158 BLAKE2B 2d1a8403a3564000b4d76c5e1bb26a678ccdbb81945fda2e214bac76ac7fca132aeb2eab935e7805aa7bcb702f39b9107f2cab10333942a9bb6deae180f44bd2 SHA512 f79c6e0eedaf3e5119406df82d24639e2bad0adc055d41a69c7507ebb81227fc2ce56fd149360cbaf43919aa5823a2b44e591f4a5cec65c06d3154a21767b25a +MISC metadata.xml 244 BLAKE2B b954540d65ea8f530fc4f5257d44c4312da99da514b960e42efbee6ea96d7a7b20298f29dd38a94572f73110c02dfbc55174e5781817585c26552467179ec91e SHA512 399963932d63a0f60cf264aaccae581f82015e8cdcfd615860339589d32c21c465996bfd51c7bfd622bd5a874b59566f81b82d8ba98a3559f1d5435dd5f9c290 diff --git a/app-cdr/xdvdfs-tools/files/xdvdfs-tools-2.1-fnamefix.patch b/app-cdr/xdvdfs-tools/files/xdvdfs-tools-2.1-fnamefix.patch new file mode 100644 index 000000000000..4d06822eb06c --- /dev/null +++ b/app-cdr/xdvdfs-tools/files/xdvdfs-tools-2.1-fnamefix.patch @@ -0,0 +1,17 @@ +--- XDVDFS_Tools.orig/src/xdvdfs/xdvdfs.c 2003-08-15 23:26:58.000000000 +0000 ++++ XDVDFS_Tools/src/xdvdfs/xdvdfs.c 2005-05-21 12:13:55.655839216 +0000 +@@ -157,6 +157,14 @@ + memcpy(SearchRecord->Filename, Entry->Filename, Entry->FilenameLength); + SearchRecord->Filename[Entry->FilenameLength] = 0; + ++ if (strstr(SearchRecord->Filename,"..") || ++ strchr(SearchRecord->Filename, '/') || ++ strchr(SearchRecord->Filename, '\\')) ++ { ++ printf("Filename contains invalid characters\n"); ++ exit(1); ++ } ++ + // Copy file parameters in the search_rec + SearchRecord->Attributes = Entry->FileAttributes; + SearchRecord->FileSize = ENDIAN_SAFE32(Entry->FileSize); diff --git a/app-cdr/xdvdfs-tools/metadata.xml b/app-cdr/xdvdfs-tools/metadata.xml new file mode 100644 index 000000000000..1e7d0f7b5623 --- /dev/null +++ b/app-cdr/xdvdfs-tools/metadata.xml @@ -0,0 +1,6 @@ + + + + + Tools for manipulating Xbox ISO images + diff --git a/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild b/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild new file mode 100644 index 000000000000..7ad8b3e56926 --- /dev/null +++ b/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +inherit eutils toolchain-funcs + +DESCRIPTION="Tools for manipulating Xbox ISO images" +HOMEPAGE="http://www.layouts.xbox-scene.com/" +SRC_URI="http://www.layouts.xbox-scene.com/main/files/XDVDFSToolsv${PV}.rar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="" + +DEPEND="|| ( app-arch/unrar app-arch/rar )" +RDEPEND="" + +S=${WORKDIR}/XDVDFS_Tools/src + +src_unpack() { + unpack ${A} + mv "XDVDFS Tools" XDVDFS_Tools + sed -i \ + -e '/^LDFLAGS = -s/d' \ + -e '/^CCFLAGS =/s:=.*:= ${CFLAGS} ${CPPFLAGS}:g' \ + -e "/^CC =/s:=.*:=$(tc-getCC):" \ + "${S}"/makefile.prefab + epatch "${FILESDIR}"/${P}-fnamefix.patch + mkdir "${S}"/xdvdfs_extract/output "${S}"/xdvdfs_maker/output +} + +src_compile() { + local d + for d in xdvdfs_{dumper,extract,maker} ; do + emake -C ${d} || die + done +} + +src_install() { + dobin xdvdfs_dumper/output/xdvdfs_dumper || die "xdvdfs_dumper" + dobin xdvdfs_extract/output/xdvdfs_extract || die "xdvdfs_extract" + dobin xdvdfs_maker/output/xdvdfs_maker || die "xdvdfs_maker" + dohtml ../documentation/*.htm + dodoc ../Readme.txt +} -- cgit v1.2.3