ports/137017: [patch] net/xboxproxy distfile update, new rc startup script

Antony Mawer ports at mawer.org
Thu Jul 23 00:00:23 UTC 2009


>Number:         137017
>Category:       ports
>Synopsis:       [patch] net/xboxproxy distfile update, new rc startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 23 00:00:22 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Antony Mawer
>Release:        FreeBSD 6.3-FreeBSD-p2 i386
>Organization:
GP Technology Solutions
>Environment:
System: FreeBSD ant-sentral.syd.gptech.local 6.3-FreeBSD-p2 FreeBSD 6.3-FreeBSD-p2 #1: Thu Jun 12 10:45:08 UTC 2008 ajmawer at sentral.gptech.com.au:/usr/obj/usr/src/sys/SENTRAL-SMP i386


>Description:
Update the distfile location for xboxproxy.
Add an rc script which can be used to start the program at boot time, using
/usr/sbin/daemon to keep the program backgrounded.

>How-To-Repeat:
n/a
>Fix:
Apply attached patch; you will likely need to create the files/ directory first
before applying.

--- xboxproxy.diff begins here ---
--- Makefile.old	2009-07-18 10:47:12.000000000 +1000
+++ Makefile	2009-07-18 10:56:07.000000000 +1000
@@ -6,9 +6,9 @@
 
 PORTNAME=	xboxproxy
 PORTVERSION=	2.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net
-MASTER_SITES=	http://www.csh.rit.edu/~psionic/projects/xboxproxy/
+MASTER_SITES=	http://www.semicomplete.com/files/xboxproxy/
 DISTNAME=	proxy-${PORTVERSION}
 
 MAINTAINER=	ports at mawer.org
@@ -16,6 +16,7 @@
 
 BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
 
+USE_RC_SUBR=	xboxproxy
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--program-prefix=xbox
 
--- /dev/null	2009-07-18 11:04:24.000000000 +1000
+++ files/xboxproxy.in	2009-07-18 11:03:36.000000000 +1000
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# PROVIDE: xboxproxy
+# REQUIRE: LOGIN
+#
+# Add the following lines to /etc/rc.conf to enable xboxproxy
+#
+# xboxproxy_enable (bool):   Set to "NO" by default.
+#                            Set it to "YES" to enable xboxproxy.
+# xboxproxy_flags (str):     Additional flags to pass to xboxproxy.
+#                            Defaults to -x -b -m.
+#
+
+. %%RC_SUBR%%
+
+name="xboxproxy"
+rcvar="${name}_enable"
+
+load_rc_config $name
+
+: ${xboxproxy_enable="NO"}
+: ${xboxproxy_flags="-x -b -m"}
+
+
+start_cmd="${name}_start"
+pidfile="/var/run/xboxproxy.pid"
+command="%%PREFIX%%/bin/${name}"
+
+
+xboxproxy_start() {
+	echo "Starting ${name}."
+	daemon -p $pidfile ${command} ${xboxproxy_flags}
+}
+
+
+run_rc_command "$1"
+
--- xboxproxy.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list