summaryrefslogtreecommitdiff
path: root/net/socat/Makefile
blob: 262f1bd0614dec018c1969bbb2c31c1801a7daa7 (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
47
48
49
50
51
52
# Created by: ijliao
# $FreeBSD$

PORTNAME=	socat
PORTVERSION=	1.7.3.2
PORTREVISION=	2
CATEGORIES=	net ipv6
MASTER_SITES=	http://www.dest-unreach.org/socat/download/ \
		LOCAL/ehaupt

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Multipurpose relay and more

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		compiler cpe ssl tar:bzip2
GNU_CONFIGURE=	yes
USE_RC_SUBR=	socat

CPE_VENDOR=	dest-unreach

PORTSCOUT=	skipv:2.0.0-b2

PLIST_FILES=	bin/filan bin/procan bin/socat man/man1/socat.1.gz
PORTDOCS=	EXAMPLES README SECURITY FAQ

OPTIONS_DEFINE=	DOCS READLINE

READLINE_CONFIGURE_ENABLE=	readline
READLINE_USES=			readline

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} != base
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
.endif

.if ${COMPILER_TYPE} == "clang"
CFLAGS+=	-Wno-unused-comparison
.endif

do-install:
.for f in filan procan socat
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>