> >Do many ppl run OpenBSD on G3 processors?? > > > I do. So here is a new patch which handle altivec stuff, with an additional FLAVOR.
-- Alexandre Anriot [EMAIL PROTECTED]
? john.diff Index: Makefile =================================================================== RCS file: /cvs/ports/security/john/Makefile,v retrieving revision 1.28 diff -u -r1.28 Makefile --- Makefile 2004/12/27 13:28:34 1.28 +++ Makefile 2005/05/30 09:28:28 @@ -2,7 +2,7 @@ COMMENT= "extremely fast password cracker" -DISTNAME= john-1.6.37 +DISTNAME= john-1.6.38 CATEGORIES= security HOMEPAGE= http://www.openwall.com/john/ @@ -14,16 +14,10 @@ PERMIT_DISTFILES_FTP= Yes WANTLIB= c m -MASTER_SITES= ${HOMEPAGE}a/ +MASTER_SITES= ${HOMEPAGE}c/ -DISTFILES= ${DISTNAME}.tar.gz \ - john-1.6.tar.gz - -NO_REGRESS= Yes - WRKDIST= ${WRKDIR}/${DISTNAME} WRKSRC= ${WRKDIST}/src -OLDJOHN= ${WRKDIR}/john-1.6 MAKE_FLAGS= CC=${CC} AS=${CC} LD=${CC} \ CFLAGS="${CFLAGS} -c" @@ -35,15 +29,32 @@ .else ALL_TARGET= openbsd-x86-mmx-elf .endif + .elif ${MACHINE_ARCH} == "sparc" ALL_TARGET= openbsd-sparc + .elif ${MACHINE_ARCH} == "vax" ALL_TARGET= openbsd-vax + .elif ${MACHINE_ARCH} == "alpha" ALL_TARGET= linux-alpha + .elif ${MACHINE_ARCH} == "powerpc" -ALL_TARGET= linux-ppc +FLAVORS= altivec +FLAVOR?= +.if ${FLAVOR:L:Maltivec} +ALL_TARGET= linux-ppc32-altivec .else +ALL_TARGET= linux-ppc32 +.endif + +.elif ${MACHINE_ARCH} == "powerpc64" +ALL_TARGET= linux-ppc64 + +.elif ${MACHINE_ARCH} == "hppa" +ALL_TARGET= hpux-pa-risc-${CC} + +.else ALL_TARGET= generic .endif @@ -56,9 +67,9 @@ ln -sf john unshadow && \ ln -sf john unafs && \ ln -sf john unique - ${INSTALL_DATA} ${OLDJOHN}/run/* ${PREFIX}/share/john ${INSTALL_DATA} ${WRKDIST}/run/* ${PREFIX}/share/john - ${INSTALL_DATA} ${OLDJOHN}/doc/* ${PREFIX}/share/doc/john ${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/john + +NO_REGRESS= Yes .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/security/john/distinfo,v retrieving revision 1.4 diff -u -r1.4 distinfo --- distinfo 2005/01/05 17:26:38 1.4 +++ distinfo 2005/05/30 09:28:28 @@ -1,8 +1,4 @@ -MD5 (john-1.6.37.tar.gz) = 9403233b640927295c05b0564ff1f678 -MD5 (john-1.6.tar.gz) = aae782f160041b2bdc624b0a84054e32 -RMD160 (john-1.6.37.tar.gz) = 5b46808845242a3e740469a5b9487c4637e838c2 -RMD160 (john-1.6.tar.gz) = 5a34e7f57b190313cc0773e996f6eed74f28d160 -SHA1 (john-1.6.37.tar.gz) = c85ebeb21939bfa79ec0e65cefebb42197251fb6 -SHA1 (john-1.6.tar.gz) = b49d371496b8ba5e439665b83190b1e4d4640bea -SIZE (john-1.6.37.tar.gz) = 139372 -SIZE (john-1.6.tar.gz) = 497341 +MD5 (john-1.6.38.tar.gz) = cad2877bc4d0e54c3863f5e7d1143fc6 +RMD160 (john-1.6.38.tar.gz) = b8482d33b739c036784e70d8d7a403db15df8bf0 +SHA1 (john-1.6.38.tar.gz) = fd521c16646f2a486fadd7c6fbd1c9747a087f10 +SIZE (john-1.6.38.tar.gz) = 151331 Index: pkg/DESCR =================================================================== RCS file: /cvs/ports/security/john/pkg/DESCR,v retrieving revision 1.6 diff -u -r1.6 DESCR --- pkg/DESCR 2004/09/23 21:52:08 1.6 +++ pkg/DESCR 2005/05/30 09:28:28 @@ -22,4 +22,5 @@ generic x86, Alpha EV4, SPARC V8). Flavors: - * no_mmx: disable MMX support + * no_mmx: disable MMX support for i386 + * altivec: enable activec instructions for macppc Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/security/john/pkg/PLIST,v retrieving revision 1.6 diff -u -r1.6 PLIST --- pkg/PLIST 2004/09/15 18:36:00 1.6 +++ pkg/PLIST 2005/05/30 09:28:28 @@ -6,27 +6,15 @@ bin/unshadow share/doc/john/ share/doc/john/CHANGES -share/doc/john/CONFIG -share/doc/john/CREDITS -share/doc/john/EXAMPLES -share/doc/john/EXTERNAL -share/doc/john/FAQ share/doc/john/INSTALL share/doc/john/LICENSING share/doc/john/MODES -share/doc/john/NEWS share/doc/john/OPTIONS share/doc/john/README -share/doc/john/RULES share/john/ -share/john/all.chr -share/john/alpha.chr -share/john/digits.chr @comment share/john/john share/john/john.conf @comment share/john/john.conf.orig [EMAIL PROTECTED] share/john/john.ini -share/john/lanman.chr @comment share/john/mailer @comment share/john/password.lst @comment share/john/unafs
