aboutsummaryrefslogtreecommitdiff
path: root/net/socat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/socat/Makefile')
-rw-r--r--net/socat/Makefile37
1 files changed, 19 insertions, 18 deletions
diff --git a/net/socat/Makefile b/net/socat/Makefile
index 3cf3fc19d465..d661e2fb2bc3 100644
--- a/net/socat/Makefile
+++ b/net/socat/Makefile
@@ -1,52 +1,53 @@
-# Created by: ijliao
-
PORTNAME= socat
-PORTVERSION= 1.7.4.1
-PORTREVISION= 1
+DISTVERSION= 1.8.0.0
+PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://www.dest-unreach.org/socat/download/ \
LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Multipurpose relay and more
+WWW= http://www.dest-unreach.org/socat/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler cpe ssl tar:bzip2
+CPE_VENDOR= dest-unreach
USE_RC_SUBR= socat
GNU_CONFIGURE= yes
-CPE_VENDOR= dest-unreach
-
PORTSCOUT= skipv:2.0.0-b2
-PLIST_FILES= bin/filan bin/procan bin/socat man/man1/socat.1.gz \
- "@sample etc/socat-instances.conf.sample"
-PORTDOCS= EXAMPLES README SECURITY FAQ
+PLIST_FILES= bin/filan \
+ bin/procan \
+ bin/socat \
+ "@sample etc/socat-instances.conf.sample" \
+ share/man/man1/socat.1.gz
+PORTDOCS= EXAMPLES FAQ README SECURITY
-OPTIONS_DEFINE= DOCS READLINE
+OPTIONS_DEFINE= DOCS IPV6DEFAULT READLINE
+IPV6DEFAULT_DESC= Use IPv6 by default
+
+IPV6DEFAULT_CONFIGURE_OFF= --enable-default-ipv=4
+IPV6DEFAULT_CONFIGURE_ENABLE= default-ipv=6
-READLINE_CONFIGURE_ENABLE= readline
READLINE_USES= readline
+READLINE_CONFIGURE_ENABLE= 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
+USES+= localbase
+CONFIGURE_ARGS+= --enable-openssl-base=${LOCALBASE}
.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
+ ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/socat-instances.conf.sample ${STAGEDIR}${PREFIX}/etc