aboutsummaryrefslogtreecommitdiffstats
path: root/security/libressl/Makefile
blob: 15c68cae204fd63a3e55a8fd7d82aa5d07c8f486 (plain) (blame)
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
43
44
45
46
# Created by: Vsevolod Stakhov <vsevolod@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libressl
PORTVERSION=    2.4.3
CATEGORIES= security devel
MASTER_SITES=   OPENBSD/LibreSSL

MAINTAINER= brnrd@FreeBSD.org
COMMENT=    Free version of the SSL/TLS protocol forked from OpenSSL

LICENSE=    BSD4CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYING

CPE_VENDOR= openbsd

OPTIONS_DEFINE= MAN3 NC
OPTIONS_DEFAULT=    MAN3 NC
MAN3_DESC=  Install API manpages (section 3)
NC_DESC=    Install TLS-enabled netcat

CONFLICTS?= libressl-devel-[0-9]* \
        openssl-[0-9]* \
        openssl-devel-[0-9]*

GNU_CONFIGURE=  yes
USES=       cpe libtool pathfix pkgconfig
USE_LDCONFIG=   yes
OPTIONS_SUB=    yes
CFLAGS+=    -fpic -DPIC

INSTALL_TARGET= install-strip
TEST_TARGET=    check

post-stage-NC-on:
    ${INSTALL_PROGRAM} ${WRKSRC}/apps/nc/.libs/nc ${STAGEDIR}/${PREFIX}/bin/nc
    ${INSTALL_MAN} ${WRKSRC}/apps/nc/nc.1 ${STAGEDIR}/${PREFIX}/man/man1/nc.1

post-stage:
    ${RM} -r ${STAGEDIR}/${PREFIX}/etc/ssl/cert.pem

post-install-MAN3-off:
    ${RM} -r ${STAGEDIR}/${PREFIX}/man/man3
    ${REINPLACE_CMD} -e '/^man\/man3/d' ${TMPPLIST}

.include <bsd.port.mk>