svn commit: r387488 - head/security/mdcrack
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue May 26 16:00:42 UTC 2015
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 at 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>
More information about the svn-ports-head
mailing list