blob: 96fb5bffae9ad3fc8b4422aaf08bf8775f11f745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= testssl.sh
DISTVERSION= 3.0.4
CATEGORIES= security
MAINTAINER= adamw@FreeBSD.org
COMMENT= Analyze and report TLS/SSL configuration/misconfiguration
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= openssl-unsafe>=1.0.1:security/openssl-unsafe \
bash:shells/bash
TEST_DEPENDS= p5-JSON>=0:converters/p5-JSON
USES= perl5 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= drwetter
SHEBANG_FILES= testssl.sh utils/*
USE_PERL5= test
TEST_ENV= TESTSSL_INSTALL_DIR=${WRKSRC}
NO_ARCH= yes
NO_BUILD= yes
post-patch:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|; s|%%DATADIR%%|${DATADIR}|' \
${WRKSRC}/testssl.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/testssl.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/testssl.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
cd ${WRKSRC} && ${COPYTREE_SHARE} "etc utils" ${STAGEDIR}${DATADIR}
do-test:
# Run the badssl.com test as a sanity check. The full test suite
# opens too many network connections and might take too long to
# run.
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} prove -v t/51_badssl.com.t
.include <bsd.port.mk>
|