diff options
author | joerg <joerg@pkgsrc.org> | 2008-09-17 16:15:54 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-09-17 16:15:54 +0000 |
commit | 681afdef3738068cbeca63018b0007f821f21f81 (patch) | |
tree | 17adf94a554e1212f10814fcd5a3f6cdf2b40a60 /security | |
parent | 59a7666aee7ed7a8573fc35fd422f0651499fc3b (diff) | |
download | pkgsrc-681afdef3738068cbeca63018b0007f821f21f81.tar.gz |
Fix build on DragonFly. From PR 38835.
Add DESTDIR support.
Diffstat (limited to 'security')
-rw-r--r-- | security/rainbowcrack/Makefile | 10 | ||||
-rw-r--r-- | security/rainbowcrack/distinfo | 3 | ||||
-rw-r--r-- | security/rainbowcrack/files/Makefile | 4 | ||||
-rw-r--r-- | security/rainbowcrack/patches/patch-aa | 13 |
4 files changed, 23 insertions, 7 deletions
diff --git a/security/rainbowcrack/Makefile b/security/rainbowcrack/Makefile index 8d60974c9da..01dc20a3aa3 100644 --- a/security/rainbowcrack/Makefile +++ b/security/rainbowcrack/Makefile @@ -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 @@ MAINTAINER= dhowland@users.sourceforge.net 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 @@ MAKE_FILE= ${FILESDIR}/Makefile 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 --git a/security/rainbowcrack/distinfo b/security/rainbowcrack/distinfo index 8c68779505e..ae1bd677115 100644 --- a/security/rainbowcrack/distinfo +++ b/security/rainbowcrack/distinfo @@ -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 @@ Size (rainbowcrack-1.2-src.zip) = 44742 bytes 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 --git a/security/rainbowcrack/files/Makefile b/security/rainbowcrack/files/Makefile index 314c3890b31..05e267e96e9 100644 --- a/security/rainbowcrack/files/Makefile +++ b/security/rainbowcrack/files/Makefile @@ -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 @@ ${p}: ${SRCS.${p}} install: install-${p} install-${p}: - ${BSD_INSTALL_PROGRAM} ${p} ${PREFIX}/bin/${p} + ${BSD_INSTALL_PROGRAM} ${p} ${DESTDIR}${PREFIX}/bin/${p} .endfor diff --git a/security/rainbowcrack/patches/patch-aa b/security/rainbowcrack/patches/patch-aa new file mode 100644 index 00000000000..7e067fee874 --- /dev/null +++ b/security/rainbowcrack/patches/patch-aa @@ -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) |