Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2012 07:49:35 -0500
From:      Mark Felder <feld@feld.me>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/171775: [PATCH] sysutils/xen-tools: rc script cleanup
Message-ID:  <E1TEJih-000Ir7-8S@feld.me>
Resent-Message-ID: <201209191250.q8JCo92V019024@freefall.freebsd.org>

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

>Number:         171775
>Category:       ports
>Synopsis:       [PATCH] sysutils/xen-tools: rc script cleanup
>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:   Wed Sep 19 12:50:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     feld
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD mwi1.coffeenet.org 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #5 r239731: Mon Aug 27 09:53:18 CDT
>Description:
rc script cleanup

thanks to dougb for the patch

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- xen-tools-4.1.3_2.patch begins here ---
diff -ruN --exclude=CVS ../xen-tools.orig/Makefile ./Makefile
--- ../xen-tools.orig/Makefile	2012-09-18 15:52:16.000000000 -0500
+++ ./Makefile	2012-09-19 07:47:19.410521224 -0500
@@ -6,7 +6,7 @@
 
 PORTNAME=	xen-tools
 PORTVERSION=	4.1.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 DISTNAME=	xen-${PORTVERSION}
 
diff -ruN --exclude=CVS ../xen-tools.orig/files/xe-daemon.in ./files/xe-daemon.in
--- ../xen-tools.orig/files/xe-daemon.in	2012-09-17 09:21:21.000000000 -0500
+++ ./files/xe-daemon.in	2012-09-19 07:47:08.363524457 -0500
@@ -1,7 +1,9 @@
 #!/bin/sh
 
+# $FreeBSD$
+#
 # PROVIDE: xe_daemon
-# REQUIRE: login
+# REQUIRE: LOGIN
 # KEYWORD: nojail shutdown
 #
 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
@@ -9,20 +11,19 @@
 #
 # xe_daemon_enable (bool): Set to NO by default.
 #       Set it to YES to enable xe_daemon.
-#
 
 . /etc/rc.subr
 
 name=xe_daemon
 rcvar=xe_daemon_enable
 
-command="%%PREFIX%%/sbin/xe_wrapper"
-command_interpreter="/bin/sh -T"
-command_args="%%PREFIX%%/sbin/xe-daemon &"
-
 load_rc_config $name
 
-pidfile="/var/run/xe_wrapper.pid"
 : ${xe_daemon_enable="NO"}
 
+command="%%PREFIX%%/sbin/xe_wrapper"
+command_interpreter="/bin/sh -T"
+command_args='%%PREFIX%%/sbin/xe-daemon &'
+pidfile="/var/run/xe_wrapper.pid"
+
 run_rc_command "$1"
--- xen-tools-4.1.3_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?E1TEJih-000Ir7-8S>