Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  8 Feb 2012 10:09:05 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        perl@FreeBSD.org
Subject:   [PATCH] sysutils/p5-MogileFS-Server: Add startup script
Message-ID:  <20120208020905.B08147E827@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: Add startup script
>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:
- Add startup script.

Added file(s):
- files/mogilefsd.in
- files/mogstored.in

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

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

--- p5-MogileFS-Server-2.57_1.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-01 15:47:58.000000000 +0800
+++ /home/staff/gslin/work/ports/p5-MogileFS-Server/Makefile	2012-02-08 10:08:48.000000000 +0800
@@ -7,6 +7,7 @@
 
 PORTNAME=	MogileFS-Server
 PORTVERSION=	2.57
+PORTREVISION=	1
 CATEGORIES=	sysutils perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:DORMANDO
@@ -27,6 +28,7 @@
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 PERL_CONFIGURE=	yes
+USE_RC_SUBR=	mogilefsd mogstored
 
 MAN1=		mogautomount.1 \
 		mogilefsd.1 \
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	1970-01-01 08:00:00.000000000 +0800
+++ /home/staff/gslin/work/ports/p5-MogileFS-Server/files/mogilefsd.in	2012-02-08 10:05:39.000000000 +0800
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: mogilefsd
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="mogilefsd"
+rcvar=mogilefsd_enable
+required_files=%%PREFIX%%/etc/mogtracker.conf
+
+[ -z "$mogilefsd_enable" ] && mogilefsd_enable="NO"
+[ -z "$mogilefsd_flags" ] && mogilefsd_flags="--config=%%PREFIX%%/etc/mogtracker.conf"
+
+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	1970-01-01 08:00:00.000000000 +0800
+++ /home/staff/gslin/work/ports/p5-MogileFS-Server/files/mogstored.in	2012-02-08 10:08:11.000000000 +0800
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: mogstored
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="mogstored"
+rcvar=mogstored_enable
+required_files=%%PREFIX%%/etc/mogstored.conf
+
+[ -z "$mogstored_enable" ] && mogstored_enable="NO"
+[ -z "$mogstored_flags" ] && mogstored_flags="-d --config=/usr/local/etc/mogstored.conf"
+
+run_rc_command "$1"
--- p5-MogileFS-Server-2.57_1.patch ends here ---




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