summaryrefslogtreecommitdiff
path: root/app-crypt/nasty
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/nasty')
-rw-r--r--app-crypt/nasty/Manifest4
-rw-r--r--app-crypt/nasty/files/nasty-0.6-flags.patch22
-rw-r--r--app-crypt/nasty/metadata.xml8
-rw-r--r--app-crypt/nasty/nasty-0.6-r1.ebuild33
4 files changed, 67 insertions, 0 deletions
diff --git a/app-crypt/nasty/Manifest b/app-crypt/nasty/Manifest
new file mode 100644
index 000000000000..a5d21a3f985e
--- /dev/null
+++ b/app-crypt/nasty/Manifest
@@ -0,0 +1,4 @@
+AUX nasty-0.6-flags.patch 468 BLAKE2B acc1ac4bbe024136a176f04a3f6ba85190ffa34b4655d4e284ed980774169ab790f5582d8ce8d86cb59ceecaeefb579f975dacc5144b6bf8fc5da741819a8f27 SHA512 56d808209a9ba1fd1fa3b77ed90398cded9adb08c271ed74c80c5dff793413f1e7270ab057bd253c8c1e951dec7e7b8ad6c92976abb7c267109f517ccb81d4a1
+DIST nasty-0.6.tgz 3811 BLAKE2B d6e5973c4f1335fe936b9a7c976d5a0f994cf618ed83c8ae7629256c2dbab17b631a095a14da366d7011add5df5263d63de66db4b3e69712aae0be092fa50064 SHA512 6803c1ccb843934ab6d2bd173c4cf154124926ee493a79072b351167f7fbbc08f90226ba63d2c591f2ae122d33d7cf1dc6b60e8684dc7ec650c8bcf3f04b3e07
+EBUILD nasty-0.6-r1.ebuild 563 BLAKE2B aa8f6e49e82ebf032735171d2c90d1364bea6634b47603d2c15676720ecf70e26538c238a9a5b14f50f68f0e375a3c7dc37163845d0834fa0632f957ea78693b SHA512 a71d286a93f11ae9fda832d5f475cfa7b6dcd74575517dcc7783106a4b1e62e635be70106e1a4e64e2df59880cdda36db79ea21a770768f1dfef16ba527978ea
+MISC metadata.xml 246 BLAKE2B 569d634cc821d4a537880a58ca96bf709155b0af827d8153b9521d5ca29f174ec29629d11b9eb91ee1cbba5f1a823d5c621521105a00e9fbd6d9a27bc3740bde SHA512 8ac20e3524a896e77d186b34b589ffe4287593c43fca1d50bcc06cd27e8cb8f5c0da2087622413a748a1738177d5939a50bda7a1e5d0ba36fbf4fb6d7b9bb015
diff --git a/app-crypt/nasty/files/nasty-0.6-flags.patch b/app-crypt/nasty/files/nasty-0.6-flags.patch
new file mode 100644
index 000000000000..522e570a94a8
--- /dev/null
+++ b/app-crypt/nasty/files/nasty-0.6-flags.patch
@@ -0,0 +1,22 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,15 +1,16 @@
+ VERSION=0.6
+
+ DEBUG=-g # -pg
+-CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG)
+-LDFLAGS=-lgpgme $(DEBUG)
++CPPFLAGS+=-DVERSION=\"${VERSION}\" -D_FILE_OFFSET_BITS=64
++CFLAGS+=-Wall $(DEBUG) `gpgme-config --cflags`
++LIBS=`gpgme-config --libs`
+
+ OBJS=nasty.o
+
+ all: nasty
+
+ nasty: $(OBJS)
+- $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o nasty
++ $(CC) $(LDFLAGS) $(OBJS) -o nasty $(LIBS)
+
+ install: nasty
+ cp nasty /usr/bin
diff --git a/app-crypt/nasty/metadata.xml b/app-crypt/nasty/metadata.xml
new file mode 100644
index 000000000000..4f6e28828f65
--- /dev/null
+++ b/app-crypt/nasty/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="project">
+ <email>crypto@gentoo.org</email>
+ <name>Crypto</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-crypt/nasty/nasty-0.6-r1.ebuild b/app-crypt/nasty/nasty-0.6-r1.ebuild
new file mode 100644
index 000000000000..8cfa34f4d007
--- /dev/null
+++ b/app-crypt/nasty/nasty-0.6-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Proof-of-concept GPG passphrase recovery tool"
+HOMEPAGE="http://www.vanheusden.com/nasty/"
+SRC_URI="http://www.vanheusden.com/nasty/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="app-crypt/gpgme"
+DEPEND="${RDEPEND}"
+
+DOCS=(
+ readme.txt
+)
+
+PATCHES=(
+ "${FILESDIR}/${P}-flags.patch"
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" DEBUG=
+}
+
+src_install() {
+ einstalldocs
+ dobin nasty
+}