Skip to content

Commit

Permalink
net/arataga: improve the port prior to hooking up unit tests (+)
Browse files Browse the repository at this point in the history
- Move installation recipe to `files/makefile' where it belongs
- Fix a typo (OBJ -> OBJS) and clean up `files/makefile' a bit
- Improve wording in the port description (reduce tautology)
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed May 29, 2021
1 parent 0d25df4 commit 030fe4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
5 changes: 1 addition & 4 deletions net/arataga/Makefile
Expand Up @@ -53,10 +53,7 @@ post-patch:
@${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:
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${STAGEDIR}${DOCSDIR}

Expand Down
13 changes: 7 additions & 6 deletions net/arataga/files/makefile
@@ -1,12 +1,8 @@
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 \
Expand All @@ -27,7 +23,7 @@ stats_OBJS= stats/auth/pub.o \
logging_OBJS= logging/stats_counters.o \
logging/wrap_logging.o

connection_handlers_OBJ=\
connection_handlers_OBJS=\
acl_handler/connection_handler_ifaces.o \
acl_handler/handlers/protocol_detection.o \
acl_handler/handlers/data_transfer.o \
Expand Down Expand Up @@ -55,9 +51,11 @@ misc_OBJS= admin_http_entry/pub.o \
startup_manager/a_manager.o

all_OBJS= $(oess_OBJS) $(stats_OBJS) config.o $(logging_OBJS) \
user_list_auth_data.o $(connection_handlers_OBJ) \
user_list_auth_data.o $(connection_handlers_OBJS) \
$(misc_OBJS) main.o

CCACHE?= $(shell command -v ccache)

%.o: %.cpp
$(CCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<

Expand All @@ -66,4 +64,7 @@ arataga: $(all_OBJS)

all: arataga

install: arataga
$(BSD_INSTALL_PROGRAM) $^ $(DESTDIR)$(PREFIX)/bin

.PHONY: all install
2 changes: 1 addition & 1 deletion net/arataga/pkg-descr
@@ -1,6 +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.
result, the source code of arataga had been released to the public.

WWW: https://github.com/Stiffstream/arataga

0 comments on commit 030fe4d

Please sign in to comment.