aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2008-03-14 05:31:02 +0800
committerwxs <wxs@FreeBSD.org>2008-03-14 05:31:02 +0800
commit1b44676de209a6f7c2d00bbb1a4e165569f9c404 (patch)
tree7617c2331cc3cbf72a13a13a5b8092c8bd982699 /net
parent3d2713a7fa75ddbd8abd0bcca2b54ac28fda9d95 (diff)
downloadfreebsd-ports-gnome-1b44676de209a6f7c2d00bbb1a4e165569f9c404.tar.gz
freebsd-ports-gnome-1b44676de209a6f7c2d00bbb1a4e165569f9c404.tar.zst
freebsd-ports-gnome-1b44676de209a6f7c2d00bbb1a4e165569f9c404.zip
RC script now supports _flags variable. Comments available in the RC
script. PR: ports/108847 Submitted by: Dan Langille <dan@langille.org> Approved by: garga (mentor)
Diffstat (limited to 'net')
-rw-r--r--net/cvsup-mirror/Makefile4
-rw-r--r--net/cvsup-mirror/files/cvsupd.sh.in19
2 files changed, 19 insertions, 4 deletions
diff --git a/net/cvsup-mirror/Makefile b/net/cvsup-mirror/Makefile
index 585f80a785c3..7b1c6b294f80 100644
--- a/net/cvsup-mirror/Makefile
+++ b/net/cvsup-mirror/Makefile
@@ -7,11 +7,11 @@
PORTNAME= cvsup-mirror
PORTVERSION= 1.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= net
DISTFILES=
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= wxs@FreeBSD.org
COMMENT= A kit for easily setting up a FreeBSD mirror site using CVSup
RUN_DEPENDS= ${LOCALBASE}/sbin/cvsupd:${PORTSDIR}/net/cvsup-without-gui
diff --git a/net/cvsup-mirror/files/cvsupd.sh.in b/net/cvsup-mirror/files/cvsupd.sh.in
index b780f80d514c..1b4a2b731609 100644
--- a/net/cvsup-mirror/files/cvsupd.sh.in
+++ b/net/cvsup-mirror/files/cvsupd.sh.in
@@ -12,6 +12,21 @@
#
#cvsupd_enable="YES"
+#
+# Flag settings are now able to be overridden in /etc/rc.conf. The order
+# of priority is:
+#
+# Settings found in /etc/rc.conf are used (cvsupd_flags)
+# If nothing is found in /etc/rc.conf then settings found in
+# %%PREFIX%%/etc/cvsup/config.sh are used.
+# If nothing is found in %%PREFIX%%/etc/cvsup/config.sh
+# then the hardcoded values below are used.
+#
+#cvsupd_flags="-e -C 8 -l @daemon -b /home/ncvs -s sup.client"
+#
+# Note that answering the questions during the install will setup
+# %%PREFIX%%/etc/cvsup/config.sh for you.
+
. %%RC_SUBR%%
name="cvsupd"
@@ -30,10 +45,10 @@ fi
: ${cvsupd_enable:=NO}
: ${cvsupd_outfile=/var/run/${name}.out}
: ${cvsupd_user:=${user:-cvsup}}
+: ${cvsupd_flags:="-e -C ${maxclients:-8} -l @${facility:-daemon} \
+ -b ${base:-/home/ncvs} -s sup.client"}
command="%%PREFIX%%/sbin/cvsupd"
-command_args="-e -C ${maxclients:-8} -l @${facility:-daemon} \
- -b ${base:-/home/ncvs} -s sup.client"
stop_cmd="cvsupd_stop"
cvsupd_stop() {