c636765935
v1.20: 20NOV2018 Added support for socks5 protocol (Eugene Protozanov) New probing method: Before, probes were tried in order, repeating on the same probe as long it returned PROBE_AGAIN before moving to the next one. This means a probe which requires a lot of data (i.e. returne PROBE_AGAIN for a long time) could prevent sucessful matches from subsequent probes. The configuration file needed to take that into account. Now, all probes are tried each time new data is found. If any probe matches, use it. If at least one probe requires more data, wait for more. If all probes failed, connect to the last one. So the only thing to know when writing the configuration file is that 'anyprot' needs to be last. Test suite heavily refactored; `t` uses `test.cfg` to decide which probes to test and all setup is automatic; probes get tested with 'fast' (entire first message in one packet) and 'slow' (one byte at a time); when SNI/ALPN are defined, all combinations are tested. Old 'tls' probe removed, 'sni_alpn' probe renamed as 'tls'. You'll need to change 'sni_alpn' to 'tls' in your configuration file, if ever you used it.
46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2018/12/05 21:20:32 wiz Exp $
|
|
|
|
DISTNAME= sslh-1.20
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=yrutschle/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= nils@NetBSD.org
|
|
HOMEPAGE= http://www.rutschle.net/tech/sslh.shtml
|
|
COMMENT= Multiplex ssl, ssh, and other connections on the same port
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
# version.h created too late
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
USE_TOOLS+= gmake gzip pod2man
|
|
USE_LANGUAGES= c
|
|
|
|
MAKE_FLAGS+= USELIBWRAP=1
|
|
|
|
EGDIR= ${PREFIX}/share/examples/sslh
|
|
DOCDIR= share/doc/sslh
|
|
|
|
CONF_FILES= ${EGDIR}/basic.cfg ${PKG_SYSCONFDIR}/sslh.cfg
|
|
RCD_SCRIPTS= sslh
|
|
|
|
AUTO_MKDIRS= yes
|
|
REPLACE_SH+= genver.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sslh-fork ${DESTDIR}${PREFIX}/sbin/sslh
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sslh-select ${DESTDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/sslh.8.gz ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/*.* ${DESTDIR}${EGDIR}/scripts
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/fail2ban/* ${DESTDIR}${EGDIR}/scripts/fail2ban
|
|
${INSTALL_DATA} ${WRKSRC}/example.cfg ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/basic.cfg ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.MacOSX ${DESTDIR}${PREFIX}/${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/${DOCDIR}
|
|
|
|
.include "../../devel/libconfig/buildlink3.mk"
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|