From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 19 18:10:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6EE3106566C for ; Tue, 19 May 2009 18:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B203C8FC24 for ; Tue, 19 May 2009 18:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4JIA19i047559 for ; Tue, 19 May 2009 18:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4JIA1k1047558; Tue, 19 May 2009 18:10:01 GMT (envelope-from gnats) Resent-Date: Tue, 19 May 2009 18:10:01 GMT Resent-Message-Id: <200905191810.n4JIA1k1047558@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Cowart Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 585EA106566B for ; Tue, 19 May 2009 18:09:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0188FC08 for ; Tue, 19 May 2009 18:09:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4JI9GF9087211 for ; Tue, 19 May 2009 18:09:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4JI9GkL087203; Tue, 19 May 2009 18:09:16 GMT (envelope-from nobody) Message-Id: <200905191809.n4JI9GkL087203@www.freebsd.org> Date: Tue, 19 May 2009 18:09:16 GMT From: Chris Cowart To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/134722: [patch] rc script for net-p2p/transmission-daemon X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 18:10:02 -0000 >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@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: