ports/165007: [PATCH] sysutils/p5-MogileFS-Server: Fix multiple issues in rc scripts

Gea-Suan Lin gslin at gslin.org
Sun Feb 12 00:40:12 UTC 2012


>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 at 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:



More information about the freebsd-ports-bugs mailing list