2013-01-15 14:40:28 +01:00
|
|
|
# Created by: ijliao
|
2002-05-14 13:20:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= socat
|
2013-05-26 23:34:55 +02:00
|
|
|
PORTVERSION= 1.7.2.2
|
2013-07-15 14:56:17 +02:00
|
|
|
PORTREVISION= 1
|
2009-01-15 17:26:30 +01:00
|
|
|
CATEGORIES= net ipv6
|
|
|
|
MASTER_SITES= http://www.dest-unreach.org/socat/download/ \
|
|
|
|
CRITICAL
|
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
|
|
|
|
|
2003-01-03 18:42:08 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-01-15 17:26:30 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_RC_SUBR= socat
|
2011-12-06 09:49:25 +01:00
|
|
|
USE_OPENSSL= yes
|
2004-06-30 09:25:42 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-07-15 14:56:17 +02:00
|
|
|
.if defined(WITH_OPENSSL_PORT)
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
2013-08-04 17:57:40 +02:00
|
|
|
CCISCLANG!= ${CC} --version
|
2013-05-28 11:12:07 +02:00
|
|
|
|
2013-08-04 17:57:40 +02:00
|
|
|
.if !empty(CCISCLANG:M*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
|
2013-01-15 14:40:28 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-10-23 15:50:35 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2003-06-09 12:57:27 +02:00
|
|
|
.endif
|
2002-05-14 13:20:59 +02:00
|
|
|
|
2012-09-04 04:58:36 +02:00
|
|
|
.if ${ARCH} == "arm"
|
|
|
|
BROKEN= Does not configure on arm
|
|
|
|
.endif
|
|
|
|
|
2013-01-15 14:40:28 +01:00
|
|
|
.include <bsd.port.mk>
|