summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/ADMsmb/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/ADMsmb/Makefile b/security/ADMsmb/Makefile
index bbb9cd6013f3..adba4febd902 100644
--- a/security/ADMsmb/Makefile
+++ b/security/ADMsmb/Makefile
@@ -15,6 +15,12 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Security scanner for Samba
+USE_REINPLACE= yes
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.o" -delete
+ @${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ADMsmb ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/ADMsmb