Date: Sat, 4 Jan 2014 15:33:14 +0000 (UTC) From: Chris Rees <crees@FreeBSD.org> 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 Message-ID: <201401041533.s04FXE8l073034@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401041533.s04FXE8l073034>