new package: microsocks (#5882)

This commit is contained in:
Rabby Sheikh 2020-10-03 01:45:00 +06:00 committed by GitHub
parent 081d7eac8c
commit fc5263bc30
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,18 @@
diff -uNr microsocks/Makefile microsocks-mod/Makefile
--- microsocks/Makefile 2020-10-02 23:56:02.119088328 +0600
+++ microsocks-mod/Makefile 2020-10-03 00:58:49.228942473 +0600
@@ -1,14 +1,13 @@
# if you want to change/override some variables, do so in a file called
# config.mak, which is gets included automatically if it exists.
-prefix = /usr/local
+prefix = @TERMUX_PREFIX@
bindir = $(prefix)/bin
PROG = microsocks
SRCS = sockssrv.c server.c sblist.c sblist_delete.c
OBJS = $(SRCS:.c=.o)
-LIBS = -lpthread
CFLAGS += -Wall -std=c99

View File

@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://github.com/rofl0r/microsocks
TERMUX_PKG_DESCRIPTION="tiny, portable SOCKS5 server with very moderate resource usage"
TERMUX_PKG_LICENSE="MIT"
_COMMIT=5795a84c4fbd61685690a8cd6d43969efc083614
TERMUX_PKG_MAINTAINER="Rabby Sheikh @xploitednoob"
TERMUX_PKG_VERSION=2020.08.14-${_COMMIT:0:8}
TERMUX_PKG_SRCURL=https://github.com/rofl0r/microsocks/archive/${_COMMIT}.tar.gz
TERMUX_PKG_SHA256=7c5442be114b514a1a33c5219a8746a8232455c4d46aa418534f3ef2694779bc
TERMUX_PKG_BUILD_IN_SRC=true