diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-cdr/xdvdfs-tools |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-cdr/xdvdfs-tools')
-rw-r--r-- | app-cdr/xdvdfs-tools/Manifest | 6 | ||||
-rw-r--r-- | app-cdr/xdvdfs-tools/files/xdvdfs-tools-2.1-fnamefix.patch | 17 | ||||
-rw-r--r-- | app-cdr/xdvdfs-tools/metadata.xml | 8 | ||||
-rw-r--r-- | app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild | 45 |
4 files changed, 76 insertions, 0 deletions
diff --git a/app-cdr/xdvdfs-tools/Manifest b/app-cdr/xdvdfs-tools/Manifest new file mode 100644 index 000000000000..77577e953b39 --- /dev/null +++ b/app-cdr/xdvdfs-tools/Manifest @@ -0,0 +1,6 @@ +AUX xdvdfs-tools-2.1-fnamefix.patch 677 SHA256 488b5e678ac903de9178d15523f051c504e649f8d9c2b651e5a2579ab326aa75 SHA512 c18cd21c071d5bec12ad33c2194dbc6ba358612959dd97a70439565f702cc9a138114aca933e9592dffddb20faa75a6ad1f00bfabc59a0b1da3ef0f4655f9bab WHIRLPOOL 86fc4a65dbac045d6e4ec00b90b58f5227e1d4d81961fbfbe6f88012130b29bc277847571462380adf86e1e6ae71fbe79953092eb2606c1311470e23bf74c47e +DIST XDVDFSToolsv2.1.rar 211193 SHA256 ad9603564597004151812302074408a60c54cabcc19e843e1186b5a506eb068f SHA512 c3158dc603ac363cadc2dcc99fd112ef66be6ae8fa4f89544cbf4c5a6490cace82cf1d16fa748ede4d206359e2e6752ffd6bfe074ad3c48f9a829e4938f1e99d WHIRLPOOL 2b746fd49df10d0eb212c6aa91a88abdf2214c56d3eabc496e34ae58faf7aff0a921e72d3a9547b225823792dfdcc45617d78dacfb7d5d21c0b58f21eec441f5 +EBUILD xdvdfs-tools-2.1-r1.ebuild 1150 SHA256 f818d892559203ff1126849fb6399d47782ca639df43a99c671d731d706aab59 SHA512 dbaecfd0fb1d08a2315623e5a9e16c5060e79741be3815498349b017faba56ac23a2caaf911acc99f18ee3c7fa13a9db4f8411317420473a5a5a5b9f027ba372 WHIRLPOOL e873047d4fa76c0af4d3274d4eb846514f15b8de9ed5c170d52939884c30fae2376b74a1786d5d5ad918315d1e8c01bd7006bb548dee86eb7896bbd220631dd3 +MISC ChangeLog 2485 SHA256 ab581eba165347057009f43d5d2d753d1496f027d38f12307f19ab456863425d SHA512 7444337822da6fa911929ffa0a921f3665dc293360a22d26e11624882276957dfb3086179708a448c0d2b4d062aa3367b650939f93343b24eac78d8f7e707071 WHIRLPOOL fafed6c86c9b97f0e6039c9fd5f75e36a82825306e1eca7f2d36c546dec13803ccdeff3c16e35d305c591f2dc05a12430cf2e69e75f4f85d40b262b7e4588f9e +MISC ChangeLog-2015 1637 SHA256 af6722b08927ac1e4e45f75a3d0e5397948df7b74a344bb3face1ea041c2729a SHA512 806d7172399ffe76341b4086ce071c3ba348765e28b5f79ca07bd44d2eda2f3d6451f99cf120b955df19b0547217f0ebfda5d5a410b16215aeabe1a77f6031d6 WHIRLPOOL 14a63b11417d5b7ff17085dbd7370b7e0a190845aa5db604db085a7015ef19e936dde7aa3f4ac08af70a2433c964e6ab41cb09ccef251b1b7641e74bfbc18a92 +MISC metadata.xml 297 SHA256 998040939f40e7daba070449ce70410a0aba340ace01235a5f5e915c0394504c SHA512 004684948e2cc8dc937fd45fe54c605fb990cd7a453c71e95dea5a0bb429bd6d855e2abdf8dc712f9e4a8ac3270220608b1605492182d06beeb841b0a06bc46e WHIRLPOOL 591040ed509e8f485e4db1a865877f1fbd5d7e4b963b769ddb9c196050841f31210e407b0580372cd67d910e250b46b40957fa4d576a0c6399b8e0cc88d87c78 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..34c1f7881902 --- /dev/null +++ b/app-cdr/xdvdfs-tools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>vapier@gentoo.org</email> + </maintainer> + <longdescription>Tools for manipulating Xbox ISO images</longdescription> +</pkgmetadata> 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..53e26ae6fd54 --- /dev/null +++ b/app-cdr/xdvdfs-tools/xdvdfs-tools-2.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} |