summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Mueller <dev-zero@gentoo.org>2009-09-05 13:09:57 +0200
committerTiziano Mueller <dev-zero@gentoo.org>2009-09-05 13:09:57 +0200
commitcb2f5b8155c1e9937637aa7ba60ff3a2fea9abcc (patch)
treef2e1ecf09ff168a5a54eeb0951ce1acd28fa06de /app-crypt
parentAdded etc-proposals ebuild with paludis patch. (diff)
downloaddev-zero-cb2f5b8155c1e9937637aa7ba60ff3a2fea9abcc.tar.gz
dev-zero-cb2f5b8155c1e9937637aa7ba60ff3a2fea9abcc.tar.bz2
dev-zero-cb2f5b8155c1e9937637aa7ba60ff3a2fea9abcc.zip
Added ebuild for samdump2.
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/samdump2/Manifest3
-rw-r--r--app-crypt/samdump2/files/2.0.1-makefile.patch29
-rw-r--r--app-crypt/samdump2/samdump2-2.0.1.ebuild30
3 files changed, 62 insertions, 0 deletions
diff --git a/app-crypt/samdump2/Manifest b/app-crypt/samdump2/Manifest
new file mode 100644
index 0000000..718509e
--- /dev/null
+++ b/app-crypt/samdump2/Manifest
@@ -0,0 +1,3 @@
+AUX 2.0.1-makefile.patch 779 RMD160 f08222a0ec390b0f90b2be5388e07e9c35313f6f SHA1 3f6d5bdf658e00f0e581656fcfb553538ed18cf7 SHA256 97980a2595aa9e845603a4a27226ed20766e31242b8b6e07166df91d03c66aea
+EBUILD samdump2-2.0.1.ebuild 585 RMD160 16b0aaf9ac09e6b43834dc56d490a6100c889e0f SHA1 be96af2d04bd5026a16bedb4e85a683574437684 SHA256 616b46da74a4654c71cfc48ba86db35b529e9ba192ac3dd9e441153fb1221c18
+DIST samdump2-2.0.1.tar.bz2 20673 RMD160 d55bd7d61d6551e74559214590d08bd5ba2f9586 SHA1 0609223e5d94b0d32ffc588b9986fb71493b3931 SHA256 f9669bd75a29e050235b45ad57030e7311984f834668885cc5c3b7f100df3e4b
diff --git a/app-crypt/samdump2/files/2.0.1-makefile.patch b/app-crypt/samdump2/files/2.0.1-makefile.patch
new file mode 100644
index 0000000..7fe240e
--- /dev/null
+++ b/app-crypt/samdump2/files/2.0.1-makefile.patch
@@ -0,0 +1,29 @@
+--- Makefile.orig 2009-09-05 13:02:10.239693713 +0200
++++ Makefile 2009-09-05 13:07:57.573849637 +0200
+@@ -24,13 +24,13 @@
+ samdump2.1 samdump2.h bkhive.c COPYING hive.h list.c\
+ main.c README samdump2.c
+ DESTDIR =
+-PREFIX = /usr/local/
++PREFIX ?= /usr/local/
+ BINDIR = $(PREFIX)/bin
+ MANDIR = $(PREFIX)/share/man/man1
+ INSTALL = $(shell which install)
+-CC = $(shell which gcc)
+-CFLAGS = -Wall
+-LIBS = -lssl
++CC ?= $(shell which gcc)
++CFLAGS ?= -Wall
++LIBS = $(shell pkg-config --libs openssl)
+
+ # Default target
+ all: build
+@@ -39,7 +39,7 @@
+
+ samdump2: hive.o list.o bkhive.o samdump2.o main.o
+ @echo "Building binary..."
+- $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+ @echo ""
+
+ # Clean target
diff --git a/app-crypt/samdump2/samdump2-2.0.1.ebuild b/app-crypt/samdump2/samdump2-2.0.1.ebuild
new file mode 100644
index 0000000..8db582f
--- /dev/null
+++ b/app-crypt/samdump2/samdump2-2.0.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Dump the password hashes of a SAM hive with a bootkey file."
+HOMEPAGE="http://ophcrack.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ophcrack/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-libs/openssl"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-makefile.patch"
+}
+
+src_install() {
+ dobin samdump2
+ doman samdump2.1
+ dodoc AUTHORS ChangeLog README
+}