pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/rainbowcrack Fix build on DragonFly. From PR ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bc2764611b2a
branches: trunk
changeset: 547484:bc2764611b2a
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Sep 17 16:15:54 2008 +0000
description:
Fix build on DragonFly. From PR 38835.
Add DESTDIR support.
diffstat:
security/rainbowcrack/Makefile | 10 ++++++----
security/rainbowcrack/distinfo | 3 ++-
security/rainbowcrack/files/Makefile | 4 ++--
security/rainbowcrack/patches/patch-aa | 13 +++++++++++++
4 files changed, 23 insertions(+), 7 deletions(-)
diffs (83 lines):
diff -r d5e77eff839b -r bc2764611b2a security/rainbowcrack/Makefile
--- a/security/rainbowcrack/Makefile Wed Sep 17 16:11:28 2008 +0000
+++ b/security/rainbowcrack/Makefile Wed Sep 17 16:15:54 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/01/18 05:09:41 tnn Exp $
+# $NetBSD: Makefile,v 1.4 2008/09/17 16:15:54 joerg Exp $
#
PKGNAME= rainbowcrack-1.2
@@ -14,6 +14,8 @@
HOMEPAGE= http://www.antsight.com/zsl/rainbowcrack/
COMMENT= Hash cracker
+PKG_DESTDIR_SUPPORT= user-destdir
+
BUILD_DIRS= src
EXTRACT_OPTS_ZIP= -aqo
USE_LANGUAGES= c c++
@@ -22,13 +24,13 @@
USE_OLD_DES_API= yes
INSTALLATION_DIRS= bin share/doc/rainbowcrack share/rainbowcrack
-post-patch:
+pre-patch:
cd ${WRKSRC}/src && ${PATCH} < ${WRKDIR}/Public.cpp.diff
post-install:
cd ${WRKSRC}/doc && ${INSTALL_DATA} *.htm \
- ${PREFIX}/share/doc/rainbowcrack/
- ${INSTALL_DATA} ${WRKSRC}/src/charset.txt ${PREFIX}/share/rainbowcrack
+ ${DESTDIR}${PREFIX}/share/doc/rainbowcrack/
+ ${INSTALL_DATA} ${WRKSRC}/src/charset.txt ${DESTDIR}${PREFIX}/share/rainbowcrack
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r d5e77eff839b -r bc2764611b2a security/rainbowcrack/distinfo
--- a/security/rainbowcrack/distinfo Wed Sep 17 16:11:28 2008 +0000
+++ b/security/rainbowcrack/distinfo Wed Sep 17 16:15:54 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/10/21 07:47:25 adrianp Exp $
+$NetBSD: distinfo,v 1.2 2008/09/17 16:15:54 joerg Exp $
SHA1 (rainbowcrack-1.2-src.zip) = b077a654133cd108a3c619d66482e1796d56b0dc
RMD160 (rainbowcrack-1.2-src.zip) = 51fdcf84ebfbe8ebb9e5bc6c3d4452f9d158eb79
@@ -6,3 +6,4 @@
SHA1 (rainbowcrack-1.2-openbsd-diffs.tar.gz) = 3ab5c1d293e8b86e5e206ecf859525e89f357acc
RMD160 (rainbowcrack-1.2-openbsd-diffs.tar.gz) = 709556a31e99aa069062762362f48b3ec24beabb
Size (rainbowcrack-1.2-openbsd-diffs.tar.gz) = 846 bytes
+SHA1 (patch-aa) = ab0c2e176ad94a7d1ad8e80432c2da961f51c20e
diff -r d5e77eff839b -r bc2764611b2a security/rainbowcrack/files/Makefile
--- a/security/rainbowcrack/files/Makefile Wed Sep 17 16:11:28 2008 +0000
+++ b/security/rainbowcrack/files/Makefile Wed Sep 17 16:15:54 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/10/21 07:47:25 adrianp Exp $
+# $NetBSD: Makefile,v 1.2 2008/09/17 16:15:54 joerg Exp $
#
# System-specific configuration.
@@ -33,6 +33,6 @@
install: install-${p}
install-${p}:
- ${BSD_INSTALL_PROGRAM} ${p} ${PREFIX}/bin/${p}
+ ${BSD_INSTALL_PROGRAM} ${p} ${DESTDIR}${PREFIX}/bin/${p}
.endfor
diff -r d5e77eff839b -r bc2764611b2a security/rainbowcrack/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/rainbowcrack/patches/patch-aa Wed Sep 17 16:15:54 2008 +0000
@@ -0,0 +1,13 @@
+--- src/Public.cpp.orig 2008-06-02 16:30:03 +0300
++++ src/Public.cpp 2008-06-02 16:31:17 +0300
+@@ -16,6 +16,10 @@
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
+ #include <unistd.h>
++ #ifdef __DragonFly__
++ #include <vm/vm_param.h>
++ #include <sys/vmmeter.h>
++ #endif
+
+ static int pageshift;
+ #define pagetok(size) ((size) << pageshift)
Home |
Main Index |
Thread Index |
Old Index