2013-01-15 14:40:28 +01:00
|
|
|
# Created by: ijliao
|
2002-05-14 13:20:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= socat
|
2016-02-01 23:13:46 +01:00
|
|
|
PORTVERSION= 1.7.3.1
|
|
|
|
PORTREVISION= 0
|
2009-01-15 17:26:30 +01:00
|
|
|
CATEGORIES= net ipv6
|
|
|
|
MASTER_SITES= http://www.dest-unreach.org/socat/download/ \
|
2015-01-06 10:39:16 +01:00
|
|
|
LOCAL/ehaupt
|
2002-05-14 13:20:59 +02:00
|
|
|
|
2009-01-15 17:26:30 +01:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2003-06-09 12:57:27 +02:00
|
|
|
COMMENT= Multipurpose relay and more
|
2002-05-14 13:20:59 +02:00
|
|
|
|
2011-12-06 09:49:25 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-09-24 16:26:56 +02:00
|
|
|
USES= compiler cpe ssl tar:bzip2
|
2003-01-03 18:42:08 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-01-15 17:26:30 +01:00
|
|
|
USE_RC_SUBR= socat
|
2004-06-30 09:25:42 +02:00
|
|
|
|
2016-05-02 23:09:31 +02:00
|
|
|
CPE_VENDOR= dest-unreach
|
|
|
|
|
2009-01-16 17:50:02 +01:00
|
|
|
PORTSCOUT= skipv:2.0.0-b2
|
|
|
|
|
2013-10-23 15:50:35 +02:00
|
|
|
PLIST_FILES= bin/filan bin/procan bin/socat man/man1/socat.1.gz
|
2011-12-06 09:49:25 +01:00
|
|
|
PORTDOCS= EXAMPLES README SECURITY FAQ
|
2005-06-22 12:11:05 +02:00
|
|
|
|
2013-01-15 14:40:28 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-01-27 12:50:59 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2013-01-15 14:40:28 +01:00
|
|
|
|
2016-06-16 15:23:13 +02:00
|
|
|
.if ${SSL_DEFAULT} != base
|
2016-11-29 19:46:21 +01:00
|
|
|
.if ${SSL_DEFAULT:Mopenssl-devel}
|
|
|
|
BROKEN= Does not build with openssl-devel
|
|
|
|
.endif
|
2013-07-15 14:56:17 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
2014-01-27 12:50:59 +01:00
|
|
|
.if ${COMPILER_TYPE} == "clang"
|
2013-05-28 11:12:07 +02:00
|
|
|
CFLAGS+= -Wno-unused-comparison
|
|
|
|
.endif
|
|
|
|
|
2012-04-14 21:05:45 +02:00
|
|
|
do-install:
|
|
|
|
.for f in filan procan socat
|
2013-10-23 15:50:35 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
|
2012-04-14 21:05:45 +02:00
|
|
|
.endfor
|
2013-10-23 15:50:35 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
2014-03-18 15:26:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-10-23 15:50:35 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2002-05-14 13:20:59 +02:00
|
|
|
|
2014-01-27 12:50:59 +01:00
|
|
|
.include <bsd.port.post.mk>
|