svn commit: r347741 - head/security/ophcrack

Alexey Dokuchaev danfe at FreeBSD.org
Mon Mar 10 11:40:34 UTC 2014


Author: danfe
Date: Mon Mar 10 11:40:33 2014
New Revision: 347741
URL: http://svnweb.freebsd.org/changeset/ports/347741
QAT: https://qat.redports.org/buildarchive/r347741/

Log:
  Fix the build on big-endian arches (again).  It was fixed once already in
  r220419, but apparently some bugs just like to come back.  Also, it looks
  like ia64 was added in r303640 rather unfairly, so just remove the BROKEN
  statement altogether.
  
  Tested on:	eris, flame (unfortunately, non-GUI builds only)

Modified:
  head/security/ophcrack/Makefile

Modified: head/security/ophcrack/Makefile
==============================================================================
--- head/security/ophcrack/Makefile	Mon Mar 10 11:40:06 2014	(r347740)
+++ head/security/ophcrack/Makefile	Mon Mar 10 11:40:33 2014	(r347741)
@@ -45,12 +45,17 @@ LIB_DEPENDS+=	qwt:${PORTSDIR}/x11-toolki
 CONFIGURE_ARGS+=	--disable-graph
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -E '/#include <byteswap\.h>/d ; \
+		/#include/s,"bswap\.h",<machine/endian.h>, ; \
+		s,bswap_([[:digit:]]+),bswap\1, ' \
+			${WRKSRC}/src/samdump2/bkhive.c \
+			${WRKSRC}/src/samdump2/hive.c \
+			${WRKSRC}/src/samdump2/samdump2.c \
+			${WRKSRC}/src/misc.h
+
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN=		Does not compile on ia64, powerpc, or sparc64
-.endif
-
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list