Index: net-p2p/transmission-cli/Makefile =================================================================== --- net-p2p/transmission-cli/Makefile +++ net-p2p/transmission-cli/Makefile @@ -2,6 +2,7 @@ PORTNAME= transmission DISTVERSION= 2.94 +PORTREVISION?= 1 CATEGORIES+= net-p2p SLAVEPORT?= cli PKGNAMESUFFIX?= -cli Index: net-p2p/transmission-cli/files/transmission.in =================================================================== --- net-p2p/transmission-cli/files/transmission.in +++ /dev/null @@ -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-daemon/Makefile =================================================================== --- net-p2p/transmission-daemon/Makefile +++ net-p2p/transmission-daemon/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ +PORTREVISION= 1 PKGNAMESUFFIX= -daemon USES= ssl Index: net-p2p/transmission-daemon/files/transmission.in =================================================================== --- /dev/null +++ net-p2p/transmission-daemon/files/transmission.in @@ -0,0 +1,80 @@ +#!/bin/sh +# +# $FreeBSD: head/net-p2p/transmission-cli/files/transmission.in 373348 2014-11-24 18:51:26Z crees $ +# +# 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-gtk/Makefile =================================================================== --- net-p2p/transmission-gtk/Makefile +++ net-p2p/transmission-gtk/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -PORTREVISION= 1 +PORTREVISION= 2 PKGNAMESUFFIX= -gtk LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ Index: net-p2p/transmission-qt/Makefile =================================================================== --- net-p2p/transmission-qt/Makefile +++ net-p2p/transmission-qt/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -PORTREVISION= 1 +PORTREVISION= 2 PKGNAMESUFFIX= -${FLAVOR} LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ Index: www/transmission-web/Makefile =================================================================== --- www/transmission-web/Makefile +++ www/transmission-web/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ +PORTREVISION= 1 CATEGORIES= www PKGNAMESUFFIX= -web