From owner-svn-ports-head@freebsd.org Sat Dec 22 05:27:34 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB6871345605; Sat, 22 Dec 2018 05:27:33 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A95670BC8; Sat, 22 Dec 2018 05:27:33 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6C46220701; Sat, 22 Dec 2018 05:27:33 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBM5RXx3098180; Sat, 22 Dec 2018 05:27:33 GMT (envelope-from loader@FreeBSD.org) Received: (from loader@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBM5RWAT098176; Sat, 22 Dec 2018 05:27:32 GMT (envelope-from loader@FreeBSD.org) Message-Id: <201812220527.wBM5RWAT098176@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loader set sender to loader@FreeBSD.org using -f From: Fukang Chen Date: Sat, 22 Dec 2018 05:27:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r488066 - in head/comms: . py-xmodem X-SVN-Group: ports-head X-SVN-Commit-Author: loader X-SVN-Commit-Paths: in head/comms: . py-xmodem X-SVN-Commit-Revision: 488066 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7A95670BC8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.954,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2018 05:27:34 -0000 Author: loader Date: Sat Dec 22 05:27:32 2018 New Revision: 488066 URL: https://svnweb.freebsd.org/changeset/ports/488066 Log: [NEW PORT]: comms/py-xmodem: XMODEM protocol implementation Python XMODEM protocol implementation This is a literal implementation of XMODEM.TXT, XMODEM1K.TXT and XMODMCRC.TXT, support for YMODEM and ZMODEM is pending. YMODEM should be fairly easy to implement as it is a hack on top of the XMODEM protocol using sequence bytes ``0x00`` for sending file names (and some meta data). WWW: https://github.com/tehmaze/xmodem Reviewed by: koobs Approved by: koobs (mentor) Differential Revision: https://reviews.freebsd.org/D18626 Added: head/comms/py-xmodem/ head/comms/py-xmodem/Makefile (contents, props changed) head/comms/py-xmodem/distinfo (contents, props changed) head/comms/py-xmodem/pkg-descr (contents, props changed) Modified: head/comms/Makefile Modified: head/comms/Makefile ============================================================================== --- head/comms/Makefile Sat Dec 22 05:01:30 2018 (r488065) +++ head/comms/Makefile Sat Dec 22 05:27:32 2018 (r488066) @@ -140,6 +140,7 @@ SUBDIR += py-lirc SUBDIR += py-qt5-serialport SUBDIR += py-serial + SUBDIR += py-xmodem SUBDIR += pyla SUBDIR += qico SUBDIR += qpage Added: head/comms/py-xmodem/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/py-xmodem/Makefile Sat Dec 22 05:27:32 2018 (r488066) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= xmodem +DISTVERSION= 0.4.5 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= loader@FreeBSD.org +COMMENT= XMODEM protocol implementation + +LICENSE= MIT + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} \ + lrz:comms/lrzsz + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist concurrent distutils + +GH_ACCOUNT= tehmaze +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e "s|'doc'|'${DOCSDIR}'|" ${WRKSRC}/setup.py + +do-test: + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest + +.include Added: head/comms/py-xmodem/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/py-xmodem/distinfo Sat Dec 22 05:27:32 2018 (r488066) @@ -0,0 +1,3 @@ +TIMESTAMP = 1543230345 +SHA256 (tehmaze-xmodem-0.4.5_GH0.tar.gz) = 5d6d760b5afdd6b4e7c1613b93792b12360ec2f911e2333ab9eda2d49231bcf0 +SIZE (tehmaze-xmodem-0.4.5_GH0.tar.gz) = 38003 Added: head/comms/py-xmodem/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/py-xmodem/pkg-descr Sat Dec 22 05:27:32 2018 (r488066) @@ -0,0 +1,9 @@ +Python XMODEM protocol implementation + +This is a literal implementation of XMODEM.TXT, XMODEM1K.TXT and +XMODMCRC.TXT, support for YMODEM and ZMODEM is pending. YMODEM should +be fairly easy to implement as it is a hack on top of the XMODEM +protocol using sequence bytes ``0x00`` for sending file names (and some +meta data). + +WWW: https://github.com/tehmaze/xmodem