From owner-svn-ports-head@freebsd.org Mon Jun 13 15:46:42 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 D69E1AF0788; Mon, 13 Jun 2016 15:46:42 +0000 (UTC) (envelope-from feld@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 A68232621; Mon, 13 Jun 2016 15:46:42 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5DFkfAL067273; Mon, 13 Jun 2016 15:46:41 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5DFkfRc067271; Mon, 13 Jun 2016 15:46:41 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201606131546.u5DFkfRc067271@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Mon, 13 Jun 2016 15:46:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416848 - in head/sysutils/mfid: . 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: Mon, 13 Jun 2016 15:46:42 -0000 Author: feld Date: Mon Jun 13 15:46:41 2016 New Revision: 416848 URL: https://svnweb.freebsd.org/changeset/ports/416848 Log: sysutils/mfid: Improve rc script Now you can use mfid_flags in rc.conf to control other daemon flags Modified: head/sysutils/mfid/Makefile head/sysutils/mfid/files/mfid.in Modified: head/sysutils/mfid/Makefile ============================================================================== --- head/sysutils/mfid/Makefile Mon Jun 13 15:43:53 2016 (r416847) +++ head/sysutils/mfid/Makefile Mon Jun 13 15:46:41 2016 (r416848) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= mfid -PORTVERSION= 0.03 +PORTVERSION= 0.04 CATEGORIES= sysutils MASTER_SITES= LOCAL/feld Modified: head/sysutils/mfid/files/mfid.in ============================================================================== --- head/sysutils/mfid/files/mfid.in Mon Jun 13 15:43:53 2016 (r416847) +++ head/sysutils/mfid/files/mfid.in Mon Jun 13 15:46:41 2016 (r416848) @@ -12,16 +12,10 @@ name=mfid rcvar=mfid_enable load_rc_config $name -raid_alert_mailto=${mfid_alert_mailto:-"root@localhost"} -start_cmd=mfid_start -stop_cmd="killall -9 mfid > /dev/null 2>&1" +required_files=/dev/mfi0 -mfid_start() -{ - if [ -x "%%PREFIX%%/sbin/mfid" -a -e "/dev/mfi0" ]; then - echo "Starting mfid." - %%PREFIX%%/sbin/mfid ${raid_alert_mailto} - fi -} +raid_alert_mailto=${mfid_alert_mailto:-"root@localhost"} +command=%%PREFIX%%/sbin/mfid +command_args=${raid_alert_mailto} run_rc_command "$1"