Fix hard coded paths to config files, character sets, and word

lists.

OK maintainer cathcart@.
This commit is contained in:
ray 2007-04-26 04:14:01 +00:00
parent 9348446fd8
commit fc1fde72af
2 changed files with 13 additions and 3 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.35 2006/07/16 18:17:25 sturm Exp $
# $OpenBSD: Makefile,v 1.36 2007/04/26 04:14:01 ray Exp $
COMMENT= "extremely fast password cracker"
DISTNAME= john-1.7.0.2
PKGNAME= ${DISTNAME}p0
CATEGORIES= security
HOMEPAGE= http://www.openwall.com/john/

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_params_h,v 1.4 2006/07/16 18:17:25 sturm Exp $
$OpenBSD: patch-src_params_h,v 1.5 2007/04/26 04:14:02 ray Exp $
--- src/params.h.orig Mon Mar 20 00:34:15 2006
+++ src/params.h Sun Jul 16 20:07:29 2006
@@ -49,15 +49,15 @@
@ -16,7 +16,16 @@ $OpenBSD: patch-src_params_h,v 1.4 2006/07/16 18:17:25 sturm Exp $
#endif
#ifndef JOHN_SYSTEMWIDE_HOME
-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john"
+#define JOHN_SYSTEMWIDE_HOME "%%SYSCONFDIR%%"
+#define JOHN_SYSTEMWIDE_HOME "%%PREFIX%%/share/john"
#endif
#define JOHN_PRIVATE_HOME "~/.john"
#endif
@@ -101,7 +101,7 @@
/*
* File names.
*/
-#define CFG_FULL_NAME "$JOHN/john.conf"
+#define CFG_FULL_NAME "%%SYSCONFDIR%%/john.conf"
#define CFG_ALT_NAME "$JOHN/john.ini"
#if JOHN_SYSTEMWIDE
#define CFG_PRIVATE_FULL_NAME JOHN_PRIVATE_HOME "/john.conf"