diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-10 16:39:40 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-10 16:39:40 +0000 |
commit | 87ad0f432006f36a07139971782c70d83e6687bd (patch) | |
tree | 44ae7976cc641228a35a89d4b69652ab2d490aa5 /security | |
parent | 1af2064f4e29d51d31e80f3b12b7bf3c1f9b25d8 (diff) | |
download | pkgsrc-87ad0f432006f36a07139971782c70d83e6687bd.tar.gz |
DESTDIR support
Diffstat (limited to 'security')
-rw-r--r-- | security/john/Makefile | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/security/john/Makefile b/security/john/Makefile index b2576b70cd5..d10fbf8bf0a 100644 --- a/security/john/Makefile +++ b/security/john/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2007/02/03 17:09:20 sborrill Exp $ +# $NetBSD: Makefile,v 1.16 2009/02/10 16:39:40 joerg Exp $ # DISTNAME= john-1.7.2 @@ -10,6 +10,8 @@ MAINTAINER= DawS@irc.pl HOMEPAGE= http://www.openwall.com/john/ COMMENT= Unix Password Cracker +PKG_DESTDIR_SUPPORT= user-destdir + NO_CONFIGURE= yes BUILD_DIRS= src @@ -70,7 +72,7 @@ BUILD_TARGET= generic BUILD_TARGET= generic .endif -INSTALLATION_DIRS= bin +INSTALLATION_DIRS= bin share/john SUBST_CLASSES+= john SUBST_STAGE.john= pre-build @@ -79,23 +81,17 @@ SUBST_SED.john= -e "s+@PREFIX@+${PREFIX}+g" do-install: # programs and scripts - ${INSTALL_PROGRAM} ${WRKSRC:Q}/run/john ${PREFIX:Q}/bin - ${INSTALL_SCRIPT} ${WRKSRC:Q}/run/mailer ${PREFIX:Q}/bin - - # data directory - ${INSTALL_DATA_DIR} ${PREFIX:Q}/share/john - + ${INSTALL_PROGRAM} ${WRKSRC}/run/john ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/run/mailer ${DESTDIR}${PREFIX}/bin # configuration file - ${INSTALL_DATA} ${WRKSRC:Q}/run/john.conf ${PREFIX:Q}/share/john - + ${INSTALL_DATA} ${WRKSRC}/run/john.conf ${DESTDIR}${PREFIX}/share/john # symbolic links .for i in unafs unique unshadow - ${LN} -sf ${PREFIX:Q}/bin/john ${PREFIX:Q}/bin/${i:Q} + ${LN} -sf john ${DESTDIR}${PREFIX}/bin/${i} .endfor - # data files .for i in all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst - ${INSTALL_DATA} ${WRKSRC:Q}/run/${i:Q} ${PREFIX:Q}/share/john + ${INSTALL_DATA} ${WRKSRC}/run/${i} ${DESTDIR}${PREFIX}/share/john .endfor .include "../../mk/bsd.pkg.mk" |