Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2012 08:34:39 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        perl@FreeBSD.org, gslin@gslin.org
Subject:   ports/165007: [PATCH] sysutils/p5-MogileFS-Server: Fix multiple issues in rc scripts
Message-ID:  <20120212003439.8D16F7E81B@colo-p.gslin.org>
Resent-Message-ID: <201202120040.q1C0eB2V086481@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165007
>Category:       ports
>Synopsis:       [PATCH] sysutils/p5-MogileFS-Server: Fix multiple issues in rc scripts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 12 00:40:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD colo-p.gslin.org 7.4-RELEASE-p3 FreeBSD 7.4-RELEASE-p3 #0: Tue Sep 27 14:47:23 UTC 2011
>Description:
- Fix multiple issues in rc scripts.
- Follow practice in Porter's Handbook.

Port maintainer (perl@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- p5-MogileFS-Server-2.57_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/p5-MogileFS-Server/Makefile /home/staff/gslin/work/ports/p5-MogileFS-Server/Makefile
--- /usr/ports/sysutils/p5-MogileFS-Server/Makefile	2012-02-12 06:37:24.000000000 +0800
+++ /home/staff/gslin/work/ports/p5-MogileFS-Server/Makefile	2012-02-12 07:56:08.000000000 +0800
@@ -7,7 +7,7 @@
 
 PORTNAME=	MogileFS-Server
 PORTVERSION=	2.57
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:DORMANDO
diff -ruN --exclude=CVS /usr/ports/sysutils/p5-MogileFS-Server/files/mogilefsd.in /home/staff/gslin/work/ports/p5-MogileFS-Server/files/mogilefsd.in
--- /usr/ports/sysutils/p5-MogileFS-Server/files/mogilefsd.in	2012-02-12 06:37:24.000000000 +0800
+++ /home/staff/gslin/work/ports/p5-MogileFS-Server/files/mogilefsd.in	2012-02-12 08:21:25.000000000 +0800
@@ -15,5 +15,10 @@
 
 [ -z "$mogilefsd_enable" ] && mogilefsd_enable="NO"
 [ -z "$mogilefsd_flags" ] && mogilefsd_flags="--config=%%PREFIX%%/etc/mogtracker.conf"
+[ -z "$mogilefsd_user" ] && mogilefsd_user="nobody"
 
+command="%%PREFIX%%/bin/mogilefsd"
+command_args="$mogilefsd_flags >/dev/null &"
+
+load_rc_config $name
 run_rc_command "$1"
diff -ruN --exclude=CVS /usr/ports/sysutils/p5-MogileFS-Server/files/mogstored.in /home/staff/gslin/work/ports/p5-MogileFS-Server/files/mogstored.in
--- /usr/ports/sysutils/p5-MogileFS-Server/files/mogstored.in	2012-02-12 06:37:24.000000000 +0800
+++ /home/staff/gslin/work/ports/p5-MogileFS-Server/files/mogstored.in	2012-02-12 08:31:03.000000000 +0800
@@ -14,6 +14,11 @@
 required_files=%%PREFIX%%/etc/mogstored.conf
 
 [ -z "$mogstored_enable" ] && mogstored_enable="NO"
-[ -z "$mogstored_flags" ] && mogstored_flags="-d --config=/usr/local/etc/mogstored.conf"
+[ -z "$mogstored_flags" ] && mogstored_flags="--config=%%PREFIX%%/etc/mogstored.conf"
+[ -z "$mogstored_user" ] && mogstored_user="nobody"
 
+command="%%PREFIX%%/bin/mogstored"
+command_args="-d $mogstored_flags"
+
+load_rc_config $name
 run_rc_command "$1"
--- p5-MogileFS-Server-2.57_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120212003439.8D16F7E81B>