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: [PATCH] sysutils/p5-MogileFS-Server: Fix multiple issues in rc scripts Message-ID: <20120212003439.8D16F7E81B@colo-p.gslin.org>
next in thread | raw e-mail | index | archive | help
>Submitter-Id: current-users >Originator: Gea-Suan Lin >Organization: >Confidential: no >Synopsis: [PATCH] sysutils/p5-MogileFS-Server: Fix multiple issues in rc scripts >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 7.4-RELEASE-p3 i386 >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 ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120212003439.8D16F7E81B>