ports/security/sslscan/Makefile

42 lines
978 B
Makefile
Executable file

COMMENT= SSL/TLS scanner (identify version, ciphers, etc)
.if ${MACHINE_ARCH} != aarch64 && ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != riscv64
USE_NOEXECONLY= Yes
.endif
DIST_TUPLE= github rbsec sslscan 2.1.1 .
CATEGORIES= security net
HOMEPAGE= https://github.com/rbsec/sslscan
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
# GPLv3
PERMIT_PACKAGE= Yes
COMPILER= base-clang ports-gcc
COMPILER_LANGS= c
WANTLIB += c pthread z
USE_GMAKE= Yes
NO_TEST= Yes
MAKE_FLAGS= BINDIR=${TRUEPREFIX}/bin \
MANDIR=${TRUEPREFIX}/man \
GIT_VERSION="${GH_TAGNAME}" \
CC="${CC}"
# OpenSSL used because sslscan wants to enable obsolete protocols for detection
BUILD_DEPENDS= security/openssl/1.1:patch
ALL_TARGET= static
CFLAGS+= -I${WRKSRC}/openssl/include
post-extract:
ln -s ${WRKDIR}/security/openssl/1.1/openssl-* ${WRKSRC}/openssl
-mkdir -p ${WRKSRC}/openssl/.git
rm -f ${WRKSRC}/openssl/Makefile
touch ${WRKSRC}/.openssl.is.fresh
.include <bsd.port.mk>