[20947] trunk/dports/security
source_changes at macosforge.org
source_changes at macosforge.org
Tue Dec 12 17:57:48 PST 2006
Revision: 20947
http://trac.macosforge.org/projects/macports/changeset/20947
Author: markd at macports.org
Date: 2006-12-12 17:57:48 -0800 (Tue, 12 Dec 2006)
Log Message:
-----------
# 11114. New port.
Added Paths:
-----------
trunk/dports/security/samdump2/
trunk/dports/security/samdump2/Portfile
trunk/dports/security/samdump2/files/
trunk/dports/security/samdump2/files/patch-Makefile
trunk/dports/security/samdump2/files/patch-samdump2.cpp
Added: trunk/dports/security/samdump2/Portfile
===================================================================
--- trunk/dports/security/samdump2/Portfile (rev 0)
+++ trunk/dports/security/samdump2/Portfile 2006-12-13 01:57:48 UTC (rev 20947)
@@ -0,0 +1,23 @@
+# $Id$
+
+PortSystem 1.0
+name samdump2
+version 1.0.1
+categories security
+maintainers cedric.luthi at gmail.com
+description Dump Windows 2k/NT/XP password hashes
+long_description samdump2 is a tool for dumping Windows 2k/NT/XP \
+ password hashes.
+
+homepage http://www.studenti.unina.it/~ncuomo/syskey/
+master_sites ${homepage}
+checksums md5 c0e1e05467e9eceb096c002f859a5283 \
+ sha1 e1da5cfad32cb4103bb695fcc981e949145c9a19 \
+ rmd160 ed4b501e7e6604ca0f3e76504963e5f3be1c011b
+
+use_configure no
+patchfiles patch-Makefile patch-samdump2.cpp
+pre-patch {
+ # Convert Makefile from CRLF to LF line ending in order patch to work
+ reinplace "s/\r$//g" ${worksrcpath}/Makefile
+}
Added: trunk/dports/security/samdump2/files/patch-Makefile
===================================================================
--- trunk/dports/security/samdump2/files/patch-Makefile (rev 0)
+++ trunk/dports/security/samdump2/files/patch-Makefile 2006-12-13 01:57:48 UTC (rev 20947)
@@ -0,0 +1,40 @@
+--- Makefile 2006-10-15 14:22:30.000000000 +0200
++++ Makefile 2006-12-11 18:51:31.000000000 +0100
+@@ -23,9 +23,9 @@
+ INSTALL = $(shell which install)
+ CC = $(shell which gcc)
+ CCXX = $(shell which g++)
+-CFLAGS =
++CFLAGS = -DOPENSSL_DES_LIBDES_COMPATIBILITY
+ CXXFLAGS = $(CFLAGS)
+-LIBS = -lssl -ldes -Ldes
++LIBS = -lcrypto
+
+ # Default target
+ all: build
+@@ -44,7 +44,7 @@
+ # Build target
+ build: infos samdump2
+
+-samdump2: des/libdes.a samdump2.o md5_dgst.o hive.o rc4_skey.o rc4_enc.o
++samdump2: samdump2.o md5_dgst.o hive.o rc4_skey.o rc4_enc.o
+ @echo "Building binary..."
+ $(CCXX) -o $@ $^ $(CXXFLAGS) $(LIBS)
+ @echo ""
+@@ -67,12 +67,12 @@
+ # Install target
+ install: build infos
+ @echo "Creating directories..."
+- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(BINDIR)
+- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(MANDIR)
++ $(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
++ $(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)
+ @echo "Copying binary..."
+- $(INSTALL) samdump2 -m 755 -o root -g root $(DESTDIR)$(BINDIR)
++ $(INSTALL) -m 755 samdump2 $(DESTDIR)$(BINDIR)
+ @echo "Installing man page..."
+- $(INSTALL) samdump2.1 -m 644 -o root -g root $(DESTDIR)$(MANDIR)
++ $(INSTALL) -m 644 samdump2.1 $(DESTDIR)$(MANDIR)
+ @echo ""
+
+ # Uninstall target
Added: trunk/dports/security/samdump2/files/patch-samdump2.cpp
===================================================================
--- trunk/dports/security/samdump2/files/patch-samdump2.cpp (rev 0)
+++ trunk/dports/security/samdump2/files/patch-samdump2.cpp 2006-12-13 01:57:48 UTC (rev 20947)
@@ -0,0 +1,10 @@
+--- samdump2.cpp 2006-10-14 07:04:54.000000000 +0200
++++ samdump2.cpp 2006-12-11 14:06:48.000000000 +0100
+@@ -39,6 +39,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <openssl/des.h>
+ #include "rc4.h"
+ #include "md5.h"
+ #include "des/des.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061212/e971f117/attachment.html
More information about the macports-changes
mailing list