Date: Fri, 28 May 2021 16:13:46 GMT From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 5e7c5908511f - main - net/arataga: new port had been added (+) Message-ID: <202105281613.14SGDkuQ046247@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=5e7c5908511f20c7b3eb724bc28e16bfdc98ed8a commit 5e7c5908511f20c7b3eb724bc28e16bfdc98ed8a Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2021-05-28 16:07:52 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2021-05-28 16:09:16 +0000 net/arataga: new port had been added (+) High-performance, configurable, authenticating, throttling SOCKS5 and HTTP/1.1 proxy server written in modern C++. WWW: https://github.com/Stiffstream/arataga --- net/Makefile | 1 + net/arataga/Makefile | 63 ++++++++++++++++++++++++++++++++++++++++++ net/arataga/distinfo | 15 ++++++++++ net/arataga/files/makefile | 69 ++++++++++++++++++++++++++++++++++++++++++++++ net/arataga/pkg-descr | 6 ++++ 5 files changed, 154 insertions(+) diff --git a/net/Makefile b/net/Makefile index 3d10b72dc022..2c6818e29a7c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -23,6 +23,7 @@ SUBDIR += appkonference SUBDIR += aprsc SUBDIR += aquantia-atlantic-kmod + SUBDIR += arataga SUBDIR += arp-scan SUBDIR += arp-sk SUBDIR += arpdig diff --git a/net/arataga/Makefile b/net/arataga/Makefile new file mode 100644 index 000000000000..9faf5dfa4c85 --- /dev/null +++ b/net/arataga/Makefile @@ -0,0 +1,63 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> + +PORTNAME= arataga +PORTVERSION= 0.5.1 +DISTVERSIONPREFIX= v +CATEGORIES= net +MASTER_SITES= SF/sobjectizer/oess/oess-2:oess +DISTFILES= oess-2.2.3-full.tar.bz2:oess + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES= 0ec1144117ae.patch:-p2 1c78ad1dbca8.patch:-p2 + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Performant SOCKS5/HTTP1.1 proxy server + +LICENSE= AGPLv3 + +BUILD_DEPENDS= ${LOCALBASE}/include/spdlog/spdlog.h:devel/spdlog \ + ${LOCALBASE}/include/asio/ip/address.hpp:net/asio \ + ${LOCALBASE}/include/args.hxx:devel/args +LIB_DEPENDS= libso.${_SO5_LIBVER}.so:devel/sobjectizer \ + libfmt.so:devel/libfmt \ + libhttp_parser.so:www/http-parser + +USES= compiler:c++17-lang gmake +MAKEFILE= ${FILESDIR}/makefile +MAKE_ENV= SO5_LIBVER=${_SO5_LIBVER} +WRKSRC_SUBDIR= ${PORTNAME} + +USE_GITHUB= yes +GH_ACCOUNT= Stiffstream +GH_PROJECT= noexcept-ctcheck:nectc restinio:rinio so5extra:so5e +GH_TAGNAME= v.1.0.0:nectc v.0.6.13:rinio v.1.4.1:so5e + +_SO5_LIBVER= 5.7.2.5 + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= *.md + +OPTIONS_DEFINE= DOCS + +post-extract: + @${LN} -s ../../noexcept-ctcheck-v.1.0.0/noexcept_ctcheck \ + ../../restinio-v.0.6.13/dev/restinio \ + ../../so5extra-v.1.4.1/dev/so_5_extra \ + ../../oess-2.2.3/dev/cpp_util_2 \ + ../../oess-2.2.3/dev/oess_2 ${WRKSRC} + +post-patch: + @${REINPLACE_CMD} -e '/^#include </s,nodejs/http_parser/,,' \ + ${WRKSRC}/acl_handler/handlers/http/basics.hpp \ + ${WRKSRC}/acl_handler/handlers/http/helpers.hpp + @${REINPLACE_CMD} -e '/#include <sys\/prctl\.h>/d ; \ + /#include/s,args/,,' ${WRKSRC}/main.cpp + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/net/arataga/distinfo b/net/arataga/distinfo new file mode 100644 index 000000000000..1fa427cb70bf --- /dev/null +++ b/net/arataga/distinfo @@ -0,0 +1,15 @@ +TIMESTAMP = 1621686223 +SHA256 (oess-2.2.3-full.tar.bz2) = c9285e34752e9689989de3707cea2fc8c0c1d4607a7c35237a740c1cfb4dd8e9 +SIZE (oess-2.2.3-full.tar.bz2) = 219768 +SHA256 (Stiffstream-arataga-v0.5.1_GH0.tar.gz) = 67874a9f9aeb9df4da202a769a2599744c89a65cce83fb45b0f9c27842c89f8a +SIZE (Stiffstream-arataga-v0.5.1_GH0.tar.gz) = 193954 +SHA256 (Stiffstream-noexcept-ctcheck-v.1.0.0_GH0.tar.gz) = bdda733ba4fbd9ae4ea9cadba2e95fc6f4e65e18b8261b831aaedc827c712e44 +SIZE (Stiffstream-noexcept-ctcheck-v.1.0.0_GH0.tar.gz) = 7009 +SHA256 (Stiffstream-restinio-v.0.6.13_GH0.tar.gz) = 72d7ad40c8d34e69cd79f42145b4059e8a7356114fb13864c3c0ad5a5607b44f +SIZE (Stiffstream-restinio-v.0.6.13_GH0.tar.gz) = 662428 +SHA256 (Stiffstream-so5extra-v.1.4.1_GH0.tar.gz) = d500967b4c444e4f548349b6fd28ea877471e45bcf43606b6ff7d2a9f4cfd733 +SIZE (Stiffstream-so5extra-v.1.4.1_GH0.tar.gz) = 191168 +SHA256 (0ec1144117ae.patch) = 332522b058a3a59b48af3390fdec8c38a8529227f0830009a630c0d7940b2441 +SIZE (0ec1144117ae.patch) = 2367 +SHA256 (1c78ad1dbca8.patch) = b02099017d5c9f0afa945dec0edf600646d93743e19de477728a5eacfa5989ae +SIZE (1c78ad1dbca8.patch) = 2924 diff --git a/net/arataga/files/makefile b/net/arataga/files/makefile new file mode 100644 index 000000000000..33e54199307d --- /dev/null +++ b/net/arataga/files/makefile @@ -0,0 +1,69 @@ +LOCALBASE?= /usr/local +CXXFLAGS+= -std=c++17 -Wall -Wextra +CPPFLAGS+= -I. -I.. -I$(LOCALBASE)/include -DSPDLOG_FMT_EXTERNAL + +LDFLAGS+= -pthread $(LOCALBASE)/lib/libso.$(SO5_LIBVER).so \ + -L$(LOCALBASE)/lib -lfmt -lhttp_parser + +CCACHE?= $(shell command -v ccache) + +oess_OBJS= oess_2/defs/err_code.o \ + oess_2/defs/ex.o \ + oess_2/defs/quantity.o \ + oess_2/io/binbuffer.o \ + oess_2/io/bstring_buf.o \ + oess_2/io/fixed_mem_buf.o \ + oess_2/io/stream.o \ + oess_2/stdsn/ent.o \ + oess_2/stdsn/ent_std.o \ + oess_2/stdsn/serializable.o \ + oess_2/stdsn/shptr.o \ + oess_2/stdsn/type_tag/type_tag.o + +stats_OBJS= stats/auth/pub.o \ + stats/connections/pub.o \ + stats/dns/pub.o + +logging_OBJS= logging/stats_counters.o \ + logging/wrap_logging.o + +connection_handlers_OBJ=\ + acl_handler/connection_handler_ifaces.o \ + acl_handler/handlers/protocol_detection.o \ + acl_handler/handlers/data_transfer.o \ + acl_handler/handlers/socks5.o \ + acl_handler/handlers/http/basics.o \ + acl_handler/handlers/http/negative_response_sender.o \ + acl_handler/handlers/http/initial_handler.o \ + acl_handler/handlers/http/authentification_handler.o \ + acl_handler/handlers/http/dns_lookup_handler.o \ + acl_handler/handlers/http/target_connector.o \ + acl_handler/handlers/http/connect_method_handler.o \ + acl_handler/handlers/http/ordinary_method_handler.o + +misc_OBJS= admin_http_entry/pub.o \ + stats_collector/a_stats_collector.o \ + authentificator/a_authentificator.o \ + dns_resolver/interactor/a_nameserver_interactor.o \ + dns_resolver/lookup_conductor/a_conductor.o \ + dns_resolver/pub.o \ + io_thread_timer/a_timer_handler.o \ + acl_handler/bandlim_manager.o \ + acl_handler/a_handler.o \ + user_list_processor/a_processor.o \ + config_processor/a_processor.o \ + startup_manager/a_manager.o + +all_OBJS= $(oess_OBJS) $(stats_OBJS) config.o $(logging_OBJS) \ + user_list_auth_data.o $(connection_handlers_OBJ) \ + $(misc_OBJS) main.o + +%.o: %.cpp + $(CCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< + +arataga: $(all_OBJS) + $(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) + +all: arataga + +.PHONY: all install diff --git a/net/arataga/pkg-descr b/net/arataga/pkg-descr new file mode 100644 index 000000000000..6b7afab4b905 --- /dev/null +++ b/net/arataga/pkg-descr @@ -0,0 +1,6 @@ +arataga is a high-performance, configurable, authenticating, throttling +SOCKS5 and HTTP/1.1 proxy server. It was developed by Stiffstream for +a customer who then abandoned the project. So as not to throw away the +result, the source code of arataga had been opensourced. + +WWW: https://github.com/Stiffstream/arataga
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105281613.14SGDkuQ046247>