From owner-svn-ports-all@FreeBSD.ORG Fri Aug 22 16:55:02 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0B64BFD; Fri, 22 Aug 2014 16:55:01 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC8823A55; Fri, 22 Aug 2014 16:55:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7MGt1rh043805; Fri, 22 Aug 2014 16:55:01 GMT (envelope-from wg@FreeBSD.org) Received: (from wg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7MGt1ha043802; Fri, 22 Aug 2014 16:55:01 GMT (envelope-from wg@FreeBSD.org) Message-Id: <201408221655.s7MGt1ha043802@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: wg set sender to wg@FreeBSD.org using -f From: William Grzybowski Date: Fri, 22 Aug 2014 16:55:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r365676 - in head/net-mgmt/pandorafms_server: . 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-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2014 16:55:02 -0000 Author: wg Date: Fri Aug 22 16:55:01 2014 New Revision: 365676 URL: http://svnweb.freebsd.org/changeset/ports/365676 QAT: https://qat.redports.org/buildarchive/r365676/ Log: net-mgmt/pandorafms_server: fix startup script PR: 192915 Submitted by: maintainer Modified: head/net-mgmt/pandorafms_server/Makefile head/net-mgmt/pandorafms_server/files/patch-update Modified: head/net-mgmt/pandorafms_server/Makefile ============================================================================== --- head/net-mgmt/pandorafms_server/Makefile Fri Aug 22 16:45:38 2014 (r365675) +++ head/net-mgmt/pandorafms_server/Makefile Fri Aug 22 16:55:01 2014 (r365676) @@ -2,6 +2,8 @@ # $FreeBSD$ PORTNAME= pandora_server +PORTREVISION= 1 + CATEGORIES= net-mgmt MAINTAINER= koichiro@rworks.jp Modified: head/net-mgmt/pandorafms_server/files/patch-update ============================================================================== --- head/net-mgmt/pandorafms_server/files/patch-update Fri Aug 22 16:45:38 2014 (r365675) +++ head/net-mgmt/pandorafms_server/files/patch-update Fri Aug 22 16:55:01 2014 (r365676) @@ -4370,7 +4370,7 @@ Index: FreeBSD/pandora_server # # ********************************************************************** -@@ -10,27 +11,66 @@ +@@ -10,27 +11,65 @@ # REQUIRE: LOGIN mysql # KEYWORD: shutdown @@ -4392,25 +4392,19 @@ Index: FreeBSD/pandora_server -# read configuration and set defaults -pandora_server_enable=${pandora_server_enable:-"NO"} --load_rc_config $name +: ${pandora_server_enable:=NO} +: ${pandora_server_configfile:=/usr/local/etc/pandora/pandora_server.conf} - --PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin -- --pidfile=/var/run/$name.pid - command=/usr/local/bin/${name} --command_args="-D -P ${pidfile} /usr/local/etc/pandora/pandora_server.conf" --required_files="/usr/local/etc/pandora/pandora_server.conf" ++ ++command=/usr/local/bin/${name} +command_args="-D" +command_interpreter=/usr/local/bin/perl +_pidprefix=/var/run/$name +pidfile=${_pidprefix}.pid +required_files="$pandora_server_configfile" ++ + load_rc_config $name --procname="/usr/local/bin/perl" -+load_rc_config $name - +-PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin +if [ "$2" ]; then + profile="$2" + if [ "$pandora_server_profiles" ]; then @@ -4424,31 +4418,36 @@ Index: FreeBSD/pandora_server + eval pandora_server_enable="\${pandora_server_${profile}_enable:-$pandora_server_enable}" + eval pandora_server_flags="\${pandora_server_${profile}_flags:-$pandora_server_flags}" + eval pidfile="\${pandora_server_${profile}_pidfile:-$pidfile}" -+ pandora_server_flags="$pandora_server_flags -P $pidfile $pandora_server_configfile" + else + echo "$0: extra argument ignored" + fi -+else -+ if [ "${pandora_server_profiles}" ] && [ "$1" ]; then -+ for profile in ${pandora_server_profiles}; do -+ eval _enable="\${pandora_server_${profile}_enable}" -+ case "${_enable:-${pandora_server_enable}}" in -+ [Yy][Ee][Ss]);; -+ *) continue;; -+ esac -+ echo "===> pandora_server profile: ${profile}" -+ /usr/local/etc/rc.d/pandora_server $1 ${profile} -+ retcode="$?" -+ if [ "0${retcode}" -ne 0 ]; then -+ failed="${profile} (${retcode}) ${failed:-}" -+ else -+ success="${profile} ${success:-}" -+ fi -+ done -+ exit 0 -+ fi ++elif [ "${pandora_server_profiles}" ] && [ "$1" ]; then ++ for profile in ${pandora_server_profiles}; do ++ eval _enable="\${pandora_server_${profile}_enable}" ++ case "${_enable:-${pandora_server_enable}}" in ++ [Yy][Ee][Ss]);; ++ *) continue;; ++ esac ++ echo "===> pandora_server profile: ${profile}" ++ /usr/local/etc/rc.d/pandora_server $1 ${profile} ++ retcode="$?" ++ if [ "0${retcode}" -ne 0 ]; then ++ failed="${profile} (${retcode}) ${failed:-}" ++ else ++ success="${profile} ${success:-}" ++ fi ++ done ++ exit 0 +fi -+ + +-pidfile=/var/run/$name.pid +-command=/usr/local/bin/${name} +-command_args="-D -P ${pidfile} /usr/local/etc/pandora/pandora_server.conf" +-required_files="/usr/local/etc/pandora/pandora_server.conf" ++pandora_server_flags="$pandora_server_flags -P $pidfile $pandora_server_configfile" + +-procname="/usr/local/bin/perl" +- run_rc_command "$1" Index: FreeBSD/pandora_server.conf ===================================================================