Index: net-p2p/Makefile =================================================================== --- net-p2p/Makefile +++ net-p2p/Makefile @@ -73,6 +73,7 @@ SUBDIR += phex SUBDIR += py-py2play SUBDIR += py-transmissionrpc + SUBDIR += py-tremc SUBDIR += py-vertex SUBDIR += qbittorrent SUBDIR += qbittorrent-nox11 Index: net-p2p/py-tremc/Makefile =================================================================== --- /dev/null +++ net-p2p/py-tremc/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= tremc +DISTVERSION= g20171202 +CATEGORIES= net-p2p python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lbdm@privacychain.ch +COMMENT= Console client for the BitTorrent client Transmission + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= python:3.4+ shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= louipc +GH_TAGNAME= e06d08d + +NO_ARCH= yes +NO_BUILD= yes +SHEBANG_FILES= tremc + +PLIST_FILES= bin/tremc \ + share/bash-completion/completions/tremc \ + share/man/man1/tremc.1 +SUB_FILES= pkg-message + +OPTIONS_DEFINE= GEOIP XEROX + +XEROX_DESC= Copy magnet links to the system clipboard + +GEOIP_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/GeoIP.so:net/py-GeoIP@${PY_FLAVOR} +XEROX_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/xerox/__init__.py:devel/py-xerox@${PY_FLAVOR} + +.include Index: net-p2p/py-tremc/distinfo =================================================================== --- /dev/null +++ net-p2p/py-tremc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1514265585 +SHA256 (louipc-tremc-g20171202-e06d08d_GH0.tar.gz) = 4559922bc047c4d95f5c2936dd844f2fd4614fef76028beb441553c68bef2ebf +SIZE (louipc-tremc-g20171202-e06d08d_GH0.tar.gz) = 255734 Index: net-p2p/py-tremc/files/patch-Makefile =================================================================== --- /dev/null +++ net-p2p/py-tremc/files/patch-Makefile @@ -0,0 +1,8 @@ +--- Makefile.orig 2017-12-23 21:53:12 UTC ++++ Makefile +@@ -6,4 +6,4 @@ install: + install -d "${DESTDIR}${PREFIX}/bin" + install -m 755 tremc "${DESTDIR}${PREFIX}/bin/tremc" + install -d "${DESTDIR}${PREFIX}/share/bash-completion/completions" +- install -m 755 "completion/bash/transmission-remote-cli-bash-completion.sh" "${DESTDIR}${PREFIX}/share/bash-completion/completions/tremc" ++ install -m 644 "completion/bash/transmission-remote-cli-bash-completion.sh" "${DESTDIR}${PREFIX}/share/bash-completion/completions/tremc" Index: net-p2p/py-tremc/files/pkg-message.in =================================================================== --- /dev/null +++ net-p2p/py-tremc/files/pkg-message.in @@ -0,0 +1,10 @@ +################################################################### + +Please run "tremc --create-config" to create the configuration file +with default values. + +NOTE: A config file won't be created unless you provide this +option at least once. After that, it is rewritten whenever tremc +exits. + +################################################################### Index: net-p2p/py-tremc/pkg-descr =================================================================== --- /dev/null +++ net-p2p/py-tremc/pkg-descr @@ -0,0 +1,7 @@ +Curses interface for transmission. + +Python3 fork of the no longer maintained transmission-remote-cli. Some +extra modifications have been included and development will follow the +original project as much as possible. + +WWW: https://github.com/louipc/tremc