From owner-svn-ports-head@freebsd.org Sun May 15 03:11:33 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6FAAB3BA8C; Sun, 15 May 2016 03:11:33 +0000 (UTC) (envelope-from farrokhi@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 mx1.freebsd.org (Postfix) with ESMTPS id 9D9AF1867; Sun, 15 May 2016 03:11:33 +0000 (UTC) (envelope-from farrokhi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4F3BWUZ055895; Sun, 15 May 2016 03:11:32 GMT (envelope-from farrokhi@FreeBSD.org) Received: (from farrokhi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4F3BWK8055894; Sun, 15 May 2016 03:11:32 GMT (envelope-from farrokhi@FreeBSD.org) Message-Id: <201605150311.u4F3BWK8055894@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: farrokhi set sender to farrokhi@FreeBSD.org using -f From: Babak Farrokhi Date: Sun, 15 May 2016 03:11:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415207 - head/net/radvd/files 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.22 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: Sun, 15 May 2016 03:11:34 -0000 Author: farrokhi Date: Sun May 15 03:11:32 2016 New Revision: 415207 URL: https://svnweb.freebsd.org/changeset/ports/415207 Log: update net/radvd to improve startup script - rc script now accepts arbitrary config file path PR: 206237 Submitted by: Daniel Ylitalo Approved by: bapt Differential Revision: https://reviews.freebsd.org/D6371 Modified: head/net/radvd/files/radvd.in Modified: head/net/radvd/files/radvd.in ============================================================================== --- head/net/radvd/files/radvd.in Sun May 15 02:11:11 2016 (r415206) +++ head/net/radvd/files/radvd.in Sun May 15 03:11:32 2016 (r415207) @@ -16,10 +16,13 @@ rcvar=radvd_enable pidfile=/var/run/${name}.pid command="%%PREFIX%%/sbin/${name}" -command_args="-p ${pidfile}" -required_files="%%PREFIX%%/etc/${name}.conf" load_rc_config $name : ${radvd_enable="NO"} +: ${radvd_config="%%PREFIX%%/etc/${name}.conf"} + +required_files="${radvd_config}" + +command_args="-p ${pidfile} -C ${radvd_config}" run_rc_command "$1"