summaryrefslogtreecommitdiff
path: root/dev-perl/Data-HexDump
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/Data-HexDump
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/Data-HexDump')
-rw-r--r--dev-perl/Data-HexDump/Data-HexDump-0.20.0.ebuild20
-rw-r--r--dev-perl/Data-HexDump/Manifest6
-rw-r--r--dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-hexdump-pl.patch59
-rw-r--r--dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-lib-pm.patch28
-rw-r--r--dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-signed-c.patch28
-rw-r--r--dev-perl/Data-HexDump/metadata.xml12
6 files changed, 153 insertions, 0 deletions
diff --git a/dev-perl/Data-HexDump/Data-HexDump-0.20.0.ebuild b/dev-perl/Data-HexDump/Data-HexDump-0.20.0.ebuild
new file mode 100644
index 000000000000..31c38c1091c5
--- /dev/null
+++ b/dev-perl/Data-HexDump/Data-HexDump-0.20.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=FTASSIN
+DIST_VERSION=0.02
+inherit perl-module
+
+DESCRIPTION="A Simple Hexadecial Dumper"
+
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~sparc x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-hexdump-pl.patch"
+ "${FILESDIR}/${P}-lib-pm.patch"
+ "${FILESDIR}/${P}-signed-c.patch"
+)
diff --git a/dev-perl/Data-HexDump/Manifest b/dev-perl/Data-HexDump/Manifest
new file mode 100644
index 000000000000..7fc023cd5db2
--- /dev/null
+++ b/dev-perl/Data-HexDump/Manifest
@@ -0,0 +1,6 @@
+AUX Data-HexDump-0.20.0-hexdump-pl.patch 1579 BLAKE2B fb1686f1abd599243393ccd001d683d324d90c2f834daf4959d5275a00d29800265e265f3191745896e15cffc694f95f3aaf1de21f114123c1d7708db8720ef7 SHA512 a46911db10f2d5facc86cc3efc110d5871ab7c6c50893de674b99b7b2c35efa5c699f8f490ed14b71b2d5ef27b6e2cbe4e1f43e0ea960d0f8b2516c1d6fb905c
+AUX Data-HexDump-0.20.0-lib-pm.patch 677 BLAKE2B bd0ed0d2e7ed0ac6f2c79e4a4a568648a72dc2ecc9d8c1dea1c56eef85e1b983fc65ec88b3ee8192d810a25cb8ac81ca1668ecea4543599f2d44b90407da8f7f SHA512 79611868e7c265e18adc2a7169f9122f08318f19e27afcdd90eb8bde69f8c188f3f386ba25766e79deac204120c48c05bb03067ebc6e31ede01fa0a74a15d73a
+AUX Data-HexDump-0.20.0-signed-c.patch 641 BLAKE2B 01b0b688e7a4231941ef742c55fda06a71ba8415c652055f3f913c8429b3553461c17a423bebce97f7f68f6c8dddcfc1b77b8196524b6bee9f586f134c7a2a03 SHA512 ab5939487cc7e3b16337875aed7e6fbb7592520f567bb082414d06562aeaa3a053be2261504ff3b5fc5100e082c13b0544e072c04c0bde6b5b05365c9f620fb4
+DIST Data-HexDump-0.02.tar.gz 3525 BLAKE2B 8b047f0d69a3720736cf1ca2b29bf419066084e76f689818eb1319d1b40e361708b5d9e30e0706370bf08b8f652099d308663d8ea8d07b93d9ac9d0ba6edf7e8 SHA512 71e787cf679237cbddffd3eca2576812dca38216a8caf9282f7d56af4e268810f36ebd57e3e5c369ec393e7f0e9ae2edbcbe7fd5ffbe49ef4d7e8ba302a28e47
+EBUILD Data-HexDump-0.20.0.ebuild 386 BLAKE2B 2fffd1b36b314e410733908fb98844e6be1c74b30a80851a4ea0d2e85e24b521e68345ea4abaa3aa6d54d62ce43c82b0e61c688aafcf66923e2dd6268bf1f588 SHA512 a03c55ec6031a7728fdc06dcf08acbd17741475fa7ae0410077336254af9dbba408bf9855a0437cb39590fd3d10e98edcb1b9a9547cbbf9c9f7f06130ac4de04
+MISC metadata.xml 396 BLAKE2B 5e7925017f6de48e665e838e138ef7c7d32e67bcbec47ffc09a3e6ce1e273bd1284823a8fbb8f820add6f6367dc8aac3bdaacb8088b1c36f27d62740bc708560 SHA512 5126f9c11f1edb366844f8ecc7f09a05fb6f759c08aaea90e2f108440c8472701e491d79e0fed5724254599229bcd9b3ae465841d12466241e601b9540a88c65
diff --git a/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-hexdump-pl.patch b/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-hexdump-pl.patch
new file mode 100644
index 000000000000..b44b5b0b24e2
--- /dev/null
+++ b/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-hexdump-pl.patch
@@ -0,0 +1,59 @@
+From 7b70e4169faf4e2ec0fe570b02190e71bc168377 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Tue, 10 Oct 2017 08:15:54 +1300
+Subject: Rename installed script to '.pl'
+
+Note: this must not happen in dist-root, or EUMM will also install this
+as $INC[0]/Data/hexdump.pl
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=123224
+---
+ MANIFEST | 2 +-
+ Makefile.PL | 2 +-
+ hexdump => bin/hexdump.pl | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+ rename hexdump => bin/hexdump.pl (95%)
+
+diff --git a/MANIFEST b/MANIFEST
+index 2e0843a..2f0c98b 100644
+--- a/MANIFEST
++++ b/MANIFEST
+@@ -2,7 +2,7 @@ MANIFEST
+ MANIFEST.SKIP
+ Makefile.PL
+ README
+-hexdump
++bin/hexdump.pl
+ lib/Data/HexDump.pm
+ t/compare.t
+ t/data.t
+diff --git a/Makefile.PL b/Makefile.PL
+index 0ee62bf..091fa9d 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -6,5 +6,5 @@ WriteMakefile(NAME => "Data::HexDump",
+ VERSION_FROM => "lib/Data/HexDump.pm",
+ dist => { COMPRESS => "gzip", SUFFIX => "gz" },
+ clean => { FILES => '*.bak *.old mibs/*.dump lib/*/*~' },
+- EXE_FILES => [ qw(hexdump) ],
++ EXE_FILES => [ qw(bin/hexdump.pl) ],
+ );
+diff --git a/hexdump b/bin/hexdump.pl
+similarity index 95%
+rename from hexdump
+rename to bin/hexdump.pl
+index a2e28a1..9f86cd8 100755
+--- a/hexdump
++++ b/bin/hexdump.pl
+@@ -5,7 +5,7 @@ use strict;
+ use Data::HexDump;
+ use FileHandle;
+
+-my $prgname = "hexdump";
++my $prgname = "hexdump.pl";
+ my $file = shift;
+ my $fh;
+
+--
+2.14.1
+
diff --git a/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-lib-pm.patch b/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-lib-pm.patch
new file mode 100644
index 000000000000..7e7606ebc9f0
--- /dev/null
+++ b/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-lib-pm.patch
@@ -0,0 +1,28 @@
+From 36f61caaa95340817098b8b9f6631c9f2060a292 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Tue, 10 Oct 2017 08:17:01 +1300
+Subject: Remove 'use lib lib'
+
+There's no sense in blindly adding lib based on wherever you currently
+are to an installed program, its just a security problem asking to be
+invented.
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=123225
+---
+ bin/hexdump.pl | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/bin/hexdump.pl b/bin/hexdump.pl
+index 9f86cd8..1ce8962 100755
+--- a/bin/hexdump.pl
++++ b/bin/hexdump.pl
+@@ -1,6 +1,5 @@
+ #!/usr/bin/perl -w
+
+-use lib "lib";
+ use strict;
+ use Data::HexDump;
+ use FileHandle;
+--
+2.14.1
+
diff --git a/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-signed-c.patch b/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-signed-c.patch
new file mode 100644
index 000000000000..6c117334cf97
--- /dev/null
+++ b/dev-perl/Data-HexDump/files/Data-HexDump-0.20.0-signed-c.patch
@@ -0,0 +1,28 @@
+From 1eec10393fbf1123327858d127e1f6d9e50f5a85 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Tue, 10 Oct 2017 08:17:59 +1300
+Subject: Don't use signed characters for 0-255
+
+'c' == -127 to 127
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=123226
+---
+ t/compare.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/compare.t b/t/compare.t
+index f03d73d..3c25803 100644
+--- a/t/compare.t
++++ b/t/compare.t
+@@ -11,7 +11,7 @@ print "1..2\n";
+ # data
+ my $org = "";
+ for (my $i = 0; $i <= 255; $i++) {
+- $org .= pack 'c', $i;
++ $org .= pack 'C', $i;
+ }
+ $org = $org x 17 . "more data";
+
+--
+2.14.1
+
diff --git a/dev-perl/Data-HexDump/metadata.xml b/dev-perl/Data-HexDump/metadata.xml
new file mode 100644
index 000000000000..0534d0cc31a5
--- /dev/null
+++ b/dev-perl/Data-HexDump/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">Data-HexDump</remote-id>
+ <remote-id type="cpan-module">Data::HexDump</remote-id>
+ </upstream>
+</pkgmetadata>