ports/134722: [patch] rc script for net-p2p/transmission-daemon

Chris Cowart ccowart at rescomp.berkeley.edu
Tue May 19 18:10:02 UTC 2009


>Number:         134722
>Category:       ports
>Synopsis:       [patch] rc script for net-p2p/transmission-daemon
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 19 18:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Chris Cowart
>Release:        7.0-RELEASE
>Organization:
UC Berkeley - RSSP-IT
>Environment:
FreeBSD dev-aux.rescomp.berkeley.edu 7.0-RELEASE-p6 FreeBSD 7.0-RELEASE-p6 #3: Mon Dec  8 16:42:41 PST 2008     root at dev-aux.rescomp.berkeley.edu:/usr/obj/usr/src/sys/AUX  i386

>Description:
The transmission-daemon bittorrent client doesn't come with an rc script.

I've written an rc script, but I'm having a hard time understanding the
hierarchy of transmission ports that all seem to include each other, so
I don't know which files directory it makes sense to drop it into.

As such, I'm attaching the script. Hopefully the maintainer will be able
to find the right Makefile to add

USE_RC_SUBR=    transmission

And drop the .in into the files directory.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: transmission
# REQUIRE: DAEMON 
#
# 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 the tracker.
# transmission_watch_dir:   A folder for torrent files to download
#                           automatically.
# transmission_conf_dir:    The directory where transmission configuration
#                           data is stored
# transmission_user:        The user account transmission should run as.
#                           This will be root if unset -- you probably don't
#                           want that!
#

. %%RC_SUBR%%

name=transmission
rcvar=`set_rcvar`
command=/usr/local/bin/transmission-daemon

load_rc_config ${name}

: ${transmission_enable:="NO"}
: ${transmission_pidfile:=/var/run/${name}.pid}

transmission_flags="${transmission_watch_dir:+-c ${transmission_watch_dir}} \
    ${transmission_conf_dir:+-g ${transmission_conf_dir}} \
    ${transmission_flags}"
run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list