Index: net-p2p/transmission-cli/Makefile =================================================================== --- net-p2p/transmission-cli/Makefile +++ net-p2p/transmission-cli/Makefile @@ -1,119 +0,0 @@ -# $FreeBSD$ - -PORTNAME= transmission -PORTVERSION= 2.93 -PORTREVISION?= 0 -CATEGORIES?= net-p2p -MASTER_SITES= https://github.com/transmission/transmission-releases/raw/master/ \ - http://transmission.cachefly.net/ -PKGNAMESUFFIX?= -cli - -MAINTAINER?= crees@FreeBSD.org -COMMENT?= Lightweight CLI (command line) BitTorrent client and utilities - -SLAVEPORT?= cli - -LICENSE= GPLv2+ -.if ${SLAVEPORT} == cli -LICENSE+= MIT -LICENSE_COMB= multi -.endif -LICENSE_FILE= ${WRKSRC}/COPYING - -USES+= cpe tar:xz -CPE_VENDOR= transmissionbt - -CONFLICTS_INSTALL= ${PORTNAME}${PKGNAMESUFFIX}-2.5* - -EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions --exclude third-party - -.if ${SLAVEPORT} != web -LIB_DEPENDS?= ${GEN_LIB_DEPENDS} - -# General dependencies -GEN_LIB_DEPENDS=libb64.so:converters/libb64 \ - libcurl.so:ftp/curl \ - libdht.so:devel/jech-dht \ - libminiupnpc.so:net/miniupnpc \ - libnatpmp.so:net/libnatpmp \ - libutp.so:net/libutp \ - libevent.so:devel/libevent -GEN_RUN_DEPENDS=${LOCALBASE}/share/transmission/web/index.html:www/transmission-web - -# This is master port of transmission-*, so don't override USES definition -USES+= gmake iconv libtool localbase pkgconfig -GNU_CONFIGURE= yes -LIBS+= ${ICONV_LIB} -CONFIGURE_ENV= ${ICONV_LIB:C@.+@ac_cv_func_iconv=yes@} -CONFIGURE_ARGS= --without-inotify \ - --enable-external-b64 \ - --enable-external-dht \ - --enable-external-natpmp \ - ${EXTRA_CONF_ARGS} - -EXTRA_CONF_ARGS?=--enable-cli \ - --disable-daemon \ - --without-gtk \ - --disable-mac \ - --disable-nls - -EXTRA_PATCHES= ${PATCHDIR}/disable-web - -OPTIONS_DEFINE+= DOCS LITE -OPTIONS_DEFAULT+= OPENSSL -OPTIONS_SINGLE+= SSL -OPTIONS_SINGLE_SSL+= OPENSSL POLARSSL WOLFSSL - -LITE_CONFIGURE_ENABLE= lightweight - -OPENSSL_USES= ssl -OPENSSL_CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ - OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" -OPENSSL_CONFIGURE_ON= --with-crypto=openssl - -POLARSSL_LIB_DEPENDS= libpolarssl.so:security/polarssl13 -POLARSSL_CONFIGURE_ON= --with-crypto=polarssl - -WOLFSSL_LIB_DEPENDS= libwolfssl.so:security/wolfssl -WOLFSSL_CONFIGURE_ON= --with-crypto=cyassl -WOLFSSL_BROKEN= Requires security/wolfssl built with --enable-arc4 -.endif - -DOCS= AUTHORS NEWS README -DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} - -general-patch: - @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ - 's|noinst_PROGRAMS = |noinst_PROGRAMS = #|g' -.if ${SLAVEPORT} != gtk - @${REINPLACE_CMD} -e '/#define DISABLE_GETTEXT/s,/\* \(.*\) \*/,\1,' \ - ${WRKSRC}/libtransmission/utils.h -.endif - @${REINPLACE_CMD} -e \ - 's|rt_clock_gettime=yes|rt_clock_gettime=no|g ; \ - s|" == "|" = "|g' \ - ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|doc \\| \\|g' \ - ${WRKSRC}/Makefile.in -.if ${SLAVEPORT} != cli - @${REINPLACE_CMD} -e 's|utils \\|\\|g' \ - ${WRKSRC}/Makefile.in -.endif -# Don't conflict with patches but force system libraries - @${REINPLACE_CMD} -e 's|third-party \\|\\|g' \ - ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} \ - -e 's|third-party/[^ ]*Makefile||g' \ - ${WRKSRC}/configure - -post-patch: general-patch - -general-install: -.if ${SLAVEPORT} != web - (cd ${WRKSRC} && ${COPYTREE_SHARE} \ - "${DOCS}" ${STAGEDIR}${DOCSDIR}) -.endif - -post-install: general-install - -.include Index: net-p2p/transmission-cli/distinfo =================================================================== --- net-p2p/transmission-cli/distinfo +++ net-p2p/transmission-cli/distinfo @@ -1,3 +0,0 @@ -TIMESTAMP = 1519849051 -SHA256 (transmission-2.93.tar.xz) = 8815920e0a4499bcdadbbe89a4115092dab42ce5199f71ff9a926cfd12b9b90b -SIZE (transmission-2.93.tar.xz) = 3363868 Index: net-p2p/transmission-cli/files/disable-web =================================================================== --- net-p2p/transmission-cli/files/disable-web +++ net-p2p/transmission-cli/files/disable-web @@ -1,19 +0,0 @@ ---- Makefile.in.orig 2010-10-23 15:56:02.000000000 -0500 -+++ Makefile.in 2010-10-23 15:56:55.000000000 -0500 -@@ -303,15 +303,13 @@ - @BUILD_GTK_TRUE@GTK_DIR = gtk po - @BUILD_MAC_TRUE@MAC_DIR = macosx - SUBDIRS = \ -- extras \ - third-party \ - libtransmission \ - utils \ - $(DAEMON_DIR) \ - $(CLI_DIR) \ - $(GTK_DIR) \ -- $(MAC_DIR) \ -- web -+ $(MAC_DIR) - - EXTRA_DIST = \ - qt \ Index: net-p2p/transmission-cli/files/patch-configure =================================================================== --- net-p2p/transmission-cli/files/patch-configure +++ net-p2p/transmission-cli/files/patch-configure @@ -1,20 +0,0 @@ ---- configure.orig 2016-03-06 20:24:37 UTC -+++ configure -@@ -19348,7 +19348,7 @@ $as_echo_n "checking µTP... " >&6; } - build_utp="no" - - ac_save_LIBS="$LIBS" --LIBS="-lutp" -+LIBS="-lutp $LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext - /* end confdefs.h. */ - #include -@@ -19423,7 +19423,7 @@ $as_echo "$build_utp" >&6; } - - - ac_save_LIBS="$LIBS" --LIBS="-lminiupnpc" -+LIBS="-lminiupnpc $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking system miniupnpc library" >&5 - $as_echo_n "checking system miniupnpc library... " >&6; } - Index: net-p2p/transmission-cli/files/patch-fix-with-libressl =================================================================== --- net-p2p/transmission-cli/files/patch-fix-with-libressl +++ net-p2p/transmission-cli/files/patch-fix-with-libressl @@ -1,23 +0,0 @@ ---- libtransmission/crypto-utils-openssl.c.orig 2018-03-01 00:44:45 UTC -+++ libtransmission/crypto-utils-openssl.c -@@ -147,7 +147,7 @@ tr_sha1_final (tr_sha1_ctx_t handle, - **** - ***/ - --#if OPENSSL_VERSION_NUMBER < 0x0090802fL -+#if OPENSSL_VERSION_NUMBER < 0x0090802fL || defined(LIBRESSL_VERSION_NUMBER) - - static EVP_CIPHER_CTX * - openssl_evp_cipher_context_new (void) -@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t handle, - **** - ***/ - --#if OPENSSL_VERSION_NUMBER < 0x10100000 -+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) - static inline int - DH_set0_pqg (DH * dh, - BIGNUM * p, - - - Index: net-p2p/transmission-cli/files/patch-fix_without_ipv6 =================================================================== --- net-p2p/transmission-cli/files/patch-fix_without_ipv6 +++ net-p2p/transmission-cli/files/patch-fix_without_ipv6 @@ -1,11 +0,0 @@ ---- libtransmission/fdlimit.c.orig 2015-07-01 00:54:41 UTC -+++ libtransmission/fdlimit.c -@@ -517,7 +517,7 @@ tr_fdSocketCreate (tr_session * session, - - if (gFd->peerCount < session->peerLimit) - if ((s = socket (domain, type, 0)) == TR_BAD_SOCKET) -- if (sockerrno != EAFNOSUPPORT) -+ if (sockerrno != EPROTONOSUPPORT) - { - char err_buf[512]; - tr_logAddError (_("Couldn't create socket: %s"), Index: net-p2p/transmission-cli/files/patch-qt-app-h =================================================================== --- net-p2p/transmission-cli/files/patch-qt-app-h +++ net-p2p/transmission-cli/files/patch-qt-app-h @@ -1,10 +0,0 @@ ---- qt/Application.h.orig 2013-11-13 20:00:41.000000000 +0100 -+++ qt/Application.h 2013-11-13 20:00:51.000000000 +0100 -@@ -13,6 +13,7 @@ - #ifndef QTR_APP_H - #define QTR_APP_H - -+#include - #include - #include - #include Index: net-p2p/transmission-cli/files/patch-qt_qtr_pro =================================================================== --- net-p2p/transmission-cli/files/patch-qt_qtr_pro +++ net-p2p/transmission-cli/files/patch-qt_qtr_pro @@ -1,21 +0,0 @@ -$OpenBSD: patch-qt_qtr_pro,v 1.4 2012/04/07 10:55:04 naddy Exp $ ---- qt/qtr.pro.orig Fri Aug 9 04:45:47 2013 -+++ qt/qtr.pro Thu Aug 22 16:37:03 2013 -@@ -8,7 +8,7 @@ target.path = /bin - INSTALLS += target - - unix: INSTALLS += man --man.path = /share/man/man1/ -+man.path = /man/man1/ - man.files = transmission-qt.1 - - CONFIG += qt thread debug link_pkgconfig c++11 warn_on -@@ -34,7 +34,7 @@ LIBS += $${DHT_LIBS} - LIBS += $${LIBB64_LIBS} - LIBS += $${LIBUPNP_LIBS} - LIBS += $${LIBNATPMP_LIBS} --unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt -+unix: LIBS += -L$${EVENT_TOP}/lib -lz -levent_core -levent_extra - win32:LIBS += -levent-2.0 -lws2_32 -lintl - win32:LIBS += -lidn -liconv -lwldap32 -liphlpapi - Index: net-p2p/transmission-cli/files/transmission.in =================================================================== --- net-p2p/transmission-cli/files/transmission.in +++ net-p2p/transmission-cli/files/transmission.in @@ -1,80 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: transmission -# REQUIRE: DAEMON -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to enable this service: -# -# transmission_enable: Set to NO by default. Set it to YES to enable it. -# transmission_watch_dir: Directory for torrent files to download -# automatically. Off by default unless you add -# a path. -# transmission_conf_dir: Directory where transmission configuration -# data is stored. -# Default: %%PREFIX%%/etc/transmission/home -# transmission_download_dir: Directory to store downloaded data. -# Default: %%PREFIX%%/etc/transmission/home/Downloads -# transmission_user: The user account transmission daemon runs as what -# you want it to be. It uses 'transmission' user by -# default. -# transmission_web_home: Use alternative directory for the web interface -# files, such as javascript, html and graphics. -# transmission_chown: By default, transmission checks and fixes the -# permissions for its home directory. If this -# causes problems, set this variable to no. -# - -. /etc/rc.subr - -name=transmission -rcvar=transmission_enable - -load_rc_config $name - -: ${transmission_enable:=NO} -: ${transmission_conf_dir=%%PREFIX%%/etc/transmission/home} -: ${transmission_download_dir=%%PREFIX%%/etc/transmission/home/Downloads} -: ${transmission_user:=transmission} -transmission_group=${transmission_group:-$transmission_user} -: ${transmission_chown:=yes} - -command=%%PREFIX%%/bin/transmission-daemon -pidfile=/var/run/transmission/daemon.pid -extra_commands=reload -start_precmd=transmission_prestart - -transmission_flags=" \ - ${transmission_watch_dir:+-c ${transmission_watch_dir}} \ - ${transmission_conf_dir:+-g ${transmission_conf_dir}} \ - ${transmission_download_dir:+-w ${transmission_download_dir}} \ - ${pidfile:+-x $pidfile} \ - ${transmission_flags}" - -transmission_prestart() -{ - install -d -o $transmission_user ${pidfile%/*} - if checkyesno transmission_chown; then - mkdir -p $transmission_conf_dir $transmission_download_dir - chown $transmission_user:$transmission_group $transmission_download_dir - chown -R $transmission_user:$transmission_group $transmission_conf_dir - chgrp $transmission_group $transmission_conf_dir - chmod 750 $transmission_conf_dir - fi - if [ -n "$transmission_web_home" ]; then - TRANSMISSION_WEB_HOME=$transmission_web_home - export TRANSMISSION_WEB_HOME - fi -} - -# Unfortunately there was a typo in a previous version, which may have -# left some people with /var/run/transmission/damon.pid . Deal with -# this for a few months at least, until everyone will have restarted -# transmission -if [ ! -f $pidfile -a -f /var/run/transmission/damon.pid ]; then - pidfile=/var/run/transmission/damon.pid -fi - -run_rc_command $1 Index: net-p2p/transmission-cli/pkg-descr =================================================================== --- net-p2p/transmission-cli/pkg-descr +++ net-p2p/transmission-cli/pkg-descr @@ -1,9 +0,0 @@ -A fast and lightweight CLI (command line) BitTorrent client. - -Transmission has been built from the ground up to be a lightweight, yet -powerful BitTorrent client. Its simple, intuitive interface is designed -to integrate tightly with whatever computing environment you choose to -use. Transmission strikes a balance between providing useful functionality -without feature bloat. Furthermore, it is free for anyone to use or modify. - -WWW: http://www.transmissionbt.com/ Index: net-p2p/transmission-cli/pkg-plist =================================================================== --- net-p2p/transmission-cli/pkg-plist +++ net-p2p/transmission-cli/pkg-plist @@ -1,11 +0,0 @@ -bin/transmission-cli -bin/transmission-create -bin/transmission-edit -bin/transmission-show -man/man1/transmission-cli.1.gz -man/man1/transmission-create.1.gz -man/man1/transmission-edit.1.gz -man/man1/transmission-show.1.gz -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README Index: net-p2p/transmission-daemon/Makefile =================================================================== --- net-p2p/transmission-daemon/Makefile +++ net-p2p/transmission-daemon/Makefile @@ -1,29 +0,0 @@ -# $FreeBSD$ - -PKGNAMESUFFIX= -daemon - -MAINTAINER= crees@FreeBSD.org -COMMENT= Fast and lightweight daemon BitTorrent client - -RUN_DEPENDS= ${GEN_RUN_DEPENDS} - -DESCR= ${.CURDIR}/pkg-descr -MASTERDIR= ${.CURDIR}/../transmission-cli -PLIST= ${.CURDIR}/pkg-plist -SLAVEPORT= daemon -PKGMESSAGE= ${.CURDIR}/pkg-message - -USE_RC_SUBR= transmission -USERS= transmission -GROUPS= transmission - -EXTRA_CONF_ARGS=--disable-cli \ - --enable-daemon \ - --without-gtk \ - --disable-mac \ - --disable-nls - -post-install: - ${MKDIR} ${STAGEDIR}${ETCDIR}/home - -.include "${MASTERDIR}/Makefile" Index: net-p2p/transmission-daemon/pkg-descr =================================================================== --- net-p2p/transmission-daemon/pkg-descr +++ net-p2p/transmission-daemon/pkg-descr @@ -1,11 +0,0 @@ -The transmission-daemon is a daemon-based Transmission session that can -be controlled via RPC by transmission-remote (included) and other -Transmission BiTtorrent client such as GTK+ and CLI interface. - -Transmission has been built from the ground up to be a lightweight, yet -powerful BitTorrent client. Its simple, intuitive interface is designed -to integrate tightly with whatever computing environment you choose to -use. Transmission strikes a balance between providing useful functionality -without feature bloat. Furthermore, it is free for anyone to use or modify. - -WWW: http://www.transmissionbt.com/ Index: net-p2p/transmission-daemon/pkg-message =================================================================== --- net-p2p/transmission-daemon/pkg-message +++ net-p2p/transmission-daemon/pkg-message @@ -1,18 +0,0 @@ ------------------------------------------------------------------------- -To allow clients to connect to the transmission daemon using DNS with -any hostname other than localhost, do one of the following: - - Enable password authentication, then any hostname is allowed. - This can be achieved by either: - - setting rpc-authentication-required to true, and adding - credentials to the rpc-username and rpc-password fields in - settings.json (must be done whilst the transmission service is - stopped); or - - running transmission-daemon with the following arguments - (these can be set with transmission_flags in /etc/rc.conf): - -t -u USERNAME -v PASSWORD - OR - - Add the allowed server hostnames to the rpc-host-whitelist setting - in settings.json (must be done whilst the transmission service is - stopped). Note that this value is NOT a list of allowed CLIENTS, - but instead a list of allowed SERVER hostnames. ------------------------------------------------------------------------- Index: net-p2p/transmission-daemon/pkg-plist =================================================================== --- net-p2p/transmission-daemon/pkg-plist +++ net-p2p/transmission-daemon/pkg-plist @@ -1,8 +0,0 @@ -bin/transmission-daemon -bin/transmission-remote -man/man1/transmission-daemon.1.gz -man/man1/transmission-remote.1.gz -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -@dir %%ETCDIR%%/home Index: net-p2p/transmission-gtk/Makefile =================================================================== --- net-p2p/transmission-gtk/Makefile +++ net-p2p/transmission-gtk/Makefile @@ -1,34 +0,0 @@ -# $FreeBSD$ - -PKGNAMESUFFIX= -gtk - -MAINTAINER= crees@FreeBSD.org -COMMENT= Fast and lightweight GTK+3 BitTorrent client - -LIB_DEPENDS= ${GEN_LIB_DEPENDS} \ - libnotify.so:devel/libnotify \ - libdbus-glib-1.so:devel/dbus-glib - -RUN_DEPENDS= ${GEN_RUN_DEPENDS} \ - xdg-open:devel/xdg-utils - -DESCR= ${.CURDIR}/pkg-descr -MASTERDIR= ${.CURDIR}/../transmission-cli -PLIST= ${.CURDIR}/pkg-plist -SLAVEPORT= gtk - -USE_GNOME= cairo gtk30 intlhack -USES= gettext pathfix desktop-file-utils -INSTALLS_ICONS= yes - -EXTRA_CONF_ARGS=--disable-cli \ - --disable-daemon \ - --with-gtk \ - --disable-mac \ - --enable-nls - -post-patch: general-patch - @${REINPLACE_CMD} -e 's|TryExec=.*||g ; /^$$/d' \ - ${WRKSRC}/gtk/transmission-gtk.desktop.in - -.include "${MASTERDIR}/Makefile" Index: net-p2p/transmission-gtk/pkg-descr =================================================================== --- net-p2p/transmission-gtk/pkg-descr +++ net-p2p/transmission-gtk/pkg-descr @@ -1,9 +0,0 @@ -A fast and lightweight GTK BitTorrent client. - -Transmission has been built from the ground up to be a lightweight, yet -powerful BitTorrent client. Its simple, intuitive interface is designed -to integrate tightly with whatever computing environment you choose to -use. Transmission strikes a balance between providing useful functionality -without feature bloat. Furthermore, it is free for anyone to use or modify. - -WWW: http://www.transmissionbt.com/ Index: net-p2p/transmission-gtk/pkg-plist =================================================================== --- net-p2p/transmission-gtk/pkg-plist +++ net-p2p/transmission-gtk/pkg-plist @@ -1,102 +0,0 @@ -bin/transmission-gtk -man/man1/transmission-gtk.1.gz -share/applications/transmission-gtk.desktop -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -share/icons/hicolor/16x16/apps/transmission.png -share/icons/hicolor/22x22/apps/transmission.png -share/icons/hicolor/24x24/apps/transmission.png -share/icons/hicolor/256x256/apps/transmission.png -share/icons/hicolor/32x32/apps/transmission.png -share/icons/hicolor/48x48/apps/transmission.png -share/icons/hicolor/scalable/apps/transmission.svg -share/locale/an/LC_MESSAGES/transmission-gtk.mo -share/locale/ar/LC_MESSAGES/transmission-gtk.mo -share/locale/ast/LC_MESSAGES/transmission-gtk.mo -share/locale/az/LC_MESSAGES/transmission-gtk.mo -share/locale/be/LC_MESSAGES/transmission-gtk.mo -share/locale/be@latin/LC_MESSAGES/transmission-gtk.mo -share/locale/bg/LC_MESSAGES/transmission-gtk.mo -share/locale/bn/LC_MESSAGES/transmission-gtk.mo -share/locale/bo/LC_MESSAGES/transmission-gtk.mo -share/locale/br/LC_MESSAGES/transmission-gtk.mo -share/locale/bs/LC_MESSAGES/transmission-gtk.mo -share/locale/ca/LC_MESSAGES/transmission-gtk.mo -share/locale/ca@valencia/LC_MESSAGES/transmission-gtk.mo -share/locale/ceb/LC_MESSAGES/transmission-gtk.mo -share/locale/ckb/LC_MESSAGES/transmission-gtk.mo -share/locale/cs/LC_MESSAGES/transmission-gtk.mo -share/locale/da/LC_MESSAGES/transmission-gtk.mo -share/locale/de/LC_MESSAGES/transmission-gtk.mo -share/locale/el/LC_MESSAGES/transmission-gtk.mo -share/locale/en_AU/LC_MESSAGES/transmission-gtk.mo -share/locale/en_CA/LC_MESSAGES/transmission-gtk.mo -share/locale/en_GB/LC_MESSAGES/transmission-gtk.mo -share/locale/eo/LC_MESSAGES/transmission-gtk.mo -share/locale/es/LC_MESSAGES/transmission-gtk.mo -share/locale/et/LC_MESSAGES/transmission-gtk.mo -share/locale/eu/LC_MESSAGES/transmission-gtk.mo -share/locale/fa/LC_MESSAGES/transmission-gtk.mo -share/locale/fi/LC_MESSAGES/transmission-gtk.mo -share/locale/fil/LC_MESSAGES/transmission-gtk.mo -share/locale/fo/LC_MESSAGES/transmission-gtk.mo -share/locale/fr/LC_MESSAGES/transmission-gtk.mo -share/locale/ga/LC_MESSAGES/transmission-gtk.mo -share/locale/gl/LC_MESSAGES/transmission-gtk.mo -share/locale/gv/LC_MESSAGES/transmission-gtk.mo -share/locale/he/LC_MESSAGES/transmission-gtk.mo -share/locale/hi/LC_MESSAGES/transmission-gtk.mo -share/locale/hr/LC_MESSAGES/transmission-gtk.mo -share/locale/hy/LC_MESSAGES/transmission-gtk.mo -share/locale/hu/LC_MESSAGES/transmission-gtk.mo -share/locale/ia/LC_MESSAGES/transmission-gtk.mo -share/locale/id/LC_MESSAGES/transmission-gtk.mo -share/locale/is/LC_MESSAGES/transmission-gtk.mo -share/locale/it/LC_MESSAGES/transmission-gtk.mo -share/locale/ja/LC_MESSAGES/transmission-gtk.mo -share/locale/ka/LC_MESSAGES/transmission-gtk.mo -share/locale/kk/LC_MESSAGES/transmission-gtk.mo -share/locale/ko/LC_MESSAGES/transmission-gtk.mo -share/locale/ku/LC_MESSAGES/transmission-gtk.mo -share/locale/ky/LC_MESSAGES/transmission-gtk.mo -share/locale/li/LC_MESSAGES/transmission-gtk.mo -share/locale/lt/LC_MESSAGES/transmission-gtk.mo -share/locale/lv/LC_MESSAGES/transmission-gtk.mo -share/locale/mk/LC_MESSAGES/transmission-gtk.mo -share/locale/ml/LC_MESSAGES/transmission-gtk.mo -share/locale/mr/LC_MESSAGES/transmission-gtk.mo -share/locale/ms/LC_MESSAGES/transmission-gtk.mo -share/locale/mt/LC_MESSAGES/transmission-gtk.mo -share/locale/my/LC_MESSAGES/transmission-gtk.mo -share/locale/nb/LC_MESSAGES/transmission-gtk.mo -share/locale/nds/LC_MESSAGES/transmission-gtk.mo -share/locale/nl/LC_MESSAGES/transmission-gtk.mo -share/locale/nn/LC_MESSAGES/transmission-gtk.mo -share/locale/oc/LC_MESSAGES/transmission-gtk.mo -share/locale/pa/LC_MESSAGES/transmission-gtk.mo -share/locale/pl/LC_MESSAGES/transmission-gtk.mo -share/locale/pt/LC_MESSAGES/transmission-gtk.mo -share/locale/pt_BR/LC_MESSAGES/transmission-gtk.mo -share/locale/ro/LC_MESSAGES/transmission-gtk.mo -share/locale/ru/LC_MESSAGES/transmission-gtk.mo -share/locale/si/LC_MESSAGES/transmission-gtk.mo -share/locale/sk/LC_MESSAGES/transmission-gtk.mo -share/locale/sl/LC_MESSAGES/transmission-gtk.mo -share/locale/sq/LC_MESSAGES/transmission-gtk.mo -share/locale/sr/LC_MESSAGES/transmission-gtk.mo -share/locale/sv/LC_MESSAGES/transmission-gtk.mo -share/locale/sw/LC_MESSAGES/transmission-gtk.mo -share/locale/ta_LK/LC_MESSAGES/transmission-gtk.mo -share/locale/te/LC_MESSAGES/transmission-gtk.mo -share/locale/th/LC_MESSAGES/transmission-gtk.mo -share/locale/tl/LC_MESSAGES/transmission-gtk.mo -share/locale/tr/LC_MESSAGES/transmission-gtk.mo -share/locale/ug/LC_MESSAGES/transmission-gtk.mo -share/locale/uk/LC_MESSAGES/transmission-gtk.mo -share/locale/ur/LC_MESSAGES/transmission-gtk.mo -share/locale/uz/LC_MESSAGES/transmission-gtk.mo -share/locale/vi/LC_MESSAGES/transmission-gtk.mo -share/locale/zh_CN/LC_MESSAGES/transmission-gtk.mo -share/locale/zh_TW/LC_MESSAGES/transmission-gtk.mo -share/pixmaps/transmission.png Index: net-p2p/transmission-qt4/Makefile =================================================================== --- net-p2p/transmission-qt4/Makefile +++ net-p2p/transmission-qt4/Makefile @@ -1,53 +0,0 @@ -# $FreeBSD$ - -PKGNAMESUFFIX= -qt4 - -MAINTAINER= crees@FreeBSD.org -COMMENT= Fast and lightweight Qt4 BitTorrent client - -LIB_DEPENDS= ${GEN_LIB_DEPENDS} \ - libfontconfig.so:x11-fonts/fontconfig \ - libfreetype.so:print/freetype2 -RUN_DEPENDS= ${GEN_RUN_DEPENDS} - -CONFLICTS_INSTALL= transmission-qt5-[0-9]* - -DESCR= ${.CURDIR}/pkg-descr -MASTERDIR= ${.CURDIR}/../transmission-cli -PLIST= ${.CURDIR}/pkg-plist -SLAVEPORT= qt4 - -QT_NONSTANDARD= yes -USE_QT4= moc_build qmake_build uic_build rcc_build \ - corelib gui dbus network xml -USES= compiler:c++11-lib desktop-file-utils - -EXTRA_CONF_ARGS=--disable-cli \ - --disable-daemon \ - --without-gtk \ - --disable-mac \ - --disable-nls - -post-patch: general-patch - @${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \ - ${WRKSRC}/qt/qtr.pro - @${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \ - >>${WRKSRC}/qt/qtr.pro - -post-build: - @(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD}) - -do-install: - @(cd ${WRKSRC}/qt && \ - ${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install) - -post-install: general-install - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/qt/README.txt \ - ${STAGEDIR}${DOCSDIR}/README-qt4 - @${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \ - ${STAGEDIR}${PREFIX}/share/applications/ - @${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \ - ${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png - -.include "${MASTERDIR}/Makefile" Index: net-p2p/transmission-qt4/pkg-descr =================================================================== --- net-p2p/transmission-qt4/pkg-descr +++ net-p2p/transmission-qt4/pkg-descr @@ -1,13 +0,0 @@ -A fast and lightweight Qt4 BitTorrent client, loosely based on the GTK+ client. - -This is the only Transmission client that can act as its own self-contained -session (as the GTK+ and Mac clients do), and can also connect to a remote -session (as the web client and transmission-remote terminal client do). - -Transmission has been built from the ground up to be a lightweight, yet -powerful BitTorrent client. Its simple, intuitive interface is designed -to integrate tightly with whatever computing environment you choose to -use. Transmission strikes a balance between providing useful functionality -without feature bloat. Furthermore, it is free for anyone to use or modify. - -WWW: http://www.transmissionbt.com/ Index: net-p2p/transmission-qt4/pkg-plist =================================================================== --- net-p2p/transmission-qt4/pkg-plist +++ net-p2p/transmission-qt4/pkg-plist @@ -1,8 +0,0 @@ -bin/transmission-qt -man/man1/transmission-qt.1.gz -share/applications/transmission-qt.desktop -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README-qt4 -share/pixmaps/transmission-qt.png Index: net-p2p/transmission-qt5/Makefile =================================================================== --- net-p2p/transmission-qt5/Makefile +++ net-p2p/transmission-qt5/Makefile @@ -1,53 +0,0 @@ -# $FreeBSD$ - -PKGNAMESUFFIX= -qt5 - -MAINTAINER= crees@FreeBSD.org -COMMENT= Fast and lightweight Qt5 BitTorrent client - -LIB_DEPENDS= ${GEN_LIB_DEPENDS} \ - libfontconfig.so:x11-fonts/fontconfig \ - libfreetype.so:print/freetype2 -RUN_DEPENDS= ${GEN_RUN_DEPENDS} - -CONFLICTS_INSTALL= transmission-qt4-[0-9]* - -DESCR= ${.CURDIR}/pkg-descr -MASTERDIR= ${.CURDIR}/../transmission-cli -PLIST= ${.CURDIR}/pkg-plist -SLAVEPORT= qt5 - -QT_NONSTANDARD= yes -USE_QT5= buildtools_build qmake_build core dbus gui network widgets -USES= compiler:c++11-lib desktop-file-utils - -EXTRA_CONF_ARGS=--disable-cli \ - --disable-daemon \ - --without-gtk \ - --disable-mac \ - --disable-nls - -post-patch: general-patch - @${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \ - ${WRKSRC}/qt/qtr.pro - @${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \ - >>${WRKSRC}/qt/qtr.pro - -post-build: - @(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD}) - -do-install: - @(cd ${WRKSRC}/qt && \ - ${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install) - -post-install: general-install - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/transmission-qt - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/qt/README.txt \ - ${STAGEDIR}${DOCSDIR}/README-qt5 - @${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \ - ${STAGEDIR}${PREFIX}/share/applications/ - @${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \ - ${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png - -.include "${MASTERDIR}/Makefile" Index: net-p2p/transmission-qt5/pkg-descr =================================================================== --- net-p2p/transmission-qt5/pkg-descr +++ net-p2p/transmission-qt5/pkg-descr @@ -1,13 +0,0 @@ -A fast and lightweight Qt5 BitTorrent client, loosely based on the GTK+ client. - -This is the only Transmission client that can act as its own self-contained -session (as the GTK+ and Mac clients do), and can also connect to a remote -session (as the web client and transmission-remote terminal client do). - -Transmission has been built from the ground up to be a lightweight, yet -powerful BitTorrent client. Its simple, intuitive interface is designed -to integrate tightly with whatever computing environment you choose to -use. Transmission strikes a balance between providing useful functionality -without feature bloat. Furthermore, it is free for anyone to use or modify. - -WWW: http://www.transmissionbt.com/ Index: net-p2p/transmission-qt5/pkg-plist =================================================================== --- net-p2p/transmission-qt5/pkg-plist +++ net-p2p/transmission-qt5/pkg-plist @@ -1,8 +0,0 @@ -bin/transmission-qt -man/man1/transmission-qt.1.gz -share/applications/transmission-qt.desktop -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README-qt5 -share/pixmaps/transmission-qt.png Index: net-p2p/transmission/Makefile =================================================================== --- net-p2p/transmission/Makefile +++ net-p2p/transmission/Makefile @@ -1,18 +1,143 @@ # $FreeBSD$ PORTNAME= transmission -PORTVERSION= 2.93 +DISTVERSION= 2.93 CATEGORIES= net-p2p +PKGNAMESUFFIX= -${FLAVOR} MAINTAINER= crees@FreeBSD.org -COMMENT= Meta-port for Transmission BitTorrent client +COMMENT= Transmission is a fast, easy, and free BitTorrent client -RUN_DEPENDS= transmission-cli:net-p2p/transmission-cli \ - transmission-daemon:net-p2p/transmission-daemon \ - transmission-gtk:net-p2p/transmission-gtk - -CONFLICTS_INSTALL= ${PORTNAME}${PKGNAMESUFFIX}-2.[56]* - -USES= metaport +# Still need to figure out how to add LICENSE per FLAVOR +# since some of the FLAVORS do have more permissive LICENSE. +# Alternativelly, if possible, use LICENSE_GROUP then. +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +# FLAVOR should come after LIB_DEPENDS but I couldn't find a +# workaround to the web FLAVOR which does not have LIB_DEPENDS. +FLAVORS= cli daemon gtk qt4 qt5 web +FLAVOR?= ${FLAVORS:[1]} + +. if ${FLAVOR} != web +LIB_DEPENDS= libcurl.so:ftp/curl \ + libdht.so:devel/jech-dht \ + libb64.so:converters/libb64 \ + libevent.so:devel/libevent \ + libnatpmp.so:net/libnatpmp \ + libutp.so:net/libutp \ + libminiupnpc.so:net/miniupnpc +. endif + +gtk_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ + libnotify.so:devel/libnotify +qt4_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 +qt5_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 +gtk_RUN_DEPENDS= xdg-open:devel/xdg-utils + +USES?= cmake:outsource cpe iconv localbase libtool pkgconfig +CPE_VENDOR= transmissionbt +USE_GITHUB= yes + +# Setting localbase:ldflags does NOT solve +LDFLAGS+= -L${LOCALBASE}/lib -lintl -ldht + +qt4_CONFLICTS= qt5 + +. if ${FLAVOR} == cli +USES+= gettext-runtime:run ssl +CMAKE_OFF= ENABLE_GTK ENABLE_QT ENABLE_NLS ENABLE_DAEMON +CMAKE_ON= ENABLE_CLI +. endif + +. if ${FLAVOR} == daemon +USES+= gettext-runtime:run ssl +CMAKE_OFF= ENABLE_CLI ENABLE_NLS ENABLE_GTK ENABLE_QT \ + ENABLE_UTILS +USERS= transmission +GROUPS= transmission +USE_RC_SUBR= transmission +. endif + +. if ${FLAVOR} == gtk +USES+= desktop-file-utils gettext-tools:build ssl +USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 intlhack pango +CMAKE_OFF= ENABLE_CLI ENABLE_DAEMON ENABLE_QT \ + ENABLE_UTILS +CMAKE_ON= ENABLE_GTK +. endif + +. if ${FLAVOR} == qt4 +USES+= gettext-runtime:run +USE_QT4= moc_build qmake_build rcc_build uic_build\ + corelib dbus gui network xml +CMAKE_OFF= ENABLE_CLI ENABLE_DAEMON ENABLE_GTK ENABLE_NLS \ + ENABLE_UTILS +. endif + +. if ${FLAVOR} == qt5 +USES+= gettext-runtime:run +USE_QT5= buildtools_build linguisttools_build qmake_build \ + core dbus gui network widgets +CMAKE_OFF= ENABLE_CLI ENABLE_DAEMON ENABLE_NLS ENABLE_GTK \ + ENABLE_UTILS +CMAKE_ON= USE_QT5 +. endif + +. if ${FLAVOR} == web +USES= cpe +NO_ARCH= yes +NO_BUILD= yes +PORTDATA= web +. endif + +. if ${FLAVOR} != web +OPTIONS_DEFINE= DOCS LITE + +. if ${FLAVOR} == gtk +OPTIONS_DEFINE+= NLS +. endif + +OPTIONS_DEFAULT= OPENSSL +OPTIONS_SINGLE= SSL +OPTIONS_SINGLE_SSL= OPENSSL POLARSSL WOLFSSL + +OPENSSL_USES= ssl +OPENSSL_CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ + OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" +OPENSSL_CONFIGURE_ON= --with-crypto=openssl + +POLARSSL_LIB_DEPENDS= libpolarssl.so:security/polarssl13 +POLARSSL_CONFIGURE_ON= --with-crypto=polarssl + +WOLFSSL_LIB_DEPENDS= libwolfssl.so:security/wolfssl +WOLFSSL_CONFIGURE_ON= --with-crypto=cyassl +WOLFSSL_BROKEN= Requires security/wolfssl built with --enable-arc4 + +LITE_CONFIGURE_ENABLE= lightweight +.endif + +cli_PLIST= pkg-plist.cli +daemon_PLIST= pkg-plist.daemon +gtk_PLIST= pkg-plist.gtk +qt4_PLIST= pkg-plist.qt4 +qt5_PLIST= pkg-plist.qt5 +web_PLIST= pkg-plist.web + +post-extract: + @${FIND} ${WRKSRC}/web -name .git* -delete + +. if ${FLAVOR} == web + @${FIND} ${WRKSRC}/web \( -name '*.am' -o -name '*.in' \ + -o -name '*.scss' \) -delete +. endif + +. if ${FLAVOR} == web +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR}/web + (cd ${WRKSRC}/web && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/web) +. endif .include Index: net-p2p/transmission/distinfo =================================================================== --- /dev/null +++ net-p2p/transmission/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1521346680 +SHA256 (transmission-transmission-2.93_GH0.tar.gz) = 870ea21a2803c141126bb3f2da4e9acab8db7c0b403a64f685f410b629497a8a +SIZE (transmission-transmission-2.93_GH0.tar.gz) = 6341015 Index: net-p2p/transmission/files/patch-CMakeLists.txt =================================================================== --- /dev/null +++ net-p2p/transmission/files/patch-CMakeLists.txt @@ -0,0 +1,16 @@ +--- CMakeLists.txt.orig 2018-03-17 20:05:12 UTC ++++ CMakeLists.txt +@@ -536,13 +536,6 @@ foreach(P daemon cli utils gtk qt) + endif() + endforeach() + +-if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT) +- install(DIRECTORY web DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME} +- PATTERN *.am EXCLUDE +- PATTERN *.in EXCLUDE +- PATTERN *.scss EXCLUDE) +-endif() +- + if(ENABLE_GTK AND ENABLE_NLS) + find_package(Gettext REQUIRED) + add_subdirectory(po) Index: net-p2p/transmission/files/patch-libtransmission_crypto-utils-openssl.c =================================================================== --- /dev/null +++ net-p2p/transmission/files/patch-libtransmission_crypto-utils-openssl.c @@ -0,0 +1,20 @@ +--- libtransmission/crypto-utils-openssl.c.orig 2018-03-17 02:51:58 UTC ++++ libtransmission/crypto-utils-openssl.c +@@ -147,7 +147,7 @@ tr_sha1_final (tr_sha1_ctx_t handle, + **** + ***/ + +-#if OPENSSL_VERSION_NUMBER < 0x0090802fL ++#if OPENSSL_VERSION_NUMBER < 0x0090802fL || defined(LIBRESSL_VERSION_NUMBER) + + static EVP_CIPHER_CTX * + openssl_evp_cipher_context_new (void) +@@ -230,7 +230,7 @@ tr_rc4_process (tr_rc4_ctx_t handle, + **** + ***/ + +-#if OPENSSL_VERSION_NUMBER < 0x10100000 ++#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) + static inline int + DH_set0_pqg (DH * dh, + BIGNUM * p, Index: net-p2p/transmission/files/patch-libtransmission_fdlimit.c =================================================================== --- /dev/null +++ net-p2p/transmission/files/patch-libtransmission_fdlimit.c @@ -0,0 +1,11 @@ +--- libtransmission/fdlimit.c.orig 2018-03-17 03:06:48 UTC ++++ libtransmission/fdlimit.c +@@ -517,7 +517,7 @@ tr_fdSocketCreate (tr_session * session, + + if (gFd->peerCount < session->peerLimit) + if ((s = socket (domain, type, 0)) == TR_BAD_SOCKET) +- if (sockerrno != EAFNOSUPPORT) ++ if (sockerrno != EPROTONOSUPPORT) + { + char err_buf[512]; + tr_logAddError (_("Couldn't create socket: %s"), Index: net-p2p/transmission/files/patch-qt_Application.h =================================================================== --- /dev/null +++ net-p2p/transmission/files/patch-qt_Application.h @@ -0,0 +1,10 @@ +--- qt/Application.h.orig 2018-03-17 03:09:04 UTC ++++ qt/Application.h +@@ -10,6 +10,7 @@ + #ifndef QTR_APPLICATION_H + #define QTR_APPLICATION_H + ++#include + #include + #include + #include Index: net-p2p/transmission/files/patch-qt_qtr.pro =================================================================== --- /dev/null +++ net-p2p/transmission/files/patch-qt_qtr.pro @@ -0,0 +1,20 @@ +--- qt/qtr.pro.orig 2018-03-17 03:10:10 UTC ++++ qt/qtr.pro +@@ -8,7 +8,7 @@ target.path = /bin + INSTALLS += target + + unix: INSTALLS += man +-man.path = /share/man/man1/ ++man.path = /man/man1/ + man.files = transmission-qt.1 + + CONFIG += qt thread debug link_pkgconfig c++11 warn_on +@@ -34,7 +34,7 @@ LIBS += $${DHT_LIBS} + LIBS += $${LIBB64_LIBS} + LIBS += $${LIBUPNP_LIBS} + LIBS += $${LIBNATPMP_LIBS} +-unix: LIBS += -L$${EVENT_TOP}/lib -lz -lrt ++unix: LIBS += -L$${EVENT_TOP}/lib -lz -levent_core -levent_extra + win32:LIBS += -levent-2.0 -lws2_32 -lintl + win32:LIBS += -lidn -liconv -lwldap32 -liphlpapi + Index: net-p2p/transmission/files/transmission.in =================================================================== --- /dev/null +++ net-p2p/transmission/files/transmission.in @@ -0,0 +1,80 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: transmission +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable this service: +# +# transmission_enable: Set to NO by default. Set it to YES to enable it. +# transmission_watch_dir: Directory for torrent files to download +# automatically. Off by default unless you add +# a path. +# transmission_conf_dir: Directory where transmission configuration +# data is stored. +# Default: %%PREFIX%%/etc/transmission/home +# transmission_download_dir: Directory to store downloaded data. +# Default: %%PREFIX%%/etc/transmission/home/Downloads +# transmission_user: The user account transmission daemon runs as what +# you want it to be. It uses 'transmission' user by +# default. +# transmission_web_home: Use alternative directory for the web interface +# files, such as javascript, html and graphics. +# transmission_chown: By default, transmission checks and fixes the +# permissions for its home directory. If this +# causes problems, set this variable to no. +# + +. /etc/rc.subr + +name=transmission +rcvar=transmission_enable + +load_rc_config $name + +: ${transmission_enable:=NO} +: ${transmission_conf_dir=%%PREFIX%%/etc/transmission/home} +: ${transmission_download_dir=%%PREFIX%%/etc/transmission/home/Downloads} +: ${transmission_user:=transmission} +transmission_group=${transmission_group:-$transmission_user} +: ${transmission_chown:=yes} + +command=%%PREFIX%%/bin/transmission-daemon +pidfile=/var/run/transmission/daemon.pid +extra_commands=reload +start_precmd=transmission_prestart + +transmission_flags=" \ + ${transmission_watch_dir:+-c ${transmission_watch_dir}} \ + ${transmission_conf_dir:+-g ${transmission_conf_dir}} \ + ${transmission_download_dir:+-w ${transmission_download_dir}} \ + ${pidfile:+-x $pidfile} \ + ${transmission_flags}" + +transmission_prestart() +{ + install -d -o $transmission_user ${pidfile%/*} + if checkyesno transmission_chown; then + mkdir -p $transmission_conf_dir $transmission_download_dir + chown $transmission_user:$transmission_group $transmission_download_dir + chown -R $transmission_user:$transmission_group $transmission_conf_dir + chgrp $transmission_group $transmission_conf_dir + chmod 750 $transmission_conf_dir + fi + if [ -n "$transmission_web_home" ]; then + TRANSMISSION_WEB_HOME=$transmission_web_home + export TRANSMISSION_WEB_HOME + fi +} + +# Unfortunately there was a typo in a previous version, which may have +# left some people with /var/run/transmission/damon.pid . Deal with +# this for a few months at least, until everyone will have restarted +# transmission +if [ ! -f $pidfile -a -f /var/run/transmission/damon.pid ]; then + pidfile=/var/run/transmission/damon.pid +fi + +run_rc_command $1 Index: net-p2p/transmission/pkg-plist.cli =================================================================== --- /dev/null +++ net-p2p/transmission/pkg-plist.cli @@ -0,0 +1,14 @@ +bin/transmission-cli +bin/transmission-create +bin/transmission-edit +bin/transmission-show +man/man1/transmission-cli.1.gz +man/man1/transmission-create.1.gz +man/man1/transmission-edit.1.gz +man/man1/transmission-show.1.gz +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt +%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh Index: net-p2p/transmission/pkg-plist.daemon =================================================================== --- /dev/null +++ net-p2p/transmission/pkg-plist.daemon @@ -0,0 +1,10 @@ +bin/transmission-daemon +bin/transmission-remote +man/man1/transmission-daemon.1.gz +man/man1/transmission-remote.1.gz +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt +%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh Index: net-p2p/transmission/pkg-plist.gtk =================================================================== --- /dev/null +++ net-p2p/transmission/pkg-plist.gtk @@ -0,0 +1,104 @@ +bin/transmission-gtk +man/man1/transmission-gtk.1.gz +share/applications/transmission-gtk.desktop +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt +%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh +share/icons/hicolor/16x16/apps/transmission.png +share/icons/hicolor/22x22/apps/transmission.png +share/icons/hicolor/24x24/apps/transmission.png +share/icons/hicolor/256x256/apps/transmission.png +share/icons/hicolor/32x32/apps/transmission.png +share/icons/hicolor/48x48/apps/transmission.png +share/icons/hicolor/scalable/apps/transmission.svg +share/locale/an/LC_MESSAGES/transmission-gtk.mo +share/locale/ar/LC_MESSAGES/transmission-gtk.mo +share/locale/ast/LC_MESSAGES/transmission-gtk.mo +share/locale/az/LC_MESSAGES/transmission-gtk.mo +share/locale/be/LC_MESSAGES/transmission-gtk.mo +share/locale/be@latin/LC_MESSAGES/transmission-gtk.mo +share/locale/bg/LC_MESSAGES/transmission-gtk.mo +share/locale/bn/LC_MESSAGES/transmission-gtk.mo +share/locale/bo/LC_MESSAGES/transmission-gtk.mo +share/locale/br/LC_MESSAGES/transmission-gtk.mo +share/locale/bs/LC_MESSAGES/transmission-gtk.mo +share/locale/ca/LC_MESSAGES/transmission-gtk.mo +share/locale/ca@valencia/LC_MESSAGES/transmission-gtk.mo +share/locale/ceb/LC_MESSAGES/transmission-gtk.mo +share/locale/ckb/LC_MESSAGES/transmission-gtk.mo +share/locale/cs/LC_MESSAGES/transmission-gtk.mo +share/locale/da/LC_MESSAGES/transmission-gtk.mo +share/locale/de/LC_MESSAGES/transmission-gtk.mo +share/locale/el/LC_MESSAGES/transmission-gtk.mo +share/locale/en_AU/LC_MESSAGES/transmission-gtk.mo +share/locale/en_CA/LC_MESSAGES/transmission-gtk.mo +share/locale/en_GB/LC_MESSAGES/transmission-gtk.mo +share/locale/eo/LC_MESSAGES/transmission-gtk.mo +share/locale/es/LC_MESSAGES/transmission-gtk.mo +share/locale/et/LC_MESSAGES/transmission-gtk.mo +share/locale/eu/LC_MESSAGES/transmission-gtk.mo +share/locale/fa/LC_MESSAGES/transmission-gtk.mo +share/locale/fi/LC_MESSAGES/transmission-gtk.mo +share/locale/fil/LC_MESSAGES/transmission-gtk.mo +share/locale/fo/LC_MESSAGES/transmission-gtk.mo +share/locale/fr/LC_MESSAGES/transmission-gtk.mo +share/locale/ga/LC_MESSAGES/transmission-gtk.mo +share/locale/gl/LC_MESSAGES/transmission-gtk.mo +share/locale/gv/LC_MESSAGES/transmission-gtk.mo +share/locale/he/LC_MESSAGES/transmission-gtk.mo +share/locale/hi/LC_MESSAGES/transmission-gtk.mo +share/locale/hr/LC_MESSAGES/transmission-gtk.mo +share/locale/hu/LC_MESSAGES/transmission-gtk.mo +share/locale/hy/LC_MESSAGES/transmission-gtk.mo +share/locale/ia/LC_MESSAGES/transmission-gtk.mo +share/locale/id/LC_MESSAGES/transmission-gtk.mo +share/locale/is/LC_MESSAGES/transmission-gtk.mo +share/locale/it/LC_MESSAGES/transmission-gtk.mo +share/locale/ja/LC_MESSAGES/transmission-gtk.mo +share/locale/ka/LC_MESSAGES/transmission-gtk.mo +share/locale/kk/LC_MESSAGES/transmission-gtk.mo +share/locale/ko/LC_MESSAGES/transmission-gtk.mo +share/locale/ku/LC_MESSAGES/transmission-gtk.mo +share/locale/ky/LC_MESSAGES/transmission-gtk.mo +share/locale/li/LC_MESSAGES/transmission-gtk.mo +share/locale/lt/LC_MESSAGES/transmission-gtk.mo +share/locale/lv/LC_MESSAGES/transmission-gtk.mo +share/locale/mk/LC_MESSAGES/transmission-gtk.mo +share/locale/ml/LC_MESSAGES/transmission-gtk.mo +share/locale/mr/LC_MESSAGES/transmission-gtk.mo +share/locale/ms/LC_MESSAGES/transmission-gtk.mo +share/locale/mt/LC_MESSAGES/transmission-gtk.mo +share/locale/my/LC_MESSAGES/transmission-gtk.mo +share/locale/nb/LC_MESSAGES/transmission-gtk.mo +share/locale/nds/LC_MESSAGES/transmission-gtk.mo +share/locale/nl/LC_MESSAGES/transmission-gtk.mo +share/locale/nn/LC_MESSAGES/transmission-gtk.mo +share/locale/oc/LC_MESSAGES/transmission-gtk.mo +share/locale/pa/LC_MESSAGES/transmission-gtk.mo +share/locale/pl/LC_MESSAGES/transmission-gtk.mo +share/locale/pt/LC_MESSAGES/transmission-gtk.mo +share/locale/pt_BR/LC_MESSAGES/transmission-gtk.mo +share/locale/ro/LC_MESSAGES/transmission-gtk.mo +share/locale/ru/LC_MESSAGES/transmission-gtk.mo +share/locale/si/LC_MESSAGES/transmission-gtk.mo +share/locale/sk/LC_MESSAGES/transmission-gtk.mo +share/locale/sl/LC_MESSAGES/transmission-gtk.mo +share/locale/sq/LC_MESSAGES/transmission-gtk.mo +share/locale/sr/LC_MESSAGES/transmission-gtk.mo +share/locale/sv/LC_MESSAGES/transmission-gtk.mo +share/locale/sw/LC_MESSAGES/transmission-gtk.mo +share/locale/ta_LK/LC_MESSAGES/transmission-gtk.mo +share/locale/te/LC_MESSAGES/transmission-gtk.mo +share/locale/th/LC_MESSAGES/transmission-gtk.mo +share/locale/tl/LC_MESSAGES/transmission-gtk.mo +share/locale/tr/LC_MESSAGES/transmission-gtk.mo +share/locale/ug/LC_MESSAGES/transmission-gtk.mo +share/locale/uk/LC_MESSAGES/transmission-gtk.mo +share/locale/ur/LC_MESSAGES/transmission-gtk.mo +share/locale/uz/LC_MESSAGES/transmission-gtk.mo +share/locale/vi/LC_MESSAGES/transmission-gtk.mo +share/locale/zh_CN/LC_MESSAGES/transmission-gtk.mo +share/locale/zh_TW/LC_MESSAGES/transmission-gtk.mo Index: net-p2p/transmission/pkg-plist.qt4 =================================================================== --- /dev/null +++ net-p2p/transmission/pkg-plist.qt4 @@ -0,0 +1,9 @@ +bin/transmission-qt +man/man1/transmission-qt.1.gz +share/applications/transmission-qt.desktop +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt +%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh Index: net-p2p/transmission/pkg-plist.qt5 =================================================================== --- /dev/null +++ net-p2p/transmission/pkg-plist.qt5 @@ -0,0 +1,9 @@ +bin/transmission-qt +man/man1/transmission-qt.1.gz +share/applications/transmission-qt.desktop +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/rpc-spec.txt +%%PORTDOCS%%%%DOCSDIR%%/send-email-when-torrent-done.sh Index: www/transmission-web/Makefile =================================================================== --- www/transmission-web/Makefile +++ www/transmission-web/Makefile @@ -1,25 +0,0 @@ -# $FreeBSD$ - -CATEGORIES= www net-p2p -PKGNAMESUFFIX= -web - -MAINTAINER= crees@FreeBSD.org -COMMENT= Fast and lightweight WebUI for Transmission BitTorrent client - -DESCR= ${.CURDIR}/pkg-descr -MASTERDIR= ${.CURDIR}/../../net-p2p/transmission-cli -PLIST= ${NONEXISTENT} -SLAVEPORT= web - -PORTDATA= web - -NO_BUILD= yes - -post-extract: - @${FIND} ${WRKSRC}/web -name Makefile.* -delete - -do-install: - ${MKDIR} ${STAGEDIR}${DATADIR}/web - (cd ${WRKSRC}/web && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/web) - -.include "${MASTERDIR}/Makefile" Index: www/transmission-web/pkg-descr =================================================================== --- www/transmission-web/pkg-descr +++ www/transmission-web/pkg-descr @@ -1,16 +0,0 @@ -Transmission Web Interface (Clutch) is a WebUI for the Transmission BitTorrent -client. It allows you to manage your torrents from anywhere you can access the -internet, and runs on OS X and various flavors of *nix. It provides most of -the basic features of the desktop client, including torrent upload, torrent -start/stop, file path selection, speed limiting etc. - -Transmission has been built from the ground up to be a lightweight, yet -powerful BitTorrent client. Its simple, intuitive interface is designed -to integrate tightly with whatever computing environment you choose to -use. Transmission strikes a balance between providing useful functionality -without feature bloat. Furthermore, it is free for anyone to use or modify. - -You will need to install either transmission-daemon, transmission-gtk2 or -both to use WebUI. - -WWW: http://www.transmissionbt.com/