[NEW] net/py-saltyrtc.server: SaltyRTC compliant signalling server
This is a SaltyRTC server implementation for Python 3.5+ using asyncio WWW: https://github.com/saltyrtc/saltyrtc-server-python
This commit is contained in:
parent
dc2a8a344f
commit
83e10ccbb5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555144
@ -1094,6 +1094,7 @@
|
|||||||
SUBDIR += py-ripe.atlas.tools
|
SUBDIR += py-ripe.atlas.tools
|
||||||
SUBDIR += py-s3cmd
|
SUBDIR += py-s3cmd
|
||||||
SUBDIR += py-s3transfer
|
SUBDIR += py-s3transfer
|
||||||
|
SUBDIR += py-saltyrtc.server
|
||||||
SUBDIR += py-sbws
|
SUBDIR += py-sbws
|
||||||
SUBDIR += py-shodan
|
SUBDIR += py-shodan
|
||||||
SUBDIR += py-siosocks
|
SUBDIR += py-siosocks
|
||||||
|
41
net/py-saltyrtc.server/Makefile
Normal file
41
net/py-saltyrtc.server/Makefile
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= saltyrtc.server
|
||||||
|
PORTVERSION= 5.0.1
|
||||||
|
CATEGORIES= net python
|
||||||
|
MASTER_SITES= CHEESESHOP
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= egypcio@FreeBSD.org
|
||||||
|
COMMENT= SaltyRTC compliant signalling server
|
||||||
|
|
||||||
|
LICENSE= MIT
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=6.7:devel/py-click@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}libnacl>=1.5:security/py-libnacl@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}logbook>=1.0:devel/py-logbook@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}u-msgpack-python>=2.7:devel/py-u-msgpack-python@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}mypy>=0.700:devel/py-mypy@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}websockets>=8.0:devel/py-websockets@${PY_FLAVOR}
|
||||||
|
|
||||||
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}collective.checkdocs>=0.2:textproc/py-collective.checkdocs@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}flake8>=3.7:devel/py-flake8@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}ordered-set>=3.0:devel/py-ordered-set@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}pygments>=2.2:textproc/py-pygments@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}pytest>=3.7:devel/py-pytest@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.9:devel/py-pytest-asyncio@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.5:devel/py-pytest-cov@${PY_FLAVOR} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}pytest-mock>=1.10:devel/py-pytest-mock@${PY_FLAVOR}
|
||||||
|
|
||||||
|
USES= python:3.6+
|
||||||
|
USE_PYTHON= autoplist distutils
|
||||||
|
USE_RC_SUBR= saltyrtc-server
|
||||||
|
|
||||||
|
SUB_LIST= ETCDIR=${PREFIX}/etc/saltyrtc-server PYTHON_CMD=${PYTHON_CMD}
|
||||||
|
|
||||||
|
NO_ARCH= yes
|
||||||
|
NO_BUILD= yes
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
net/py-saltyrtc.server/distinfo
Normal file
3
net/py-saltyrtc.server/distinfo
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
TIMESTAMP = 1605026122
|
||||||
|
SHA256 (saltyrtc.server-5.0.1.tar.gz) = 7493779b449b6ed9432224b7f3dd37829cb60d1ca7a7f7e52d5f50f8163d62f3
|
||||||
|
SIZE (saltyrtc.server-5.0.1.tar.gz) = 68380
|
53
net/py-saltyrtc.server/files/saltyrtc-server.in
Normal file
53
net/py-saltyrtc.server/files/saltyrtc-server.in
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
# PROVIDE: saltyrtc_server
|
||||||
|
# REQUIRE: DAEMON
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
#
|
||||||
|
# saltyrtc_server_enable (bool) Default: NO
|
||||||
|
# saltyrtc_server_key (str) Default: %%ETCDIR%%/key
|
||||||
|
# saltyrtc_server_dhp (str) Default: %%ETCDIR%%/dhparam.pem
|
||||||
|
# saltyrtc_server_tlskey (str) Default: %%ETCDIR%%/tls.key
|
||||||
|
# saltyrtc_server_tlscrt (str) Default: %%ETCDIR%%/tls.crt
|
||||||
|
# saltyrtc_server_host (str) Default: 0.0.0.0
|
||||||
|
# saltyrtc_server_port (int) Default: 443
|
||||||
|
#
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name="saltyrtc_server"
|
||||||
|
rcvar="${name}_enable"
|
||||||
|
pidfile="/var/run/${name}.pid"
|
||||||
|
command="/usr/sbin/daemon"
|
||||||
|
command_interpreter="%%PYTHON_CMD%%"
|
||||||
|
procname="%%PREFIX%%/bin/saltyrtc-server"
|
||||||
|
|
||||||
|
start_precmd="${name}_precmd"
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
|
||||||
|
: ${saltyrtc_server_enable:="NO"}
|
||||||
|
: ${saltyrtc_server_key:="%%ETCDIR%%/key"}
|
||||||
|
: ${saltyrtc_server_dhp:="%%ETCDIR%%/dhparam.pem"}
|
||||||
|
: ${saltyrtc_server_tlskey:="%%ETCDIR%%/tls.key"}
|
||||||
|
: ${saltyrtc_server_tlscrt:="%%ETCDIR%%/tls.crt"}
|
||||||
|
: ${saltyrtc_server_host:="0.0.0.0"}
|
||||||
|
: ${saltyrtc_server_port:="443"}
|
||||||
|
|
||||||
|
required_files="${saltyrtc_server_dhp} ${saltyrtc_server_tlskey} ${saltyrtc_server_tlscrt}"
|
||||||
|
|
||||||
|
command_args_saltyrtc="-k ${saltyrtc_server_key} -dhp ${saltyrtc_server_dhp}"
|
||||||
|
command_args_saltyrtc="${command_args_saltyrtc} -tk ${saltyrtc_server_tlskey} -tc ${saltyrtc_server_tlscrt}"
|
||||||
|
command_args_saltyrtc="${command_args_saltyrtc} -h ${saltyrtc_server_host} -p ${saltyrtc_server_port}"
|
||||||
|
command_args="-o /var/log/${name}.log -p ${pidfile} ${procname} serve ${command_args_saltyrtc}"
|
||||||
|
|
||||||
|
saltyrtc_server_precmd() {
|
||||||
|
if [ ! -e ${saltyrtc_server_key} ]; then
|
||||||
|
mkdir -p `dirname ${saltyrtc_server_key}`
|
||||||
|
${command_interpreter} ${procname} generate ${saltyrtc_server_key}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
run_rc_command $1
|
3
net/py-saltyrtc.server/pkg-descr
Normal file
3
net/py-saltyrtc.server/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
This is a SaltyRTC server implementation for Python 3.5+ using asyncio.
|
||||||
|
|
||||||
|
WWW: https://github.com/saltyrtc/saltyrtc-server-python
|
Loading…
Reference in New Issue
Block a user