FreeBSD Bugzilla – Attachment 146153 Details for
Bug 192915
[maintainter-update] net-mgmt/pandorafms_server: update patch to fix startup script issue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for net-mgmt/pandorafms_server
pandorafms_server.diff (text/plain), 3.49 KB, created by
KIKUCHI Koichiro
on 2014-08-22 11:57:06 UTC
(
hide
)
Description:
patch for net-mgmt/pandorafms_server
Filename:
MIME Type:
Creator:
KIKUCHI Koichiro
Created:
2014-08-22 11:57:06 UTC
Size:
3.49 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 365614) >+++ Makefile (working copy) >@@ -2,6 +2,8 @@ > # $FreeBSD$ > > PORTNAME= pandora_server >+PORTREVISION= 1 >+ > CATEGORIES= net-mgmt > > MAINTAINER= koichiro@rworks.jp >Index: files/patch-update >=================================================================== >--- files/patch-update (revision 365614) >+++ files/patch-update (working copy) >@@ -4370,7 +4370,7 @@ > # > # ********************************************************************** > >-@@ -10,27 +11,66 @@ >+@@ -10,27 +11,65 @@ > # REQUIRE: LOGIN mysql > # KEYWORD: shutdown > >@@ -4392,25 +4392,19 @@ > > -# 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 @@ > + 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 > ===================================================================
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192915
: 146153 |
146154