Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2015 16:00:42 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r387488 - head/security/mdcrack
Message-ID:  <201505261600.t4QG0gOn028219@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue May 26 16:00:41 2015
New Revision: 387488
URL: https://svnweb.freebsd.org/changeset/ports/387488

Log:
  - Fix build with clang < 3.6 (which doesn't recognize -fforce-addr option)
  - Strip binary
  
  PR:		200035
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (lasg@lasg.dk, 2 weeks)

Modified:
  head/security/mdcrack/Makefile

Modified: head/security/mdcrack/Makefile
==============================================================================
--- head/security/mdcrack/Makefile	Tue May 26 15:54:24 2015	(r387487)
+++ head/security/mdcrack/Makefile	Tue May 26 16:00:41 2015	(r387488)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mdcrack
 PORTVERSION=	1.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	http://membres.lycos.fr/mdcrack/download/
 
@@ -13,4 +13,16 @@ COMMENT=	Bruteforce password MD5 hashes
 ALL_TARGET=	little
 PLIST_FILES=	bin/mdcrack
 
-.include <bsd.port.mk>
+USES=		compiler:features
+
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 36
+post-patch:
+	@${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/Makefile
+.endif
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505261600.t4QG0gOn028219>