diff --git a/app-forensics/mysql-magic/files/pull2-as_needed.patch b/app-forensics/mysql-magic/files/pull2-as_needed.patch new file mode 100644 index 000000000..941e36383 --- /dev/null +++ b/app-forensics/mysql-magic/files/pull2-as_needed.patch @@ -0,0 +1,22 @@ +From a72490dc2ad62bc27f833b9138fc6ac4ff46c3f6 Mon Sep 17 00:00:00 2001 +From: Anton Bolshakov +Date: Wed, 1 May 2019 10:45:39 +0800 +Subject: [PATCH] Update Makefile + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 82b50e7..a72f72e 100644 +--- a/Makefile ++++ b/Makefile +@@ -8,7 +8,7 @@ OBJS = src/connection-listen.o src/generic-list.o \ + all: ignotum/lib/libignotum.a mysql-magic + + mysql-magic: $(OBJS) ignotum/lib/libignotum.a +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ++ $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) + @strip mysql-magic + + src/%.o: src/%.c diff --git a/app-forensics/mysql-magic/mysql-magic-9999.ebuild b/app-forensics/mysql-magic/mysql-magic-9999.ebuild new file mode 100644 index 000000000..98b6af265 --- /dev/null +++ b/app-forensics/mysql-magic/mysql-magic-9999.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit git-r3 + +DESCRIPTION="dump mysql client password from memory" +HOMEPAGE="https://github.com/hc0d3r/mysql-magic" +EGIT_REPO_URI="https://github.com/hc0d3r/mysql-magic.git" + +LICENSE="" +SLOT="0" +KEYWORDS="" + +IUSE="" + +src_prepare() { + #https://github.com/hc0d3r/mysql-magic/pull/2/files + eapply "${FILESDIR}/pull2-as_needed.patch" + eapply_user +} + +src_install() { + dobin ${PN} +}