Tue Feb 10 16:39:40 2009 UTC ()
DESTDIR support


(joerg)
diff -r1.15 -r1.16 pkgsrc/security/john/Makefile

cvs diff -r1.15 -r1.16 pkgsrc/security/john/Makefile (expand / switch to unified diff)

--- pkgsrc/security/john/Makefile 2007/02/03 17:09:20 1.15
+++ pkgsrc/security/john/Makefile 2009/02/10 16:39:40 1.16
@@ -1,25 +1,27 @@ @@ -1,25 +1,27 @@
1# $NetBSD: Makefile,v 1.15 2007/02/03 17:09:20 sborrill Exp $ 1# $NetBSD: Makefile,v 1.16 2009/02/10 16:39:40 joerg Exp $
2# 2#
3 3
4DISTNAME= john-1.7.2 4DISTNAME= john-1.7.2
5CATEGORIES= security textproc 5CATEGORIES= security textproc
6MASTER_SITES= http://www.openwall.com/john/f/ 6MASTER_SITES= http://www.openwall.com/john/f/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= DawS@irc.pl 9MAINTAINER= DawS@irc.pl
10HOMEPAGE= http://www.openwall.com/john/ 10HOMEPAGE= http://www.openwall.com/john/
11COMMENT= Unix Password Cracker 11COMMENT= Unix Password Cracker
12 12
 13PKG_DESTDIR_SUPPORT= user-destdir
 14
13NO_CONFIGURE= yes 15NO_CONFIGURE= yes
14BUILD_DIRS= src 16BUILD_DIRS= src
15 17
16.include "../../mk/compiler.mk" 18.include "../../mk/compiler.mk"
17.include "../../mk/bsd.prefs.mk" 19.include "../../mk/bsd.prefs.mk"
18 20
19.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc" 21.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
20. if !empty(CC_VERSION:MSun) 22. if !empty(CC_VERSION:MSun)
21. if defined(SPARC_TARGET_ARCH) && ${SPARC_TARGET_ARCH} == "sparcv9" 23. if defined(SPARC_TARGET_ARCH) && ${SPARC_TARGET_ARCH} == "sparcv9"
22BUILD_TARGET= solaris-sparc-v9-cc 24BUILD_TARGET= solaris-sparc-v9-cc
23. else 25. else
24BUILD_TARGET= solaris-sparc-v8-cc 26BUILD_TARGET= solaris-sparc-v8-cc
25. endif 27. endif
@@ -60,42 +62,36 @@ BUILD_TARGET= openbsd-sparc @@ -60,42 +62,36 @@ BUILD_TARGET= openbsd-sparc
60. elif ${MACHINE_ARCH} == "alpha" 62. elif ${MACHINE_ARCH} == "alpha"
61BUILD_TARGET= openbsd-alpha 63BUILD_TARGET= openbsd-alpha
62. elif ${MACHINE_ARCH} == "powerpc" 64. elif ${MACHINE_ARCH} == "powerpc"
63BUILD_TARGET= openbsd-ppc32 65BUILD_TARGET= openbsd-ppc32
64. elif ${MACHINE_ARCH} == "powerpc64" 66. elif ${MACHINE_ARCH} == "powerpc64"
65BUILD_TARGET= openbsd-ppc64 67BUILD_TARGET= openbsd-ppc64
66. else 68. else
67BUILD_TARGET= generic 69BUILD_TARGET= generic
68. endif 70. endif
69.else 71.else
70BUILD_TARGET= generic 72BUILD_TARGET= generic
71.endif 73.endif
72 74
73INSTALLATION_DIRS= bin 75INSTALLATION_DIRS= bin share/john
74 76
75SUBST_CLASSES+= john 77SUBST_CLASSES+= john
76SUBST_STAGE.john= pre-build 78SUBST_STAGE.john= pre-build
77SUBST_FILES.john= src/params.h 79SUBST_FILES.john= src/params.h
78SUBST_SED.john= -e "s+@PREFIX@+${PREFIX}+g" 80SUBST_SED.john= -e "s+@PREFIX@+${PREFIX}+g"
79 81
80do-install: 82do-install:
81 # programs and scripts 83 # programs and scripts
82 ${INSTALL_PROGRAM} ${WRKSRC:Q}/run/john ${PREFIX:Q}/bin 84 ${INSTALL_PROGRAM} ${WRKSRC}/run/john ${DESTDIR}${PREFIX}/bin
83 ${INSTALL_SCRIPT} ${WRKSRC:Q}/run/mailer ${PREFIX:Q}/bin 85 ${INSTALL_SCRIPT} ${WRKSRC}/run/mailer ${DESTDIR}${PREFIX}/bin
84 
85 # data directory 
86 ${INSTALL_DATA_DIR} ${PREFIX:Q}/share/john 
87 
88 # configuration file 86 # configuration file
89 ${INSTALL_DATA} ${WRKSRC:Q}/run/john.conf ${PREFIX:Q}/share/john 87 ${INSTALL_DATA} ${WRKSRC}/run/john.conf ${DESTDIR}${PREFIX}/share/john
90 
91 # symbolic links 88 # symbolic links
92.for i in unafs unique unshadow 89.for i in unafs unique unshadow
93 ${LN} -sf ${PREFIX:Q}/bin/john ${PREFIX:Q}/bin/${i:Q} 90 ${LN} -sf john ${DESTDIR}${PREFIX}/bin/${i}
94.endfor 91.endfor
95 
96 # data files 92 # data files
97.for i in all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst 93.for i in all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst
98 ${INSTALL_DATA} ${WRKSRC:Q}/run/${i:Q} ${PREFIX:Q}/share/john 94 ${INSTALL_DATA} ${WRKSRC}/run/${i} ${DESTDIR}${PREFIX}/share/john
99.endfor 95.endfor
100 96
101.include "../../mk/bsd.pkg.mk" 97.include "../../mk/bsd.pkg.mk"