From owner-svn-ports-head@FreeBSD.ORG Sat Jan 4 15:33:15 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 226E5AF5; Sat, 4 Jan 2014 15:33:15 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E81CB1991; Sat, 4 Jan 2014 15:33:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s04FXE36073036; Sat, 4 Jan 2014 15:33:14 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s04FXE8l073034; Sat, 4 Jan 2014 15:33:14 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201401041533.s04FXE8l073034@svn.freebsd.org> From: Chris Rees Date: Sat, 4 Jan 2014 15:33:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338648 - in head/net-p2p: transmission-cli/files transmission-daemon X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2014 15:33:15 -0000 Author: crees Date: Sat Jan 4 15:33:14 2014 New Revision: 338648 URL: http://svnweb.freebsd.org/changeset/ports/338648 Log: Add option to disable ownership and permissions checking in rc script. Modified: head/net-p2p/transmission-cli/files/transmission.in head/net-p2p/transmission-daemon/Makefile Modified: head/net-p2p/transmission-cli/files/transmission.in ============================================================================== --- head/net-p2p/transmission-cli/files/transmission.in Sat Jan 4 14:35:01 2014 (r338647) +++ head/net-p2p/transmission-cli/files/transmission.in Sat Jan 4 15:33:14 2014 (r338648) @@ -22,6 +22,9 @@ # 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 @@ -36,6 +39,7 @@ load_rc_config $name : ${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 @@ -51,11 +55,13 @@ transmission_flags=" \ transmission_prestart() { install -d -o $transmission_user ${pidfile%/*} - 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 + 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 Modified: head/net-p2p/transmission-daemon/Makefile ============================================================================== --- head/net-p2p/transmission-daemon/Makefile Sat Jan 4 14:35:01 2014 (r338647) +++ head/net-p2p/transmission-daemon/Makefile Sat Jan 4 15:33:14 2014 (r338648) @@ -1,6 +1,6 @@ # $FreeBSD$ -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -daemon MAINTAINER= crees@FreeBSD.org