ports/108847: [PATCH] net/cvsup-mirror allow for cvsupd_flags
Dan Langille
dan at langille.org
Tue Feb 6 20:40:19 UTC 2007
>Number: 108847
>Category: ports
>Synopsis: [PATCH] net/cvsup-mirror allow for cvsupd_flags
>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: Tue Feb 06 20:40:18 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Dan Langille
>Release: FreeBSD 4.9-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD xeon.unixathome.org 4.9-STABLE FreeBSD 4.9-STABLE #2: Wed Mar 3 08:16:24 EST 2004 dan at polo.unixathome.org:/usr/obj/usr/src/sys/XEON i386
>Description:
Allow users to supply options to cvsupd without modifying the startup
script.
For example, my cvsup server hosts both the FreeBSD collection
and my own by adding this entry to /etc/rc.conf:
cvsupd_flags="-c sup:/home/repositories/sup"
>How-To-Repeat:
>Fix:
--- cvsupd.patch begins here ---
diff -ruN /usr/ports/net/cvsup-mirror/files/cvsupd.sh.in cvsup-mirror/files/cvsupd.sh.in
--- /usr/ports/net/cvsup-mirror/files/cvsupd.sh.in Tue Mar 7 09:14:45 2006
+++ cvsup-mirror/files/cvsupd.sh.in Tue Feb 6 15:29:03 2007
@@ -30,10 +30,12 @@
: ${cvsupd_enable:=NO}
: ${cvsupd_outfile=/var/run/${name}.out}
: ${cvsupd_user:=${user:-cvsup}}
+: ${cvsupd_flags:=""}
command="%%PREFIX%%/sbin/cvsupd"
command_args="-e -C ${maxclients:-8} -l @${facility:-daemon} \
- -b ${base:-/home/ncvs} -s sup.client"
+ -b ${base:-/home/ncvs} ${cvsupd_flags} -s sup.client"
+
stop_cmd="cvsupd_stop"
cvsupd_stop() {
--- cvsupd.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list