do-configure is a better place for this substitution, as it unbreaks

update-patches.

spotted by and ok sturm@
This commit is contained in:
aanriot 2005-09-07 19:43:41 +00:00
parent f35c7d27e6
commit 10afd8327e

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.30 2005/09/06 20:20:26 aanriot Exp $
# $OpenBSD: Makefile,v 1.31 2005/09/07 19:43:41 aanriot Exp $
COMMENT= "extremely fast password cracker"
@ -54,7 +54,7 @@ ALL_TARGET= generic
do-configure:
@perl -pi -e "s,%%PREFIX%%,${PREFIX},;" \
-e "s,%%SYSCONFDIR%%,${SYSCONFDIR},;" ${WRKSRC}/params.h
post-patch:
@perl -pi -e 's,%%JOHN%%,${PREFIX}\/share\/john,g;' \
${WRKDIST}/run/john.conf