From owner-svn-ports-head@freebsd.org Tue Apr 23 09:18:53 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6504F1593CF5; Tue, 23 Apr 2019 09:18:53 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 093799736E; Tue, 23 Apr 2019 09:18:53 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D74B1225DD; Tue, 23 Apr 2019 09:18:52 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3N9Iq1v043605; Tue, 23 Apr 2019 09:18:52 GMT (envelope-from rm@FreeBSD.org) Received: (from rm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3N9IqUc043604; Tue, 23 Apr 2019 09:18:52 GMT (envelope-from rm@FreeBSD.org) Message-Id: <201904230918.x3N9IqUc043604@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rm set sender to rm@FreeBSD.org using -f From: Ruslan Makhmatkhanov Date: Tue, 23 Apr 2019 09:18:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499737 - in head/net-p2p/deluge-cli: . files X-SVN-Group: ports-head X-SVN-Commit-Author: rm X-SVN-Commit-Paths: in head/net-p2p/deluge-cli: . files X-SVN-Commit-Revision: 499737 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 093799736E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 23 Apr 2019 09:18:53 -0000 Author: rm Date: Tue Apr 23 09:18:52 2019 New Revision: 499737 URL: https://svnweb.freebsd.org/changeset/ports/499737 Log: net-p2p/deluge-cli: fix deluged rc-script PR: 237389 Submitted by: Delan Azabani MFH: 2019Q2 Modified: head/net-p2p/deluge-cli/Makefile head/net-p2p/deluge-cli/files/deluge_web.in Modified: head/net-p2p/deluge-cli/Makefile ============================================================================== --- head/net-p2p/deluge-cli/Makefile Tue Apr 23 09:01:33 2019 (r499736) +++ head/net-p2p/deluge-cli/Makefile Tue Apr 23 09:18:52 2019 (r499737) @@ -3,7 +3,7 @@ PORTNAME= deluge DISTVERSIONPREFIX= ${PORTNAME}- DISTVERSION= 1.3.15 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= net-p2p python PKGNAMESUFFIX= -cli Modified: head/net-p2p/deluge-cli/files/deluge_web.in ============================================================================== --- head/net-p2p/deluge-cli/files/deluge_web.in Tue Apr 23 09:01:33 2019 (r499736) +++ head/net-p2p/deluge-cli/files/deluge_web.in Tue Apr 23 09:18:52 2019 (r499737) @@ -45,7 +45,7 @@ deluge_web_prestart() if [ "$deluge_web_user" = 'asjklasdfjklasdf' ]; then err 1 "You must set deluge_web_user to a real, unprivileged user" fi - deluge_web_home=$(pw user show ${deluge_web_user} | cut -d : -f 9) + if [ -z ${deluge_web_home} ]; then err 1 "deluge_web_user does not have a valid home directory." fi @@ -60,6 +60,7 @@ deluge_web_prestart() if [ ! -d "${deluge_web_home}/.python-eggs" ]; then mkdir ${deluge_web_home}/.python-eggs chown -R $deluge_web_user ${deluge_web_home}/.python-eggs + fi chmod 0755 /var/run/${name} chown -R $deluge_web_user /var/run/${name} @@ -76,6 +77,9 @@ load_rc_config $name : ${deluge_web_enable:="NO"} : ${deluge_web_user:="asjklasdfjklasdf"} + +deluge_web_home=$(pw user show ${deluge_web_user} | cut -d : -f 9) + : ${deluge_web_confdir:="${deluge_web_home}/.config/deluge"} : ${deluge_web_loglevel:="error"} : ${deluge_web_logfile:="/var/tmp/${name}.log"}