1c9c467b41
- update patches - use SUBST_CMD ok sthen@
32 lines
943 B
Plaintext
32 lines
943 B
Plaintext
$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 @@
|
|
* notes above.
|
|
*/
|
|
#ifndef JOHN_SYSTEMWIDE
|
|
-#define JOHN_SYSTEMWIDE 0
|
|
+#define JOHN_SYSTEMWIDE 1
|
|
#endif
|
|
|
|
#if JOHN_SYSTEMWIDE
|
|
#ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */
|
|
-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john"
|
|
+#define JOHN_SYSTEMWIDE_EXEC "${PREFIX}/bin/john"
|
|
#endif
|
|
#ifndef JOHN_SYSTEMWIDE_HOME
|
|
-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john"
|
|
+#define JOHN_SYSTEMWIDE_HOME "${PREFIX}/share/john"
|
|
#endif
|
|
#define JOHN_PRIVATE_HOME "~/.john"
|
|
#endif
|
|
@@ -103,7 +103,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"
|