svn commit: r512510 - head/security/arirang
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Sep 21 15:21:12 UTC 2019
Author: pkubaj
Date: Sat Sep 21 15:21:11 2019
New Revision: 512510
URL: https://svnweb.freebsd.org/changeset/ports/512510
Log:
security/arirang: fix build on GCC architectures
Add USES=compiler:c11, base GCC can't build this port.
Only add -L${OPENSSLLIB} when OpenSSL not from base is used to avoid linking to base libstdc++.
Approved by: linimon (mentor)
Differential Revision: https://reviews.freebsd.org/D21719
Modified:
head/security/arirang/Makefile
Modified: head/security/arirang/Makefile
==============================================================================
--- head/security/arirang/Makefile Sat Sep 21 15:19:31 2019 (r512509)
+++ head/security/arirang/Makefile Sat Sep 21 15:21:11 2019 (r512510)
@@ -13,23 +13,29 @@ COMMENT= Powerful webserver security scanner for netwo
LICENSE= BSD3CLAUSE
-BROKEN_powerpc64= fails to compile: ruby.h:1381: error: wrong number of arguments specified for '__deprecated__' attribute
-
LIB_DEPENDS= lib${RUBY_NAME}.so:${RUBY_PORT}
-USES= ssl
+USES= compiler:c11 ssl
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
CFLAGS+= -I${LOCALBASE}/include/ruby-${RUBY_VER} -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
CFLAGS+= -DRUBY_19
+
+.include <bsd.port.pre.mk>
+
+.if ${SSL_DEFAULT} != base
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
+.endif
+post-patch:
+ ${REINPLACE_CMD} -e 's/cc/${CC}/g' ${WRKSRC}/extconf.rb
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arirang ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${PREFIX}/share/arirang
${INSTALL_DATA} ${WRKSRC}/scanrule/*.uxe ${STAGEDIR}${PREFIX}/share/arirang
${INSTALL_DATA} ${WRKSRC}/script/*.rb ${STAGEDIR}${PREFIX}/share/arirang
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list