Index: net-p2p/py-tremc/Makefile =================================================================== --- /dev/null +++ net-p2p/py-tremc/Makefile @@ -0,0 +1,40 @@ +# $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 \ + man/man1/tremc.1.gz \ + share/bash-completion/completions/tremc +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} + +post-patch: + + ${GZIP_CMD} ${WRKSRC}/tremc.1 + +.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,15 @@ +--- Makefile.orig 2017-12-28 23:38:56 UTC ++++ Makefile +@@ -1,9 +1,9 @@ + .PHONY: install + + install: +- install -d "${DESTDIR}${PREFIX}/share/man/man1" +- install -m 644 tremc.1 "${DESTDIR}${PREFIX}/share/man/man1/tremc.1" ++ install -d "${DESTDIR}${PREFIX}/man/man1" ++ install -m 644 tremc.1.gz "${DESTDIR}${PREFIX}/man/man1/tremc.1.gz" + 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