2010-07-17 18:46:00 -04:00
|
|
|
$OpenBSD: patch-src_params_h,v 1.7 2010/07/17 22:46:03 benoit Exp $
|
|
|
|
--- src/params.h.orig Mon Jun 14 04:38:55 2010
|
|
|
|
+++ src/params.h Sat Jul 17 18:29:44 2010
|
|
|
|
@@ -51,15 +51,15 @@
|
2006-07-16 14:17:25 -04:00
|
|
|
* notes above.
|
2003-09-26 13:57:38 -04:00
|
|
|
*/
|
|
|
|
#ifndef JOHN_SYSTEMWIDE
|
|
|
|
-#define JOHN_SYSTEMWIDE 0
|
|
|
|
+#define JOHN_SYSTEMWIDE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if JOHN_SYSTEMWIDE
|
2006-07-16 14:17:25 -04:00
|
|
|
#ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */
|
2003-09-26 13:57:38 -04:00
|
|
|
-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john"
|
2010-07-17 18:46:00 -04:00
|
|
|
+#define JOHN_SYSTEMWIDE_EXEC "${PREFIX}/bin/john"
|
2006-01-05 23:26:09 -05:00
|
|
|
#endif
|
|
|
|
#ifndef JOHN_SYSTEMWIDE_HOME
|
|
|
|
-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john"
|
2010-07-17 18:46:00 -04:00
|
|
|
+#define JOHN_SYSTEMWIDE_HOME "${PREFIX}/share/john"
|
2006-01-05 23:26:09 -05:00
|
|
|
#endif
|
2003-09-26 13:57:38 -04:00
|
|
|
#define JOHN_PRIVATE_HOME "~/.john"
|
|
|
|
#endif
|
2010-07-17 18:46:00 -04:00
|
|
|
@@ -103,7 +103,7 @@
|
2007-04-26 00:14:01 -04:00
|
|
|
/*
|
|
|
|
* File names.
|
|
|
|
*/
|
|
|
|
-#define CFG_FULL_NAME "$JOHN/john.conf"
|
2010-07-17 18:46:00 -04:00
|
|
|
+#define CFG_FULL_NAME "${SYSCONFDIR}/john.conf"
|
2007-04-26 00:14:01 -04:00
|
|
|
#define CFG_ALT_NAME "$JOHN/john.ini"
|
|
|
|
#if JOHN_SYSTEMWIDE
|
|
|
|
#define CFG_PRIVATE_FULL_NAME JOHN_PRIVATE_HOME "/john.conf"
|