summaryrefslogtreecommitdiff
path: root/dev-util/dissembler
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-util/dissembler
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/dissembler')
-rw-r--r--dev-util/dissembler/Manifest4
-rw-r--r--dev-util/dissembler/dissembler-0.9-r1.ebuild28
-rw-r--r--dev-util/dissembler/files/dissembler-0.9-build.patch21
-rw-r--r--dev-util/dissembler/metadata.xml8
4 files changed, 61 insertions, 0 deletions
diff --git a/dev-util/dissembler/Manifest b/dev-util/dissembler/Manifest
new file mode 100644
index 000000000000..da665bfe7601
--- /dev/null
+++ b/dev-util/dissembler/Manifest
@@ -0,0 +1,4 @@
+AUX dissembler-0.9-build.patch 392 BLAKE2B 18acff634f9fbe535945f031ea80b0f66aad151c07a9dbb3c1c4a9131f68efb483222851f36644d0cc0424472575353a01c5b26f9a0a922dbe1f393f8c014ebb SHA512 a0d66735d918d6e24b5c69b58d80bc16bf27ecbb5b05b3624903438f74761e43366c0f0b3a963354ef6284c6f77ec8442d07c3e792614b7e47b0e6000c0c2523
+DIST dissembler_0.9.tgz 4479 BLAKE2B f8d964bb092b6e986e13323e3c747d82f3326c1923475fe880f3ed45ee3bda405d314433b5827b6a5d5964589249f96ddaa6bf906dc9bef4faec501e581fae01 SHA512 b6c7e4f42bb41be4320afd5d83abf6a0f1bbb58927931348e8a4ed9ee40ab756baa383ba4a405be5475ab669e5a38947422a4f6a0db16851eb8e6eb9f71f1332
+EBUILD dissembler-0.9-r1.ebuild 600 BLAKE2B 5644f3fc75cc66fd9b5595c497904295d4e41acf332ca8c1d75b87f1330617cb8fcf88889600ed816f6ab9f746e651585b6040af81331440e8fef3905dc3f533 SHA512 528ff09f77da4647d744ab7ce906abdc3758c6e887acea44b322937391ab9d66e0af6678585fcf6e23ae28d61e39a374ad758038c19dc868ff02e4092db64b91
+MISC metadata.xml 256 BLAKE2B f970beb47a5cc598eaf22967c64cdb8a46f9dd94a369a636419862c04bc53fe5e1bddc4c2b9cdaf8f038d0de69d5ab8299b62addaeb7e1dfea3846f884357e4e SHA512 eb8e446afc52f5f079733bdaf0db316e97194ba08e3b1370a287db29ea0bd7974bb237dfc67ff22a115538ec830b632b98390a8e59ace9634a89dfa9c02037b5
diff --git a/dev-util/dissembler/dissembler-0.9-r1.ebuild b/dev-util/dissembler/dissembler-0.9-r1.ebuild
new file mode 100644
index 000000000000..0635a8c2aace
--- /dev/null
+++ b/dev-util/dissembler/dissembler-0.9-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+MY_P=${PN}_${PV}
+DESCRIPTION="polymorphs bytecode to a printable ASCII string"
+HOMEPAGE="http://www.securiteam.com/tools/5MP0L2KFPA.html"
+SRC_URI="https://repo.palkeo.com/repositories/mirror7.meh.or.id/Tools/OTHER_TOOLS/ShellCode/${MY_P}.tgz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}/${P}-build.patch" )
+
+src_compile() {
+ emake CC="$(tc-getCC)" ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ${PN}.txt
+}
diff --git a/dev-util/dissembler/files/dissembler-0.9-build.patch b/dev-util/dissembler/files/dissembler-0.9-build.patch
new file mode 100644
index 000000000000..0271d6243452
--- /dev/null
+++ b/dev-util/dissembler/files/dissembler-0.9-build.patch
@@ -0,0 +1,21 @@
+--- a/dissembler.c
++++ b/dissembler.c
+@@ -16,6 +16,9 @@
+
+ /* FOR EDUCATIONAL PURPOSES ONLY */
+
++#define _GNU_SOURCE
++#include <string.h>
++#include <unistd.h>
+ #include <stdio.h>
+ #include <sys/stat.h>
+ #include <ctype.h>
+@@ -217,7 +217,7 @@ freedom:
+ fprintf(fh, "P");
+ }
+ fprintf(fh,"\n");
+- if(fh != stdout) close(fh);
++ if(fh != stdout) fclose(fh);
+ free(mem-21);
+ }
+
diff --git a/dev-util/dissembler/metadata.xml b/dev-util/dissembler/metadata.xml
new file mode 100644
index 000000000000..b4a27e94fc24
--- /dev/null
+++ b/dev-util/dissembler/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+</pkgmetadata>