mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
4c6bb66915
In socat version 1.8.0.0, a new feature was introduced allowing users to configure the default IP version preference at build time using the `--enable-default-ipv` option. This change resulted in a default preference for IPv6, which led to unexpected behavior for some users. To address this, a new option has been added to the FreeBSD port of socat. By default, the port restores the previous behavior where IPv4 is preferred. However, users now have the option to explicitly specify a preference for IPv6 if desired. This change aims to align with the Principle of Least Astonishment (POLA) and provide users with flexibility in choosing their preferred IP version. PR: 275653 (based on)
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
PORTNAME= socat
|
|
DISTVERSION= 1.8.0.0
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
PORTSCOUT= skipv:2.0.0-b2
|
|
|
|
PLIST_FILES= bin/filan \
|
|
bin/procan \
|
|
bin/socat \
|
|
"@sample etc/socat-instances.conf.sample" \
|
|
man/man1/socat.1.gz
|
|
PORTDOCS= EXAMPLES FAQ README SECURITY
|
|
|
|
OPTIONS_DEFINE= DOCS READLINE IPV6DEFAULT
|
|
IPV6DEFAULT_DESC= Use IPv6 by default
|
|
|
|
IPV6DEFAULT_CONFIGURE_OFF= --enable-default-ipv=4
|
|
IPV6DEFAULT_CONFIGURE_ENABLE= default-ipv=6
|
|
|
|
READLINE_USES= readline
|
|
READLINE_CONFIGURE_ENABLE= readline
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${SSL_DEFAULT} != base
|
|
USES+= 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
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/socat-instances.conf.sample ${STAGEDIR}${PREFIX}/etc
|
|
|
|
.include <bsd.port.post.mk>
|